vegaskev Posted September 12, 2014 Share Posted September 12, 2014 PS 1.6.0.6 > Default-Bootstrap > Product Page > 'Add to Cart' Popup > 'Continue Shopping' href So when you click 'add to cart' on a product page the modal box pops up with your newly added product and an option to 'Continue Shopping' or 'Proceed to Checkout'. I changed the tpl file to include a link to the home page (per client's request) for the 'Continue Shopping' button, and when you hover over the 'Continue Shopping' button, the browser does display the hyperlink accordingly, however, when you actually click the button, the modal box simply closes and stays on the existing page. What did I miss? Thanks in advance. Link to comment Share on other sites More sharing options...
NemoPS Posted September 12, 2014 Share Posted September 12, 2014 You have to remove the continue reference here, product.js $(document).on('click', '#layer_cart .cross, #layer_cart .continue, .layer_cart_overlay', function(e){ e.preventDefault(); $('.layer_cart_overlay').hide(); $('#layer_cart').fadeOut('fast'); }); Link to comment Share on other sites More sharing options...
vegaskev Posted September 14, 2014 Author Share Posted September 14, 2014 Nemo, Thanks for the tip, Unfortunately, I don't have that function in my product.js. In fact, I don't have any such function referencing #layer_cart at all inside my product.js. I also checked the layered cart module inside my theme and looked in blocklayered.js and no such reference to that div# in there either. Any other ideas Nemo? Thanks in advance. Link to comment Share on other sites More sharing options...
NemoPS Posted September 15, 2014 Share Posted September 15, 2014 uh! bummer. Can you share your site's link? Link to comment Share on other sites More sharing options...
vegaskev Posted September 16, 2014 Author Share Posted September 16, 2014 yes....the link to the site is here. Thanks in advance for your assistance. Link to comment Share on other sites More sharing options...
NemoPS Posted September 17, 2014 Share Posted September 17, 2014 Found it in ajax-cart.js, my bad $(document).on('click', '#layer_cart .cross, #layer_cart .continue, .layer_cart_overlay', function(e){ e.preventDefault(); $('.layer_cart_overlay').hide(); $('#layer_cart').fadeOut('fast'); }); Link to comment Share on other sites More sharing options...
Recommended Posts