zaglebie Posted July 8, 2011 Share Posted July 8, 2011 How to force prestashop to redirect straight to checkout after clicking add to cart ? client will click add to cart product will be added to cart BUT instantly client will be redirected to checkout. Link to comment Share on other sites More sharing options...
johnk12 Posted July 28, 2011 Share Posted July 28, 2011 How is this solved? Link to comment Share on other sites More sharing options...
rocky Posted July 29, 2011 Share Posted July 29, 2011 Go to the configuration page of the "Cart block" and change "Ajax cart" to "No". Also, go to the Preferences > Products tab and make sure "Re-direction after adding product to cart" is set to "cart summary". 1 Link to comment Share on other sites More sharing options...
vivek tripathi Posted August 1, 2011 Share Posted August 1, 2011 If you want to Immediately redirect to checkout after clicking add to cart button then their is no meaning of cartblock module Another way to do is simply disable that Cart block module tabed under Front Office Feature Link to comment Share on other sites More sharing options...
babyewok Posted August 31, 2011 Share Posted August 31, 2011 Hi there. I have my client's site (v.1.3.7.0) set upi with ajax cart disabled and redirecttion set to cart summary, however when it is redirected, the cart is not on https even though ssl is enabled - how can I fix this? Link to comment Share on other sites More sharing options...
hobylazy Posted February 6, 2013 Share Posted February 6, 2013 Go to the configuration page of the "Cart block" and change "Ajax cart" to "No". Also, go to the Preferences > Products tab and make sure "Re-direction after adding product to cart" is set to "cart summary". Hi rocky, thanks for your tip. However, I could not understand the process you given: Go to the configuration page of the "Cart block" and change "Ajax cart" to "No". Is that means go to blockcart.tpl file and find ajax cart and set it to "No". :/ Can you please help me out.. Thanks! Link to comment Share on other sites More sharing options...
gsoutfits Posted December 19, 2013 Share Posted December 19, 2013 (edited) @Rocky your way worked for me in PrestaShop 1.5x thank you Edited December 19, 2013 by gsoutfits (see edit history) Link to comment Share on other sites More sharing options...
dreamwork.ro Posted April 16, 2014 Share Posted April 16, 2014 @Rocky`s solution worked great for me too, thanks Link to comment Share on other sites More sharing options...
Rajehs Kumar Posted June 19, 2020 Share Posted June 19, 2020 Can someone give solution for PS 1.7 Link to comment Share on other sites More sharing options...
Kami Solutions Posted April 17, 2022 Share Posted April 17, 2022 (edited) On 6/19/2020 at 6:09 AM, Rajehs Kumar said: Can someone give solution for PS 1.7 Go to ps_shoppingcart.js file inside your modules/ps_shoppingcart module directory (I would hardly advise to do it in your theme folder, theme/modules/ps_shoppingcart/ps_shoppingcart.js) and go to line if (resp.modal) { showModal(resp.modal); } Where you want to change it to: if (resp.modal) { window.location.replace(prestashop.urls.pages.cart+'?action=show'); } This will solve the issue when the customer is logged in or not (guest and customer). Remember to clear the cache in var/cache by deleting the cache folder, otherwise your changes might be unaffected. Edited April 17, 2022 by ChineseNorris (see edit history) 2 Link to comment Share on other sites More sharing options...
sg1_anhell Posted July 4, 2023 Share Posted July 4, 2023 On 4/17/2022 at 5:55 PM, Kami Solutions said: Go to ps_shoppingcart.js file inside your modules/ps_shoppingcart module directory (I would hardly advise to do it in your theme folder, theme/modules/ps_shoppingcart/ps_shoppingcart.js) and go to line if (resp.modal) { showModal(resp.modal); } Where you want to change it to: if (resp.modal) { window.location.replace(prestashop.urls.pages.cart+'?action=show'); } This will solve the issue when the customer is logged in or not (guest and customer). Remember to clear the cache in var/cache by deleting the cache folder, otherwise your changes might be unaffected. This solution worked for me, thanks! :) It's important to activate ajax mode in Cart module configuration in order to work. (I was getting crazy because it didn't worked but just was because of this Lol) 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