
06-13-2014, 09:17 AM
|
 |
Paid Member
|
|
Join Date: Mar 2014
Posts: 9
|
|
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.
|