PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Question only

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi dev can you please kindly confirm if this plugin is compatible with YITH WooCommerce Product Add-Ons & Extra Options (yithemes.com)

Thank you

Hello

Unfortunately, we do not have such information.

Please  read  this - https://currency-switcher.com/woocs-labs

Maybe this code will help:

add_filter( 'yith_wapo_get_addon_price', function($price, $do, $price_method, $price_type, $index){

if ($price) {
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
}
}

return $price;
},10, 5);

add_filter( 'yith_wapo_total_item_price', function($cart_item_price){
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed && $cart_item_price) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$cart_item_price = $cart_item_price / $rate;
}
}
}
return $cart_item_price;
} );