"Next" and "Confirm Order"

  • Posts: 8
  • Thank you received: 2
11 years 6 months ago #100922

I know how to use the language string to change the wording of HIKA_NEXT from "Next" to "Confirm Order." But my real question is how can I keep the text "Next" for when there is a next screen and use "Commit Order" when the button commits the order for payment?

If there is a way to test for that condition within the php code, let me know that - I can manage the php if I know what condition needs to be checked.

Last edit: 11 years 6 months ago by RCarey.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #100943

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

Last edit: 11 years 6 months ago by Mohamed Thelji.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum