changing "next" button text for checkout process

  • Posts: 12
  • Thank you received: 0
  • Hikashop Essential
11 years 8 months ago #125793

One of the pages on my site where a product may be added to the cart:
http://floortracks.cloudaccess.net/index.php/music-store/volume-1-2010

Hi! I currently have a two-step process set up:

  1. First page: login/account creation and address
  2. Second page: all the rest of the process (cart, coupon, shipping method selection, credit card entry)

I would like to keep the "next" button that goes from the first page of the checkout to the second, but I'd like for the button to go from the second page to completion to say something else other than "next" — something like "finalize purchase" or "complete purchase", which would be pressed after the credit card info is filled in on the second page of the checkout.

Is it possible to change the text for only of the "next" buttons? Or do they have to be the same?

Thank you!

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #125808

Hi,
I think that you'll probably find your answer there :

Ok, You should edit your "step" file of the "checkout" view of the template that you are currently using and change the code :
echo $this->cart->displayButton(JText::_('HIKA_NEXT'),'next',$this->params,hikashop_completeLink('checkout&task=step&step='.($this->step+1)),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');
by
if($this->step==YOUR_STEP){
echo $this->cart->displayButton('Send Order','next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false; ','id="hikashop_checkout_next_button"');
}else{
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"');
}

Note that you'll have to replace the "YOUR_STEP" by the step (1 2 3 4..) where you want to replace "next" by "send order"


Hope this will help you a little

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

  • Posts: 12
  • Thank you received: 0
  • Hikashop Essential
11 years 8 months ago #125959

This is very helpful!

Can I make the last button something other than "Send Order"? Just by typing in my own text there?

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

  • Posts: 12
  • Thank you received: 0
  • Hikashop Essential
11 years 8 months ago #125960

Never mind. I tried other text for the button, and it worked. Thanks!

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

Time to create page: 0.114 seconds
Powered by Kunena Forum