- Posts: 11
- Thank you received: 0
How can I change"Next" button to "Go to Checkout"
13 years 3 months ago #118409
by samoskill
The Word is made flesh in my life
How can I change"Next" button to "Go to Checkout" was created by samoskill
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.
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.
13 years 3 months ago #118410
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic How can I change"Next" button to "Go to Checkout"
Hi,
"Next" is just a translation of "HIKA_NEXT".
You can just change the translation text to change the button text.
Regards,
"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.
The following user(s) said Thank You: samoskill
Please Log in or Create an account to join the conversation.
Time to create page: 0.044 seconds