Home Forums WoodMart support forum WPML Currency on Ajax product tabs

WPML Currency on Ajax product tabs

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #187829

    John
    Participant

    Hello again,
    I have found an issue that is pretty old and still doesn’t got fixed, regarding ajax product tabs and currency with wpml.

    Adding the following code doesn’t fix the issue:

    //wpml product ajax
    add_filter( 'wcml_multi_currency_ajax_actionsx', function( $actions ) {
      $actions[] = 'woodmart_get_products_tab_ajax';
     
      return $actions;
    } );

    Useful links: https://xtemos.com/forums/topic/product-tabs-element-currency-issue/
    https://wpml.org/forums/topic/currency-issue-2/
    https://wpml.org/forums/topic/multicurency-is-not-working-on-products-tabs/

    #188038

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    You are using a wrong filter wcml_multi_currency_ajax_actionsx and the correct one is wcml_multi_currency_ajax_actions.

    Kind Regards

    #188051

    John
    Participant

    Hello thanks for response, same issue sadly if I remove the x. I have also set this on integration->WPML but without luck.
    When I saw the release log that said the wpml ajax fixed I was thinking about this issue.
    Any advice? Should I contact wpml?

    #188079

    Artem Temos
    Keymaster
    Xtemos team

    By the way, what exactly issue do you have? And why do you think that the above code should do anything?

    #188081

    John
    Participant

    Issue is with product ajax tabs, the first tab is on the right currency for ex euro but if i go to other categories or press load more button then it will revert to default currency ron for ex. Please check the link above other user had same issue that is still not solved.
    Thanks

    #188099

    Artem Temos
    Keymaster
    Xtemos team

    Please, provide us your admin access so we can log in and check this on your side.

    Thank you in advance.

    #199471

    John
    Participant

    Hello again,
    I have received a strange answer from wpml support regarding some compabilities.

    https://wpml.org/forums/topic/switching-language-on-ajax-product-categories-with-redirect-to-shop/page/2/#post-6260873

    #199543

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Yes, we were reached by WPML’s compatibility team and actually answered that the issue will be fixed in our next theme update. We never refused anything regarding WPML compatibility. You can put the following code to the functions.php in the child theme (provided by WPML developer).

    add_filter( 'wcml_multi_currency_ajax_actions', function( $actions ) {
    $actions[] = 'woodmart_get_products_shortcode';
    
    return $actions;
    } );

    Kind Regards

    #199790

    John
    Participant

    Sorry but that fix doesn’t works.. I have already tried that.

    #199851

    Artem Temos
    Keymaster
    Xtemos team

    But this fix was provided by WPML team. If it doesn’t work for you, try to contact them again since we are opened to implement any code that will fix this problem. Usually, such fix worked for all AJAX actions.

Viewing 10 posts - 1 through 10 (of 10 total)