Jump to content

Friendly URL & Page Display Issue


Recommended Posts

I am not sure if this is a bug or what, but we have certain products that are displaying improperly and we're not sure if it has to do the with friendly URL, import or Prestashop.  I have a good feeling that it has to do with the "&" symbol.

 

This product was imported using FastImport.  We designated the subcategory as Necklaces & Pendants.  It shows the correct category but is not displaying correctly.

 

http://184.154.6.200/necklaces-pendants/644-cocktail-stax-cherry-sour-chain.html

 

This is a category that didnt use the "&" symbol and works fine.

 

http://184.154.6.200/earrings/452-athena-single-drop-earrings-.html

 

Any thoughts on how to correct this and avoid it in future imports?

Link to comment
Share on other sites

We changed the category name as you first suggested.  It didnt do anything.  Before the import, we created the category names and then associated the product with it.  Any category with the "&" symbol is displaying incorrectly.  All categories with a single name are ok.  When I go to the product association, it shows it is in the correct category, but the product display is the issue.

Link to comment
Share on other sites

Hey Ben,

 

We are talking about re-importing 100s of products again.  I would rather find a simpler fix and figure out the issue, which hasnt happened yet, rather than upload the products again.  Unfortunately, that may be the only alternative.  :/

 

I completely understand. However, I think the problem occurred during the initial import process. The fix within the tools.php should be made before the import process. It seems that this bug will probably mean tat you need to upload the products again.

 

You imported using csv?

Link to comment
Share on other sites

  • 4 weeks later...

This issue has come up again.  We noticed some of our products were incorrect, so we updated the csv file and re-imported.  Now the store is displaying incorrectly again.  We followed the suggestion of the tools fix (above), but believe that issue was fixed in the updated version 1.5.6.0, right?  It just seems to be anything with the "&" symbol is messing up our store on the import.

 

http://184.154.6.200/

Link to comment
Share on other sites

Hello! Why don't you try this Github fix if its applicable. Make sure to always have a backup! https://github.com/PrestaShop/PrestaShop/commit/7d764c5ce8e0ccb58f6669804474397217f8eaae

 

You can change the lines directly or copy the entire file contents (here https://github.com/PrestaShop/PrestaShop/blob/7d764c5ce8e0ccb58f6669804474397217f8eaae/controllers/admin/AdminImportController.phpinto  controllers / admin / AdminImportController.php

 

 

Keep me posted. Thank you so much!

Link to comment
Share on other sites

Ben,

 

We were able to get the products imported again, but there were a couple of products in the admin that weren’t showing pictures for some reason.  I figured if they didn’t import correctly, they might be the issue and I was right.  I am not sure what in these specific products were causing issues, but once removed all is fine.  It could be because we are using html in the descriptions.

 

Jonathan

Link to comment
Share on other sites

×
×
  • Create New...