ps2k11 Posted September 12, 2018 Share Posted September 12, 2018 ps 1.7.4.2 shopping cart not working without ajax on shopping cart module cannot add any product to cart, bug or ajax a must ? Link to comment Share on other sites More sharing options...
Rolige Posted September 12, 2018 Share Posted September 12, 2018 I think you are using a custom theme, fi so, this is the cause, because PS 1.7.4.2 with the default theme works perfect. Link to comment Share on other sites More sharing options...
ps2k11 Posted September 12, 2018 Author Share Posted September 12, 2018 1 hour ago, Rolige said: I think you are using a custom theme, fi so, this is the cause, because PS 1.7.4.2 with the default theme works perfect. using classic theme in wampserver without ajax adding to cart nothing happens, cart total remains at zero and clicking on cart nothing happens Link to comment Share on other sites More sharing options...
Rolige Posted September 12, 2018 Share Posted September 12, 2018 Turn on the debug mode and open your console in your browser to inspect the Ajax request, if you have an error, probably can be shown there. Link to comment Share on other sites More sharing options...
ps2k11 Posted September 12, 2018 Author Share Posted September 12, 2018 7 minutes ago, Rolige said: Turn on the debug mode and open your console in your browser to inspect the Ajax request, if you have an error, probably can be shown there. The problem is that it does not update cart products unless you do a page refresh so even after clicking add to cart still says 0. doing a refresh it shows 1, looks like a bug to me Link to comment Share on other sites More sharing options...
Rolige Posted September 12, 2018 Share Posted September 12, 2018 That's correct, without Ajax enabled doesn't update the number of products in the header. Link to comment Share on other sites More sharing options...
ps2k11 Posted September 12, 2018 Author Share Posted September 12, 2018 26 minutes ago, Rolige said: That's correct, without Ajax enabled doesn't update the number of products in the header. than why give the option between ajax and not ajax. Its useless without ajax Link to comment Share on other sites More sharing options...
Rolige Posted September 12, 2018 Share Posted September 12, 2018 I agree with you, I think you could report the bug in the PrestaShop repository on GitHub. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 12, 2018 Share Posted September 12, 2018 15 hours ago, ps2k11 said: ps 1.7.4.2 shopping cart not working without ajax on shopping cart module cannot add any product to cart, bug or ajax a must ? I am able to replicate the issue. Let me check if I can do something about it. I hope you want to redirect customers to the cart page after adding the items into the cart. Kindly confirm. Link to comment Share on other sites More sharing options...
ps2k11 Posted September 12, 2018 Author Share Posted September 12, 2018 9 minutes ago, Knowband Plugins said: I am able to replicate the issue. Let me check if I can do something about it. I hope you want to redirect customers to the cart page after adding the items into the cart. Kindly confirm. redirecting customer to cart page will be good Link to comment Share on other sites More sharing options...
obalsoy Posted November 19, 2018 Share Posted November 19, 2018 I had the same problem with 1.7.4.2 and updated to 1.7.4.4. I still have the same thing. With the ajax option turned off, I can't use the shopping cart. None of the Add to Cart buttons works. This problem occurs with the classic theme as well as a purchased theme from the Addons market. While working on this problem, an interesting thing happened. I backed up my database and reinstalled the Prestashop with a fresh copy. I reinstalled my modules and the theme I purchased. The shopping cart was working. I replaced the new database with the old one and restored my images to bring the website to its previous copy. The shopping cart problem came back. The only difference between the two copies were the images and the database. I did this to see if a piece of code I changed or a module changed caused the issue. With the untouched installation, seeing the problem coming back, I believe that it is a parameter in the database causing the issue. I don't see any other cause. 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