ameen95
Forum Replies Created
-
Forum: Plugins
In reply to: [Google for WooCommerce] Currency Mismatch (Aelia Currency Switcher)Hello,
Thanks for your response. We’ve been using Aelia for many months before, without issues. The only significant change around that date would have been a change of web hosting on the 10th of October.
Are you guys aware of any known issues people have when changing web hosts? The only thing I can think of is possibly a change in caching methods, but would caching affect the feeds in any way?
Also, Aelia have suggested the following possible fix:
if you wish to generate a feed in GBP, you could try to intercept the feed generation and set the currency to GBP (see example #3 from the article I sent you:?Aelia Currency Switcher – How to change the selected currency via code) when that happens. We don’t have a tested solution for specific feed plugins, because that’s outside the scope of our support service, but something like the following could work:
// Replace <SOME EVENT PROVIDED BY THE FEED PLUGIN> with the appropriate event name add_action('<SOME EVENT PROVIDED BY THE FEED PLUGIN>', function() { add_filter('wc_aelia_cs_selected_currency', function($selected_currency) { // Force selected currency to GBP when the feed is being generated $selected_currency = 'GBP'; return $selected_currency; }); });
You would need to replace?<SOME EVENT PROVIDED BY THE FEED PLUGIN>?with the appropriate action, which the authors of the feed plugin can suggest. This would set the active currency to GBP when the feed is being generated, and that should produce a feed in GBP.
Would you be able to kindly help me with the event used to generate the feed, or if you think the above solution would work?
Kind regards
Ameen