Jump to content

Prestashop has started to add a number after each product, breaks preview and sitemap


Recommended Posts

Hi

 

We have been on the 1.5.4.1 version for a long time now and suddenly we are not able to do Preview any more. Any product we try to preview has a long number added to it, like this:


 

The product link in the shop is:


 

and this is working so the product is there and the customers can see it.

 

This however is not the worst thing. I just saw that the sitemap contains the incorrect link as well. You have the sitemap here:


 

all the new product have the strange number appended in the sitemap and end up with 404 message. Google will have a field day on that one.

 

We have no idea what is going on here. There must be some explaination for this? I do expect something with the preview but we have been using the same version (1.5.4.1) for about 8 months and this started recently.

 

We are happy to test any advice but we are very concerned about this behavior.

 

Anyone has an idea?

Edited by FluffyCat (see edit history)
Link to comment
Share on other sites

Investigating further, it seems as the strange number afterwards is the EAN code which we have added to some products. So ignore the previous comment about the preview, that was misleading.

 

The thing we need to understand is why our links fails when we have the EAN13 code inserted for the products.

 

Out Route-to-product setting is: {id}-{rewrite}

 

so the ean13 code is not even mentioned there so it is very strange that it is added to the url.

 

We do use a clean url module and we will ask about them as well.

 

Again, all ideas welcome

Link to comment
Share on other sites

Hi Dh42

 

Indeed we use a clean url module. However I am not yet convinced that is the issue since the url in the store is ok and working. So all products are shown ok. The problem is that when previewing and also in the sitemap, the EAN13 code is included which is not respecting the setting in the SEO config in the backoffice.

Link to comment
Share on other sites

I have now tried to deactivate the clean url module as well and it makes no difference.

 

It is as easy as when I add a EAN13 code to a product, Prestashop wants to use it in the URL even though the settings for the products is just:

Route-to-product setting is: {id}-{rewrite}

 

I have found some old posts about the EAN stuff but they all date back to 2010-2011 and prestashop 1.4.x. I would expect that this should not happen in 1.5.4.1 or?

Link to comment
Share on other sites

×
×
  • Create New...