Jump to content
finnenhawke

Product URL and Cannonical URL problems in core JavaScript (var prestashop)

Recommended Posts

Posted (edited)

Hello,

PrestaShop seems to have a JavaScript code (var prestashop) that contains the information about opened product. Unfortunately, on my client's website the data in this code is incorrect.

Here's how the contents of this JS code look in the working, freshly installed test version of PrestaShop: qeiToAL.jpg

You can see that on a correctly working PrestaShop the URL is the same as the one in the browser, and Canonical URL mirrors that as well. All the other data, like "name" of the product, list of the product images and so on are also correct here, because they reflect currently opened product.

However, on my client's shop, the data contained in this JavaScript code is almost completely wrong. "Add to cart URL" is correct, but things like URL, Cannonical URL, Product Images are always from a different product. And it happens on all products. They all point to one, different product.

Does anyone know why this happens?

 

Edited by finnenhawke

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More