Checkout remove finish button

  • Posts: 28
  • Thank you received: 0
7 years 5 months ago #270534

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.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #270538

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:

<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>
If you use the legacy checkout, then you would have to edit the file "step" of the view "checkout" and remove the 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.054 seconds
Powered by Kunena Forum