FOX - WooCommerce Currency Switcher Professional

Google for WooCommerce

Plugin URL: https://wordpress.org/plugins/google-listings-and-ads/

In file functions.php of the current wp theme add next code:

add_filter('woocommerce_gla_product_query_args', function ($args) {
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $WOOCS->reset_currency();
    }
    return $args;
});

 


Old code:

In file wp-content\plugins\google-listings-and-ads\src\Product\WCProductAdapter.php add next code (2 places):

if (class_exists('WOOCS')) {
    global $WOOCS;
    if ($WOOCS->current_currency != $WOOCS->default_currency) {
        $WOOCS->reset_currency();
    }
}