View Single Post
Old 06-03-2014, 02:15 PM
The Little Shop of Chocs's Avatar
The Little Shop of Chocs The Little Shop of Chocs is offline
Join Date: Mar 2014
Posts: 9
Default Redirect to own page after clearing shopping bag


I'm having the same problem as these people*–

I have used this code – – to redirect my shopping cart buttons back to the front page of the website.

Here is the website –

The code works fine except for the 'continue shopping' button that appears on the 'your shopping bag is empty' page immediately after emptying the shopping bag (in this case it defaults to the two main categories).

If I navigate away from the page and then click the 'shopping bag' to bring it up again, the button then works as it should.

The javascript does not add the 'clone' class to the button on first loading the page after emptying the shopping bag but it is added on subsequent visits to this page.

Could you please tell me how to fix this so that 'continue shopping' button always goes back to the front page? Thanks.

(This is a duplicate of a thread which is prob in the wrong category)