- Posts: 966
- Thank you received: 11
Add Back Button on Checkout Pages
Thank you!!
Please Log in or Create an account to join the conversation.
Best regards,
Nicolas
Please Log in or Create an account to join the conversation.
I'm also trying to figure out how could I get the "back" button on my checkout page, but I'm not so clever to get how to place that code. Could you please explain that in little more detailed way? Is this just to simply put it at whatever place within file?..
Thank you!
Please Log in or Create an account to join the conversation.
You can't put it randomly in the file. But you can always try and if it doesn't work like you want, move it somewhere else and try again.
The simplest is to put it at the top or the bottom of the file and it will display the link at the top or at the bottom of the checkout.
Please Log in or Create an account to join the conversation.
- Posts: 18
- Thank you received: 0
I am also trying to place a Back button on the confirmation page before the customer hits the buy now button. I've found the code to use from previous posts, but still not sure where in the step view to place it. I've tried a few different places, but it either displays both the Continue Shopping button and the Back button next to each other, or the back button replaces the Continue shopping button on all checkout pages. Is there a specific place to put this?
Many thanks,
Please Log in or Create an account to join the conversation.
You should simply add it at the top of the file.
Please Log in or Create an account to join the conversation.
- Posts: 18
- Thank you received: 0
Is this possible?
Please Log in or Create an account to join the conversation.
Then, you can just display the normal continue button:
echo $this->cart->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,JRoute::_($this->continueShopping),'window.location=\''.JRoute::_($this->continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"');
or your back button.
Here is more information on all that:
www.hikashop.com/en/forum/4-how-to/13429...der-in-checkout.html
Please Log in or Create an account to join the conversation.
- Posts: 5
- Thank you received: 1
Also, in order to float it left, I added this to my hikashop stylesheet - frontend_bluegrass.css file (this is just a modified version of media/com_hikashop/css/frontend_default.css):
And it looks like the other button styles and sits to the left of the Continue Shopping button. Hope this helps others also.
Please Log in or Create an account to join the conversation.
- Posts: 55
- Thank you received: 4
I can change the formatting of "Next" using Firebug by changing type="submit" to type="button", but I can't figure out how do do that permanently within the HikaShop php or css codes.
Thanks.
Dave
Please Log in or Create an account to join the conversation.
You have to add new css properties in the hikashop frontend css file or directly in your template file on the following ids:
You can get the template properties thanks to firebug and use it for the given ids.
hikashop.com/support/support/documentati...ize-the-display.html
Please Log in or Create an account to join the conversation.
- Posts: 55
- Thank you received: 4
Thanks for your quick reply. I couldn't get your suggestion to work, but you gave me the idea to copy the template CSS for buttons into the front-end CSS custom file of Hikashop like this:
From what I see in the CSS of the template the buttons should have been formatted like the others, but I have no explanation why they're not. Thanks again!
Dave
Please Log in or Create an account to join the conversation.
and on some (not all) of the checkout steps I get the browser error/warning: "Confirm Form Resubmission" ... is there a better solution to this?
Thanks!
Dave
Please Log in or Create an account to join the conversation.
Another solution could be to get the current url and replace the step number to the prevous number instead of doing a "history.back()".
If the url is mydomain.com/checkout/step-2 so replace it by mydomain.com/checkout/step-1 and redirect to this address with some javascript.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.