Jump to content

"Add to Cart" button sends request to the same product page and not working


Recommended Posts

I am using PrestaShop 1.7.8.0 with PHP 7.3 and transformer theme.

On the product page, "Add to Cart" button sends AJAX request to the same product page instead of cart controller.

In the shoppingcart module the variable for the AJAX URL is prestashop.urls.pages.cart and in console it also prints the correct URL to the cart controller.

does anyone has idea how to fix this? I have done with every possible move. I have disabled all the modules one by one and no effect.

Help will be really appreciated.

Link to comment
Share on other sites

  • 3 weeks later...
On 12/16/2021 at 9:20 PM, El Patron said:

did you revert to default theme to see if same issue?  maybe the theme is not yet compatible with ps 1.7.8.0....note we don't recommend using 'latest' for new shop builds, you should consider latest 1.7.7 version.

I restored global.js from the old setup and it solved the problem.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...