- Posts: 28
- Thank you received: 0
Checkout remove finish button
9 years 6 months ago #270534
by ashx88
Checkout remove finish button was created by ashx88
Hi,
I have set up the paypal express checkout payment plugin and disabled all other payment methods, but at the checkout page there is still this "Finish" button that links to /checkout/checkout/task-step/step-1 and says "Thank you for your purchase.." when no payment was even made. How do I remove this "Finish button", I only need the paypal checkout button.
I have set up the paypal express checkout payment plugin and disabled all other payment methods, but at the checkout page there is still this "Finish" button that links to /checkout/checkout/task-step/step-1 and says "Thank you for your purchase.." when no payment was even made. How do I remove this "Finish button", I only need the paypal checkout button.
Please Log in or Create an account to join the conversation.
9 years 6 months ago #270538
by nicolas
Replied by nicolas on topic Checkout remove finish button
Hi,
Supposing that you're using the new checkout of HikaShop, you can edit the file "show_block_buttons" via the menu Display>Views and remove that code:
If you use the legacy checkout, then you would have to edit the file "step" of the view "checkout" and remove the code:
Supposing that you're using the new checkout of HikaShop, you can edit the file "show_block_buttons" via the menu Display>Views and remove that code:
Code:
<button type="submit" class="<?php echo $this->config->get('css_button','hikabtn'); ?> hikabtn_checkout_next" onclick="this.form.submit(); this.disabled=true; window.Oby.addClass(this, 'next_button_disabled'); return false;"><?php
$steps = count($this->checkoutHelper->checkout_workflow['steps']);
$txt = JText::_('HIKA_NEXT');
if(($this->step + 1) == $steps) {
$k = 'CHECKOUT_BUTTON_FINISH';
$txt = JText::_($k);
if($txt == $k)
$txt = JText::_('HIKA_NEXT');
}
echo $txt;
?></button>
Code:
if($this->nextButton)
{
if($this->step == (count($this->steps) - 2)) {
$checkout_next_button = JText::_('CHECKOUT_BUTTON_FINISH');
if($checkout_next_button == 'CHECKOUT_BUTTON_FINISH')
$checkout_next_button = JText::_('NEXT');
} else
$checkout_next_button = JText::_('NEXT');
echo $this->cart->displayButton($checkout_next_button,'next',$this->params, hikashop_completeLink('checkout&task=step&step='.((int)$this->step+1)),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; this.disabled = true; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');
$button = $this->config->get('button_style','normal');
if ($button=='css')
echo '<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/></input>';
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.046 seconds