• Hi

    When I set Astra Pro Quick View to pop up on page wpml currency switch does not work.

    Please visit the page and quick view a product, to see error

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Nicolas V.

    (@nicolasviallet)

    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 ago by Nicolas V..
    Plugin Support Nicolas V.

    (@nicolasviallet)

    @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;

    }
    Thread Starter Steven Cooper

    (@kingcooper)

    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?

    Plugin Support Nicolas V.

    (@nicolasviallet)

    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?

    Thread Starter Steven Cooper

    (@kingcooper)

    Yes, I’ve definitely done that.

    However it still does not work.

    Thanks

    Plugin Support Nicolas V.

    (@nicolasviallet)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.