Content of the page

YITH WooCommerce Product Add-Ons

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;… read more

Product Add-Ons (by WooCommerce)

Plugin URL: https://woocommerce.com/products/product-add-ons/ //In file \plugins\woocommerce-product-addons\includes\class-product-addon-cart.php add next code if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $currrent = $WOOCS->current_currency; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent][‘rate’]; $price = $price / $rate; } } } //AND in function get_item_data() $price_temp = $addon[‘price’]; if (class_exists(‘WOOCS’)) { global $WOOCS; $currrent = $WOOCS->current_currency; if ($currrent… read more

WooCommerce Subscriptions (by RightPress)

Plugin URL: https://support.rightpress.net/hc/en-us/categories/200129159 //in your wp theme functions.php file add next code add_filter(‘wcml_raw_price_amount’, ‘woocs_convert_fix_price’); function woocs_convert_fix_price($price) { if (class_exists(‘WOOCS’)) { global $WOOCS; $price = $WOOCS->woocs_exchange_value($price); } return $price; }    

WooCommerce Bookings (by WooCommerce)

Plugin URL: https://woocommerce.com/products/woocommerce-bookings/ //In file \plugins\woocommerce-bookings\includes\admin\class-wc-bookings-ajax.php add next code if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $display_price = $WOOCS->woocs_exchange_value(floatval($display_price)); } } //In file \plugins\woocommerce-bookings\includes\data-objects\class-wc-product-booking.php add next code if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $display_price = $WOOCS->woocs_exchange_value(floatval($display_price)); } } //and change code as on the screen #3  

WooCommerce Extra Product Options (by themecomplete)

Plugin URL: https://codecanyon.net/item/woocommerce-extra-product-options/7908619 //And add this code in functions.php of your current wp theme: add_filter(‘woocs_fixed_raw_woocommerce_price’, ‘compatibility_woo_tm_extr’, 10, 3); function compatibility_woo_tm_extr($fix_price, $product, $price) { global $WOOCS; //var_dump($price); if (is_cart() OR is_checkout()) { $new_price = $WOOCS->woocs_exchange_value($price – $fix_price); $fix_price += $new_price; return $fix_price; } return $fix_price; } ATTENTION: from v.4.5.4 this hook inbuilt into WooCommerce Extra Product Options so… read more

Measurement Price Calculator (by WooCommerce)

Plugin URL: https://woocommerce.com/products/measurement-price-calculator/ //in file \plugins\woocommerce-measurement-price-calculator\classes\class-wc-price-calculator-cart.php add next code if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $conversion_rate = $currencies[$WOOCS->current_currency][‘rate’]; $price = $price / $conversion_rate; } } //the same file, see screen #2 if (class_exists(‘WOOCS’)) { global $WOOCS; $temp_price = $WOOCS->woocs_exchange_value(floatval($temp_price)); }

Yandex Money Gateway for WooCommerce (by Dayes)

//in file \woocommerce-yandex-money.php add next code if (class_exists(‘WOOCS’)) { global $WOOCS; $currencies = $WOOCS->get_currencies(); if (isset($currencies[‘RUB’])) { $rub_rate = $currencies[‘RUB’][‘rate’]; $curr_rate = $currencies[$WOOCS->current_currency][‘rate’]; $yandex_args[‘sum’] = number_format(($order->order_total / $curr_rate) * $rub_rate, 2, ‘.’, ”); } }