Home / Forums / WoodMart support forum / WPML Currency on Ajax product tabs
Home › Forums › WoodMart support forum › WPML Currency on Ajax product tabs
WPML Currency on Ajax product tabs
- This topic has 9 replies, 2 voices, and was last updated 6 years ago by
Artem Temos.
-
AuthorPosts
-
April 17, 2020 at 12:26 pm #187829
JohnParticipantHello 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/April 18, 2020 at 8:37 am #188038Hello,
You are using a wrong filter
wcml_multi_currency_ajax_actionsxand the correct one iswcml_multi_currency_ajax_actions.Kind Regards
April 18, 2020 at 9:15 am #188051
JohnParticipantHello 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?April 18, 2020 at 11:17 am #188079By the way, what exactly issue do you have? And why do you think that the above code should do anything?
April 18, 2020 at 11:20 am #188081
JohnParticipantIssue 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.
ThanksApril 18, 2020 at 12:42 pm #188099Please, provide us your admin access so we can log in and check this on your side.
Thank you in advance.
May 31, 2020 at 4:10 pm #199471
JohnParticipantHello again,
I have received a strange answer from wpml support regarding some compabilities.June 1, 2020 at 6:07 am #199543Hello,
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.phpin 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
June 1, 2020 at 8:43 pm #199790
JohnParticipantSorry but that fix doesn’t works.. I have already tried that.
June 2, 2020 at 5:58 am #199851But 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.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register