- Posts: 43
- Thank you received: 0
Payment confirmation page
- conlippert
-
Topic Author
- Offline
My client thinks that it's confusing for the customers on our Payment confirmation page. We had a client complain that the site wasn't working properly because the credit card page looks the same as the confirmation page. I would like to change the confirmation page "next" button to say "Confirm this order" to alleviate this. I have our checkout steps defined:
"cart_shipping_login_address,payment_fields_confirm,end". I tried changing the confirm step to "cart_shipping_login_address,payment_fields,confirm,end" but then I just got a blank page on the confirm step with the "next" button.
Can someome direct me to how I can either correct and customize the confirm page and/or change the "Next" button on the confirm page to say "Confirm this order".
Thanks,
CL
Hikaship 1.6.0/Joomla 2.5.7
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
C.
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
cart_shipping_login_address,payment_fields_confirm,end
Thank you,
CL
Please Log in or Create an account to join the conversation.
The confirmation step in your case is "1". The steps start at 0, and are incremented after each comma ",".
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Here's the original code:
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"');
}
And I replaced it with:
if($this->step==1){
echo $this->cart->displayButton('Confirm Payment Information','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"');
}
else{
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"');
}
Please Log in or Create an account to join the conversation.
Are you sure that you are editing in the good template ?
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Also, I added quotes around the 1. Could that be wrong?
here's my code again:
**/
if($this->step=='1'){
echo $this->cart->displayButton('Confirm Payment','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"');
}
else{
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"');
}
Please Log in or Create an account to join the conversation.
Try with $this->step=='2'
Because the payment method send to a newt "virtual" step.
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Thanks to this you will see on which step your are on each page.
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Your two screenshots are for the same step.
Both displayed the payment method selection, but the second one is just after the credit card completion (where the information are display for checks).
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.
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Please Log in or Create an account to join the conversation.
So you can't use a check on $this->step as it will have the same value on both cases.
Instead, your check should be:
Please Log in or Create an account to join the conversation.
- conlippert
-
Topic Author
- Offline
- Posts: 43
- Thank you received: 0
Thank you!
Please Log in or Create an account to join the conversation.