My shop uses several currencies: how to make Google detect the correct currency?
For Google Merchant Center < 4.7.16 and Google Merchant Center PRO < 1.7.0
If your shop uses multiple currencies you must select "Yes" for the option called "Add id_currency in product link" in "Basic Settings" tab of the module. Indeed, Google needs to see products prices in the right currency. If not, Google will refuse your feed.
To this end, you must insert in your product URL's a parameter which will enable the prices displaying in the Google expected currency. However, in the PrestaShop standard version, there is no parameter that allows to set the right currency based on the URL. So, we created one. It looks like gmc_currency=1 (or 2,3,4... according to the number assigned to the currency in your PrestaShop).
Product URL example :
When you activate the "Add id_currency in product link" option, you add this parameter in your product URL's. However, this one will be useless if PrestaShop isn't able to interpret it... Therefore you will also need to override the Tools.php class (that is to say modify the native performance of this class).
By doing it, when Google will check your product URL's, the prices will be in the expected currency.
To do that, follow these steps (valid for Prestashop versions higher or equal to 1.6) :
- Go into the /modules/gmerchantcenter/override_files/1.X/classes folder => where 1.X matches with your version of PrestaShop 1.X = 1.6 or 1.7
- Copy the Tools.php file
- Upload it to the /override/classes/ folder of your PrestaShop installation
- Open the /cache/class_index.php file (for PS under 1.7) or /app/cache/prod/class_index.php (for PS 1.7) and look for this code :
'Tools' => array ('path' => ' ')
- Replace it by :
'Tools' => array ('path' => 'override/classes/Tools.php')
Note : if the Tools.php class has already been overridden, then you will need to have your developer insert the code from our override into his own work.
For Google Merchant Center ≥ 4.7.16 and Google Merchant Center PRO ≥ 1.7.0
In order to allow robots from search engines like Google to see the parameter corresponding to the currency in the URLs of your products, you must allow this parameter in the "robot.txt" file of your PrestaShop installation. Follow this procedure:
- At the root of your PrestaShop installation, look for the file "robot.txt" and open it with a text editor such as Notepad++
- Look for the strings:
- Move them in the part of allowed parameters and modify the term "Disallow" by "Allow":
- Save the "robot.txt" file.
Other FAQs in this category
- Do I need to rewrite numeric values into the combination URLs?
- How to only export products that are available for selling?
- How to fill my shop's URL?
- Do I have to ask the module to include the attribute IDs into combination URLs?
- What does "Too many attribute values for attribute: size (color)" Google error mean?
- What is the simple ID?
- How to create a CRON task?
- How to match my products with Google categories?
- How to automatically update my feeds (on-the-fly output or CRON task)?
- How to create custom labels ?
- How to import my feeds in Google Shopping ?
- Why was my selection of categories not properly saved ?
- How to configure my module ?