Hi Steven,
This issue seems similar to https://wpml.org/errata/betheme-product-in-quick-view-shows-default-currency/
Astra theme is probably using a custom ajax_action that needs to be added to our filter. I’ll try to reproduce locally and will get back to you in a moment.
-
This reply was modified 3 weeks, 2 days ago by
Nicolas V..
@kingcooper
Could you please try to add the following code to your functions.php file:
// WPML Workaround for compsupp-7862
add_filter( 'wcml_multi_currency_ajax_actions', 'add_action_to_multi_currency_ajax', 10, 1 );
function add_action_to_multi_currency_ajax( $ajax_actions ) {
$ajax_actions[] = 'ast_load_product_quick_view';
return $ajax_actions;
}
Hi @nicolasviallet
Thanks, I really wasn’t expecting anyone to work this out.
I think we’re into something, but this code with custom function didn’t work this time around.
I’ve added it to my functions file in child theme.
Maybe we need to rename the hook?
Please ensure that you use only the workaround provided above, rather than the one from the link in my initial response. While the issues are similar, the AJAX action name differs, it should be 'ast_load_product_quick_view'
.
I tested this locally with USD as my default currency. When switching to EUR in the store, the quick view pop-up still displayed the price in USD. Adding the workaround code to my theme’s functions.php resolved the issue. Prices are now showing in EUR.
It’s possible that your issue is slightly different. Could you share more details so I can better understand and assist you?
Yes, I’ve definitely done that.
However it still does not work.
Thanks
Hi Steven,
Let’s try something else. I’ve created this sandbox site for you: https://silver-hang.sandbox.otgs.work/?auto=URArmeRanpOJNqqSKmWkAHYhk0dCob9i
Could you please try to reproduce the issue there? Everything is already set up and the workaround code has been added to the child theme.