I am trying to setup Merchant Centre on Google using Woocommerce Product Feeds plugin. Three feed files are setup to differentiate language and currency.
woocommerce-cs.xml - czech language and CZK prices - works fine
woocommerce-de.xml - german language and EUR prices - ISSUE - sends CZK price info
woocommerce-en.xml - english language and EUR prices - ISSUE - sends CZK price info
Is there a currency marker in URL of the feed to ensure EUR prices are sent instead of CZK prices, alternatively how do I make sure the feed reflects the EUR currency? At the moment, the url of the feed is always the same with language extention only i.e. ?lang=en and ?lang=de but my website does not use url exntention for currency but widget
That is a good point, Actually, I think we never tested the feed plugin with the multi-currency feature and that might be the fact that it is not compatible with that specific feature but it needs to be tested.
For now would you please test this way:
- Go to "WordPress Dashboard > WPML > Languages > Language URL Format".
- Check the "Different languages in directories" checkbox.
- Click the "Save" button.
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button to flush the permalinks cache.
After that please check this URL:
YOURWEBSITE.com/en/?woocommerce_gpf=google
See if it shows the feed with the correct currency or not.
There are various websites and articles not to mention social media linked to the nayavita.com website. The links are in the current format where language is a parameter. By doing the change you suggested, does it mean these cross-links will no longer work? Because if that is the case, this cannot be the solution.
Is there a way to include currency parameter just in the feed url?
After that a URL like: hidden link will have the currency in Euro. But I am not sure if this will work when it comes to a third party plugin product feed you know.
I have added the code to functions.php and updated the url in Google Merchant Centre for my English and German product feeds to include the /?currency=EUR parameter.
Tried to add it before the language parameter but that didnt work so popped it at the end of the url. The feed works but still pulls CZK data for both language feeds.
I suggest to leave it over night as sometimes google takes a while to reflect the changes properly but for now I did try to re-process both feeds in EUR and fetch new data and still had the same error.
I will check tomorrow and get back to you here once I know more.
Hi Christopher, I have checked the MC and the currency parameter doesnt work. More so, it actually somehow 'negates' the language parameter too, making the feed in Czech, as opposed to English or German.
Any ideas?
I cannot change all permalinks as discussed before since we don't know if that will work and there are backlinks to my website and cross-links between my websites and within that would stop working. Many of which I cannot update.
Thank you for testing that method. It seems that indeed WPML does not support the multicurrency feed with the plugin in question.
To test that, we will need to replicate the fact that it is not working with multicurrency and then report this to the compatibility team and wait for their answer, it might be something that can be implemented or it will need more cooperation from the plugin developer.
But at the time being, I do not have another suggestion other than reporting this to the compatibility team.
I created a clean installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below: hidden link
Kindly follow the steps below:
- Install the feed plugin
- Setup WPML and Woocommerce
- Try to replicate the issue.
This will help us to report the probable issue to the compatibility team and solve the possible problem faster.
To replicate that, you would need to have your site linked to Google Merchant Centre, since it is there where the feed is showing up in CZK. The currency switcher widget on the site looks fine.
Also, the Woocommerce product feed is a paid plugin - is that something you have available to replicate?
Thank you for this. Once I Include this code in the functions.php, what is the url structure I need to put in the Merchant Centre feed? Remember I am already using language parameter to have feeds in different languages.
Would it be:
website.com/?lang=en/?currency=eur
Is there anything I need to do with cache to make this work?
Thanks! It seems to work now. I will check tomorrow once the Google MC feed refershes over night and applies all changes and will confirm the issue is resolved.