- Posts: 28
- Thank you received: 0
continue shopping button - redirection not workig
I want the customer to be redirected to the product category page after clicking on the "continue shopping" button. Because I only have one category I don't need this workaround with editing a file that I found searching this forum. The "Continue shopping button's URL" field on the "checkout" tab should do that too. But it seems this isn't working, nothing happens after clicking the button (except of closing the popup notice) no matter what URL I insert in this field.
The button is also displayed if the URL field is empty, according to a post here in the forum the button should only be displayed IF there is a URL to redirect ...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
But I need a redirection for the button in the popup. There is no sense in this button if it's only closing the popup. It's quite uncomfortable for the user to first click on the back button in the browser or clicking in the menu to go back to the category after putting a product in the cart.
Edit: Let the user go back threw the back button in the browser is bad for another reason too: the cart module isn't updated and therefore the user won't see the product in the cart
Please Log in or Create an account to join the conversation.
to:
Please Log in or Create an account to join the conversation.
This code works:
But honestly: This isn't a very nice solution, your approach is ways better
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks
Iain
Please Log in or Create an account to join the conversation.
You can edit the view "Checkout / step" in HikaShop > Display > Views, and at the end of the file, you can replace
Please Log in or Create an account to join the conversation.
Any help would be very much appreciated.
Iain
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<?php echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','try{ window.top.document.getElementById(\'sbox-window\').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id="hikashop_add_to_cart_continue_button"'); ?>
to
<a href="javascript:history.back()">Continue Shopping</a>
Many Thanks
Iain
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thank You
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 0
I have a very simple cart. I have only one category (default) and I would like to be able to redirect my customer back to the category page when they click on the "Continue Shopping" button on the popup notice. It works fine with the checkout page "Continue Shopping" button.
I have tried without success to modify the code to redirect to a specific page (not a programmer, but I try).
The cloest I have come is using this recommended code in the checkout/notoice.php
I'm trying to get to "index.php/givingcards" but it returns "index.php/givingcards/givingcards" so I get the 404 page error of course.
I have "index.php/givingcards" set in the Continue Shopping button's URL box in the checkout tab, and the same thing on the main tab for "URL where you will be redirected when the cart is empty" if that matters.
I'd be happy to even hard code this if I knew how. Can you give me some direction?
Thanks
Please Log in or Create an account to join the conversation.
In the view "checkout / notice", you have to replace the code:
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 0
Thank you so much.
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 0
So it is returning to my category page properly now after adding an item to the shopping cart and clicking on "Continue Shopping" in the popup dialog box, but then the shopping cart is emptied upon return. This only happens the first time. If I add an item again, it will remain in the shopping cart after clicking on the Continue Shopping button in the popup.
Update: with more testing, I have found clearing out the cookies in the browser makes it work properly, sort of. It will work the first time I open the browser, add an item to the cart, then click on "Continue Shopping" in the popup. After I check out, if I go back to the category page, select a product, add to cart, (which it clearly adds to the cart) then click on the "Continue Shopping" button in the popup, the cart will clear out to empty. Weird.
Please Log in or Create an account to join the conversation.
I tried to reproduce the problem on several browsers on my end on your website but each time it worked fine. So all I can think of is there there is something with your browser.
Do you reproduce the issue on other browsers ?
What browser are you using ? Which version ?
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 0
and Internet Explorer 11.0.12
and Chrome 37.0.2062.124 m
Where it was happening all the time, it's now only happening occasionally.
I've posted a short video showing the malfunction
www.3d-web.com/IMG_0057.MOV
I wish it would either happen every time or not at all, but this occasionally makesit difficult to track down.
Update: Just noticed that if I hit the back key on the browser, the shopping cart WILL have the item in the cart! Hopefully that's a clue.
Please Log in or Create an account to join the conversation.