View Single Post
  #6  
Old 06-13-2014, 09:17 AM
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

I have a solution. It's not pretty.

Add this jQuery to your shop.php page

Quote:
var continueShoppingRedirect = "name_of_redirect_page";

var checkContents = setInterval(function(){

if ($(".gwt-Button").length > 0){ // Check if element has been found

$(this).click(function() {
location.href = continueShoppingRedirect;
});

}

},250);
This checks for the presence of the button every 250 milliseconds. When it appears, it adds the link.

Sometimes the categories did appear before the redirect happened so I added this to the css

.ecwid-productBrowser-CategoryPage {
display:none;
}

but I'm not using the category page anywhere so it doesn't matter if it doesn't appear at all.

A shorter interval might have helped. If you have a better way of doing it please let me know.
The Following User Says Thank You to The Little Shop of Chocs For This Useful Post:
Rick G (07-15-2014)