Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with WPML Multicurrency not working with the YITH Auction plugin, even after upgrading to the PRO versions of both plugins.
Solution:
We recommend adding the following code to the functions.php file of your theme:

function wpml_compsupp7424_filter_yith_auction_minimum_increment_amount ($null, $object_id, $meta_key, $single) {
     
    // Target the specific meta key
    if ($meta_key !== '_yith_auction_minimum_increment_amount') {
        return $null;
    }
 
    $current_filter = 'wpml_compsupp7424_filter_yith_auction_minimum_increment_amount';
 
    // Prevent recursion by temporarily removing the filter
    remove_filter('get_post_metadata', $current_filter, 10);
 
    // Fetch the original meta value
    $value = get_post_meta($object_id, $meta_key, $single);
 
    // Re-add the filter
    add_filter('get_post_metadata', $current_filter, 10, 4);
 
    $value = apply_filters('wcml_raw_price_amount', $value);
 
    return $value;
}

If this solution does not resolve your issue or seems irrelevant due to updates or differences in your setup, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 13 replies, has 2 voices.

Last updated by Shekhar Bhandari 12 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
June 19, 2024 at 8:18 am

pauloM-21

Background of the issue:
I want to use multicurrency with YITH Auction plugin on my website hidden link. I am using PRO versions of both WPML and YITH Auction. The free version was only changing the currency sign, so I purchased CMS as suggested by your team, but CMS is not even doing that.

I am very particular about Multicurrency.

Symptoms:
WPML Multicurrency is not working with YITH Auction plugin.

Questions:
Why is WPML Multicurrency not working with YITH Auction plugin on my website?
What steps can I take to make WPML Multicurrency work with YITH Auction plugin?

June 19, 2024 at 9:42 am
June 24, 2024 at 5:37 am #15802540

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello 🙂

Our compatibility team checked the issue and suggested the following workaround:

Add the following code to the functions.php file:

// WPML Workaround for compsupp-7424
add_filter('get_post_metadata', 'wpml_compsupp7424_filter_yith_auction_minimum_increment_amount', 10, 4);

function wpml_compsupp7424_filter_yith_auction_minimum_increment_amount ($null, $object_id, $meta_key, $single) {
    
	// Target the specific meta key
    if ($meta_key !== '_yith_auction_minimum_increment_amount') {
        return $null;
    }

	$current_filter = 'wpml_compsupp7424_filter_yith_auction_minimum_increment_amount';

    // Prevent recursion by temporarily removing the filter
    remove_filter('get_post_metadata', $current_filter, 10);

    // Fetch the original meta value
    $value = get_post_meta($object_id, $meta_key, $single);

    // Re-add the filter
    add_filter('get_post_metadata', $current_filter, 10, 4);

	$value = apply_filters('wcml_raw_price_amount', $value);

    return $value;
}

Let me know if this helps.

Thanks

June 27, 2024 at 5:57 am #15840502

pauloM-21

I can see one issue there, give me sometime, I will get back on this.

June 28, 2024 at 4:58 am #15848806

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

sure, look forward to your reply.

Thanks

June 29, 2024 at 6:20 am #15856619

pauloM-21

Hello,

Can you please check again, it is not working, I have tested creating new products also.

hidden link

and also when I am changing the currency, when I am trying to edit things in the "edit product" like changing the minimum increment price, and it starts showing to the chosen currency for the front end.

I hope you already have access of backend of the website.

YOu can try to put cod by yourself also thru WordPress dashboard -> WP file manager

Kindly test, thank you!

July 1, 2024 at 4:29 am #15865096

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I see the minimum bid increment set to 20 but even in default currency, it's being incremented by 10, can you confirm once if the bid increment is working for you on default currency? hidden link

Also, can you test on this testsite once? hidden link

If it works on test site, which I confirmed before providing you the code, then we might need to disable plugins/themes one by one on your site to see if they are happening due to conflicts.

Look forward to your reply.

Thanks

July 1, 2024 at 12:49 pm #15868634

pauloM-21

It is increasing by 10 even with default currency, and with other currency also.

And there is one big problem is, when I am changing the currency from the frontend of the website, then the "Minimum increment amount (kr)" is getting changed in backend, that seems very strange.

There is not much traffic on the website, you can try disabling the plugins.

Thank you, waiting for the solution.

July 1, 2024 at 12:51 pm #15868651

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Since you confirmed it's moved by 10 even in default language, can you disable WPML and see if you can find the same issue, if yes, please contact the plugin author to ask why increment is not working as selected.

Look forward to your reply.

thanks

July 2, 2024 at 8:56 am #15873664

pauloM-21

It is basically sorted, only INR is not working correctly, will try that too meanwhile I need one thing from you, like the currency conversion option shown in after Add to Wishlist, can we show that next to price?

July 2, 2024 at 9:41 am #15873927

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Please follow the steps as mentioned here to add custom language switcher. https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currency-switcher-widget

Thanks

July 10, 2024 at 7:41 am #15926244

pauloM-21

Can this plugin work with Viva Wallet?

hidden link

Please confirm, or how can I use it?

July 10, 2024 at 8:26 am #15926513

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

You can find a list of compatible plugins here: https://wpml.org/plugin/?wpv_view_count=120064&wpv-plugin-functionality=0&wpv_post_search=Viva+Wallet&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search

I don't see the mentioned plugin.

Thanks

July 10, 2024 at 10:44 am #15927679

pauloM-21

I couldn't see Viva wallet, and it is an excellent tool.

Can can I do that?

Is there any custom solution, I can do with PHP or any other thing.

July 10, 2024 at 10:46 am #15927681

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I am not sure how the plugin works, you can reach out to there team and ask if they support multilingual sites.

Also, since we handle one issue per ticket, I suggest you to open a new ticket if you need help with any other issues.

Thanks