Content of the page

WooCommerce Composite Products

Plugin: https://woocommerce.com/products/composite-products/ in file wp-content\plugins\woocommerce-composite-products\includes\class-wc-cp-display.php add next code: $suffix=”; in file wp-content\plugins\woocommerce-composite-products\assets\js\frontend\add-to-cart-composite.js add next code: if (typeof woocs_current_currency != ‘undefined’ && typeof woocs_current_currency[‘rate’] != ‘undefined’) { price_data.base_price = price_data.base_price * woocs_current_currency[‘rate’]; price_data.base_regular_price = price_data.base_regular_price * woocs_current_currency[‘rate’]; composite_totals.price = composite_totals.price * woocs_current_currency[‘rate’]; composite_totals.regular_price = composite_totals.regular_price * woocs_current_currency[‘rate’]; }

Flexible Product Fields Pro (by wpdesk.net)

Plugin: https://www.wpdesk.net/products/flexible-product-fields-pro-woocommerce/ in file \wp-content\plugins\flexible-product-fields\classes\fpf-product-fields.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $price = $WOOCS->woocs_exchange_value(floatval($price)); } } in file \wp-content\plugins\flexible-product-fields\classes\fpf-cart.php add next code: $cost = $cart_item[‘data’]->get_price() + $extra_cost; if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $currencies = $WOOCS->get_currencies(); $conversion_rate = $currencies[$WOOCS->current_currency][‘rate’]; $cost = $cost / $conversion_rate; } } $cart_item[‘data’]->set_price($cost); Please … read more

Finale Lite – Sales Countdown Timer & Discount for WooCommerce (by XLPlugins)

Plugin: https://wordpress.org/plugins/finale-woocommerce-sales-countdown-timer-discount/ in file  wp-content\plugins\finale-woocommerce-sales-countdown-timer-discount\includes\wcct-cart.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; $currrent = $WOOCS->current_currency; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent][‘rate’]; $price = $price / ($rate); } }

Wholesale Suite

Plugin: https://wholesalesuiteplugin.com/ in file \wp-content\plugins\woocommerce-wholesale-prices\includes\class-wwp-wholesale-prices.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; $currrent = $WOOCS->current_currency; if ($currrent != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currrent][‘rate’]; $wholesale_price = $wholesale_price / ($rate); } } if (class_exists(‘WOOCS’)) { global $WOOCS; $wholesale_price = $WOOCS->woocs_exchange_value($wholesale_price); }  

DOKAN

Plugin: https://wedevs.com/dokan/ in functions.php of your current wp theme add next code: add_action(‘woocommerce_order_status_completed’, ‘woocs_payment_complete’, 1); add_action(‘woocommerce_payment_complete’, ‘woocs_payment_complete’); function so_payment_complete($order_id) { if (class_exists(‘WOOCS’)) { global $WOOCS; $WOOCS->recalculate_order($order_id); } } add_filter(‘wp_head’, function() { if (is_page(‘dashboard’)) { if (class_exists(‘WOOCS’)) { global $WOOCS; $WOOCS->reset_currency(); } } });    

WooCommerce Points and Rewards (by WooCommerce)

Plugin: https://woocommerce.com/products/woocommerce-points-and-rewards/ in file \plugins\woocommerce-points-and-rewards\includes\class-wc-points-rewards-manager.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’]; $amount = $amount / ($rate); } } } if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $currrent = $WOOCS->current_currency; if ($currrent != $WOOCS->default_currency) { $currencies… read more

WooCommerce Subscriptions by WooCommerce

Plugin: https://woocommerce.com/products/woocommerce-subscriptions/ In file functions.php of your current wp theme add next code: add_filter(‘woocommerce_subscription_price_string_details’, ‘woocs_woocommerce_subscription_price_string_details’, 100, 2); function woocs_woocommerce_subscription_price_string_details($arg, $_this) { if (class_exists(‘WOOCS’)) { global $WOOCS; $order_currency = get_post_meta($_this->get_id(), ‘_order_currency’, true); if ($order_currency AND $WOOCS->current_currency != $order_currency) { $WOOCS->set_currency($order_currency); } } return $arg; } In file \wp-content\plugins\woocommerce-subscriptions\includes\wcs-order-functions.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; $order_currency =… read more

YITH WooCommerce Color and Label Variations

Plugin: https://yithemes.com/themes/plugins/yith-woocommerce-color-and-label-variations/ In file wp-content\plugins\yith-woocommerce-color-label-variations-premium\includes\class.yith-wccl-frontend.php add next code if (class_exists(‘WOOCS’)) { global $WOOCS; $curr_curr = $WOOCS->current_currency; $transient = ‘yith_wccl_get_available_variations_’ . $curr_curr . ‘_’ . $product_id; }  

Giftware – WooCommerce Gift Cards

Plugin: https://makewebbetter.com/product/giftware-woocommerce-gift-cards/ In file \wp-content\plugins\woocommerce-ultimate-gift-card\function\woocommerce-ultimate-gift-card-function.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; $currency = $WOOCS->current_currency; $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currency][‘rate’]; if (isset($_POST[‘mwb_wgm_price’]) AND floatval($_POST[‘mwb_wgm_price’]) != 0.0) { $_POST[‘mwb_wgm_price’] = floatval($_POST[‘mwb_wgm_price’]) / $rate; } } $rate = 1; if (class_exists(‘WOOCS’)) { global $WOOCS; //$order_id=$item->get_order_id(); //$order_currency = get_post_meta($order_id, ‘_order_currency’, true); //woocs $order_currency = $WOOCS->current_currency; $currencies = $WOOCS->get_currencies();… read more