RogerT Posted August 18, 2009 Share Posted August 18, 2009 HiI want to make my Add to Cart button redirect the customer to the cart after adding the product to the cart.The javascript isn't too important to me, I'll be fine with or without it.Does anyone know how I can do this?Thanks Link to comment Share on other sites More sharing options...
rocky Posted August 18, 2009 Share Posted August 18, 2009 The easy way is to go to Modules > Cart block > Configure and disable the "Ajax cart". You can then go to Preferences > Products > "Re-direction after adding product to cart" and choose whether you want to go to the cart summary after clicking add to cart or go to the previous page.The above method will remove the Javascript animation. You would need to modify ajax-cart.js if you wanted to keep the add-to-cart animation before the redirection, which is more difficult. Link to comment Share on other sites More sharing options...
RogerT Posted August 18, 2009 Author Share Posted August 18, 2009 Thanks rockyThis is good enoughCheers Link to comment Share on other sites More sharing options...
Patric Posted August 18, 2009 Share Posted August 18, 2009 So I mark the topic as [solved].Please, next time, do it by yourself by adding [solved] at the beginning of your topic's title by editing your first post !Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now