Content of the page

YITH WooCommerce Product Add-Ons

Content of the article

The plugin link: https://ru.wordpress.org/plugins/yith-woocommerce-product-add-ons/

//In file: \wp-content\plugins\yith-woocommerce-product-add-ons\includes\class.yith-wapo-frontend.php

//in function printOptions insert next code: (see image #1)
if (class_exists('WOOCS')) {
    global $WOOCS;
    $price_calculated = $WOOCS->woocs_exchange_value(floatval($price_calculated));
}

//in function get_item_data insert next code: (see image #2)
if (class_exists('WOOCS')) {
    global $WOOCS;
    $single_type_options['price'] = $WOOCS->woocs_exchange_value(floatval($single_type_options['price']));
}


//function order_item_meta insert next code: (see image #3)
if (class_exists('WOOCS')) {
    global $WOOCS;
    $single_type_options['price'] = $WOOCS->woocs_exchange_value(floatval($single_type_options['price']));
}


//in function cart_adjust_price insert next code: (see image #4)
if (class_exists('WOOCS')) {
    global $WOOCS;
    $currencies = $WOOCS->get_currencies();
    $conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
    $types_total_price = $types_total_price / $conversion_rate;
}

p.s. Works, but without menu basket!