webbusiness23 Posted April 4, 2010 Share Posted April 4, 2010 I recently noticed that the ajax cart is not working for my latest added products.On the product's page, when i click the "add to cart" button, i get redirected to the http://www.mysite.ro/order.php?ipa=67 page, where 67 is the product's id. This happens instead of the ajax effect that was suppose to happen.It's strange the fact that when i add an older product to cart, the ajax effect does happen and all goes well, without being redirected to the order.php page.How can i solve this? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 4, 2010 Share Posted April 4, 2010 Most likely this is javascript related, but without the PS version and an example URL of a work and non working products, there is not much more I can suggest. Link to comment Share on other sites More sharing options...
webbusiness23 Posted April 4, 2010 Author Share Posted April 4, 2010 I'm using version 1.2.5 Link to comment Share on other sites More sharing options...
webbusiness23 Posted April 5, 2010 Author Share Posted April 5, 2010 Here is an example of a working vs a non-working product:working productnon-working productHas anyone encountered this issue before? Any solution for it? Link to comment Share on other sites More sharing options...
webbusiness23 Posted April 5, 2010 Author Share Posted April 5, 2010 Does anyone have a solution for this, please? Link to comment Share on other sites More sharing options...
albundy11 Posted April 6, 2010 Share Posted April 6, 2010 Hi webbusiness23,You absolutely give to Tomer what he asked you.I think he can help you ! Link to comment Share on other sites More sharing options...
rocky Posted April 6, 2010 Share Posted April 6, 2010 There is a Javascript error on your product page caused by a bug in the products category module. See my post here for how to fix it. Link to comment Share on other sites More sharing options...
webbusiness23 Posted April 6, 2010 Author Share Posted April 6, 2010 There is a Javascript error on your product page caused by a bug in the products category module. See my post here for how to fix it. Thank you!That worked perfectly!P.S. What's the catch with the pc_ prefix ? Link to comment Share on other sites More sharing options...
rocky Posted April 6, 2010 Share Posted April 6, 2010 My guess would be that pc stands for Products Category and that the Prestashop team added that prefix to prevent a conflict with Javascript in another file. They must have forgotten to update the variables inside the function though. 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