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 (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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