The plugin link: https://wordpress.org/plugins/yith-woocommerce-product-add-ons/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | //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'])); } |
p.s. Works, but without menu basket!
