Tips&Tricks

How to Include Custom Sitemap.xml in Robots.txt File in Prestashop

How to Include Custom Sitemap.xml in Robots.txt File in Prestashop

The function AdminMetaController::generateRobotsFile() is responsible for generating the robots.txt file in Prestashop. This function is executed via PREFERENCES -> SEO & URLS -> Generate robots.txt file.

But in one of our projects we faced the following issue: the sitemap.xml file is generated by the default Gsitemap module, which saves the file under the name  {shop_id}_index_sitemap.xml. But the function AdminMetaController::generateRobotsFile() uses the following code to find sitemap: (more…)

Importing Images with Regional Symbols in the File Names in Prestashop

September 30, 2014 Alex Simonchik Prestashop, Tips&Tricks
Importing Images with Regional Symbols in the File Names in Prestashop

Here is a small tip how to import images that use regional symbols in the file names, for example such as “Rødvin”.

The thing is that the default import is not able to upload pictures that have such characters in the name, that is why as a result you will see just a picture with a grey question mark instead of the product image. The problem is that AdminImportController::productImport() uses the URL of the image just as it is: (more…)

top