My shop uses multi-currency : how to make Facebook detect the correct currency?
For Dynamic Ads + Pixel versions < 1.3.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, Facebook needs to see products prices in the right currency. If not, Facebook 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 Facebook 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 fpa_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 Facebook 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 Dynamic Ads + Pixel versions ≥ 1.3.0
In order to allow Facebook 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
- How to import my products into a catalog I created?
- Where to find my Business ID?
- How to test my Pixel code?
- How to match my products with Facebook categories?
- How to fill my shop's URL?
- How to import my products into the "Shop" tab of my Facebook Page?
- How to configure the module ?
- How to create custom labels to segment my catalog?
- Do I have to include the LANG ID in the product ID?
- How to create advanced exclusion rules?
- Do I have to ask the module to include the attribute IDs into combination URLs?
- Do I need to rewrite numeric values into the combination URLs?
- How to create and install my Facebook Pixel?
- How to automatically update my feeds (on-the-fly output or CRON task)?