How can I change"Next" button to "Go to Checkout"

  • Posts: 11
  • Thank you received: 0
11 years 9 months ago #118409

Hi.

I saw this on the FAQ
How can I change the "Next" button text for the last step in the checkout ?

In the menu Display -> Views, edit the "step" file (in the good template). Instead of : if($this->nextButton){ echo $this->cart->displayButton(JText::_('HIKA_NEXT'),'next',... Write : if($this->nextButton){ if(count($this->steps)-1 == $this->step+1){$button_value = JText::_('HIKA_FINALIZE');}else{ $button_value = JText::_('HIKA_NEXT');} echo $this->cart->displayButton($button_value,'next',... And in System -> Configuration -> Languages, edit your traduction file, add a line like that: HIKA_FINALIZE="Finalize" "Finalize" is for the example, but you can set whatever you want.


I didn't know how to change it because am not so familiar with PHP script. Please can you provide how i can change this line of code on my website, (if($this->nextButton){
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"');
}

So i can just copy and replaced.


The Word is made flesh in my life

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

  • Posts: 26251
  • Thank you received: 4039
  • MODERATOR
11 years 9 months ago #118410

Hi,

"Next" is just a translation of "HIKA_NEXT".
You can just change the translation text to change the button text.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: samoskill

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

Time to create page: 0.052 seconds
Powered by Kunena Forum