Content of the page

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, ‘.’, ”); } }

Formidable Forms – Form Builder for WordPress

Plugin URL: https://wordpress.org/plugins/formidable/ //In file \wp-content\plugins\formidable-woocommerce\assets\scripts\formidable-addons.js function wc_fp_update_totals() insert next code if (woocs_current_currency != undefined && woocs_current_currency[‘rate’] != undefined && calc_value != undefined) { calc_value = calc_value * woocs_current_currency[‘rate’]; }  

WooCommerce Advanced Shipping (by sormano)

Plugin URL: https://codecanyon.net/item/woocommerce-advanced-shipping/8634573 //add next code in your wp theme functions.php file add_filter(‘wcml_shipping_price_amount’, ‘woof_compatibility_as’); function woof_compatibility_as($val) { if (class_exists(‘WOOCS’)) { global $WOOCS; return $WOOCS->woocs_exchange_value(floatval($val)); } return $val; }    

Product Bundles (by WooCommerce)

Plugin URL: https://woocommerce.com/products/product-bundles/ //\plugins\woocommerce-product-bundles\includes\class-wc-product-bundle.php add next code if (class_exists(‘WOOCS’)) { global $WOOCS; $bundle_price_data[‘base_price’] = $WOOCS->woocs_exchange_value($base_price); $bundle_price_data[‘base_regular_price’] = $WOOCS->woocs_exchange_value($base_regular_price); } else { $bundle_price_data[‘base_price’] = $base_price; $bundle_price_data[‘base_regular_price’] = $base_regular_price; } if (class_exists(‘WOOCS’)) { global $WOOCS; $bundle_price_data[‘prices’][$bundled_item->item_id] = $WOOCS->woocs_exchange_value($bundled_item->get_bundled_item_price(‘min’)); $bundle_price_data[‘regular_prices’][$bundled_item->item_id] = $WOOCS->woocs_exchange_value($bundled_item->get_bundled_item_regular_price(‘min’)); } else { $bundle_price_data[‘prices’][$bundled_item->item_id] = $bundled_item->get_bundled_item_price(‘min’); $bundle_price_data[‘regular_prices’][$bundled_item->item_id] = $bundled_item->get_bundled_item_regular_price(‘min’); } //\plugins\woocommerce-product-bundles\templates\single-product\bundled-product-variable.php add next code if (class_exists(‘WOOCS’)) {… read more

YITH WooCommerce Role Based Prices

Plugin URL: https://yithemes.com/themes/plugins/yith-woocommerce-role-based-prices/ This doesn’t fix bug with mini-basket and not depends of WOOCS code: https://drive.google.com/file/d/0B4zUhfhZlonlaTlLYXRmNlpPakE/view //in your wp theme functions.php file add all next code: add_filter(‘yith_ywcrbp_sale_price’, ‘woocs_yith_ywcrbp_sale_price’, 10, 2); function woocs_yith_ywcrbp_sale_price($sale_price, $product) { 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’];… read more

YITH WooCommerce Dynamic Pricing and Discounts

Plugin URL: https://yithemes.com/themes/plugins/yith-woocommerce-dynamic-pricing-and-discounts/ This doesn’t fix bug with mini-basket and not depends of WOOCS code: https://drive.google.com/file/d/0B4zUhfhZlonlaTlLYXRmNlpPakE/view //in file \plugins\yith-woocommerce-dynamic-pricing-and-discounts-premium\includes\functions.yith-wc-dynamic-pricing.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’]; $discount = $discount * ($rate); } } } if (class_exists(‘WOOCS’)) { global $WOOCS;… read more

WooCommerce Dynamic Pricing & Discounts v.2.1 – RightPress

Plugin link: https://codecanyon.net/item/woocommerce-dynamic-pricing-discounts/7119279 open file \wp-content\plugins\wc-dynamic-pricing-and-discounts\extensions\promotion-volume-pricing-table\rp-wcdpd-promotion-volume-pricing-table.class.php and add next code: if (class_exists(‘WOOCS’) AND $quantity_range[‘pricing_method’] == ‘discount__amount’) { global $WOOCS; $quantity_range[‘pricing_value’] = $WOOCS->woocs_exchange_value(floatval($quantity_range[‘pricing_value’])); } in file plugins\wc-dynamic-pricing-and-discounts\classes\controllers\rp-wcdpd-controller-methods-product-pricing.class.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; $initial_price = $WOOCS->woocs_exchange_value(floatval($initial_price)); } in file \wp-content\plugins\wc-dynamic-pricing-and-discounts\templates\volume-pricing-table\vertical.php add code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $display_price = $WOOCS->woocs_exchange_value(floatval($current_single[‘table_data’][$range_key][“price_raw”])); echo wc_price($display_price); } }… read more

WooCommerce Dynamic Pricing (by WooCommerce)

Plugin URL: https://woocommerce.com/products/dynamic-pricing/ //in file \plugins\woocommerce-dynamic-pricing\classes\modules\class-wc-dynamic-pricing-advanced-totals.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’]; $rule[‘from’] = $rule[‘from’] * ($rate); $rule[‘to’] = $rule[‘to’] * ($rate); } } } //in your wp theme functions.php file add next code: add_filter(‘wc_dynamic_pricing_apply_cart_item_adjustment’, ‘woocs_fix_dinamic_price’, 999,… read more

Payment Gateway Based Fees (by WooCommerce)

Plugin URL: https://woocommerce.com/products/payment-gateway-based-fees/ //In file \plugins\woocommerce-additional-fees-2\classes\class-wc-add-fees.php function calculate_fees add next code if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $add_fee_fixed = $WOOCS->woocs_exchange_value(floatval($add_fee_fixed)); } } //AND add this code if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $add_fee = $WOOCS->woocs_exchange_value(floatval($add_fee)); } } //AND in function &calculate_gateway_fee_total add next code if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) {… read more