Content of the page

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

YITH Woocommerce Points and Rewards

Plugin: https://wordpress.org/plugins/yith-woocommerce-points-and-rewards/ In file functions.php of your current wp theme add next code: add_filter(‘ywpar_get_active_currency_list’, ‘woof_get_active_currency_list’); function woof_get_active_currency_list($currencies) { global $WOOCS; $currencies = array_keys($WOOCS->get_currencies()); return $currencies; } In file wp-content\plugins\yith-woocommerce-points-and-rewards-premium\templates\panel\types\options-percentual-conversion.php add next code: <?php if (class_exists(‘WOOCS’)) { global $WOOCS; $currencies = $WOOCS->get_currencies(); echo $currencies[$current_currency][‘symbol’]; } else { echo get_woocommerce_currency_symbol($current_currency); } ?> In file \wp-content\plugins\yith-woocommerce-points-and-rewards-premium\templates\panel\types\options-conversion.php add next code: <?php if… read more

WooCommerce QuickPay (by Perfect Solution)

Plugin: https://wordpress.org/plugins/woocommerce-quickpay/ In file functions.php of your current wp theme add next code: add_filter(‘woocommerce_quickpay_currency’, function($currency, $order) { if (class_exists(‘WOOCS’)) { global $WOOCS; $currency = $WOOCS->current_currency; } return $currency; }, 10, 2);  

České služby pro WordPress

Plugin link: https://cs.wordpress.org/plugins/ceske-sluzby/ in file \plugins\ceske-sluzby-master\includes\class-ceske-sluzby-xml.php add code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed AND $WOOCS->current_currency != ‘EUR’) { $price = $produkt->get_price(‘custom’); if ($WOOCS->default_currency != ‘EUR’) { $currencies = $WOOCS->get_currencies(); $precision = $WOOCS->get_currency_price_num_decimals(‘EUR’, $WOOCS->price_num_decimals); $rate = $currencies[‘EUR’][‘rate’]; $price = number_format($price * ($rate), $precision, ‘.’, ”); } $cena_produkt = wc_get_price_including_tax($produkt, array(‘price’ => $price, ‘qty’ => 1)); }… read more

Product Bundles – by SomewhereWarm

Plugin link: https://woocommerce.com/products/product-bundles/ in file \wp-content\plugins\woocommerce-product-bundles\includes\class-wc-pb-product-prices.php add code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); if ($WOOCS->is_multiple_allowed) { $discounted_price = $discounted_price / $currencies[$WOOCS->current_currency][‘rate’]; } } } in file \wp-content\plugins\woocommerce-product-bundles\includes\class-wc-pb-display.php  add code: $is_multiple = 1; if (class_exists(‘WOOCS’)) { global $WOOCS; if (!$WOOCS->is_multiple_allowed) { $is_multiple = 0; $suffix = “”; } } and… read more

WooCommerce Product Custom Options Pro 2.0.5 – phoeniixx

Plugin link: http://www.phoeniixx.com/product/woocommerce-product-custom-options/ in file \wp-content\plugins\woocommerce-custom-options-pro\classes\class-product-page-options.php add code if (class_exists(‘WOOCS’) AND is_array($array_options)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { foreach ($array_options as $key1 => $op_item1) { foreach ($op_item1[“options”] as $key2 => $opt) { if ($opt[“price”] != 0) { $array_options[$key1][“options”][$key2][“price”] = $WOOCS->woocs_exchange_value(floatval($opt[“price”])); } } } } } in file \wp-content\plugins\woocommerce-custom-options-pro\classes\class-product-add-to-cart.php add code foreach ($cart_item_data[‘options’] as &$option) { if ($option[‘price’] >… read more

YITH Donations for WooCommerce Premium 1.0.14

Plugin link: https://yithemes.com/themes/plugins/yith-donations-for-woocommerce/ in file \wp-content\plugins\yith-donations-for-woocommerce-premium\includes\classes\class.yith-woocommerce-donations-premium.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $amount = $amount / $currencies[$WOOCS->current_currency][‘rate’]; } } in the same file add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $amount = $amount / $currencies[$WOOCS->current_currency][‘rate’]; } }  

YITH WooCommerce Name Your Price Premium

Plugin link: https://yithemes.com/themes/plugins/yith-woocommerce-name-your-price/ in file functions.php of your current wp theme add next code: add_filter(‘ywcnp_get_suggest_price’, ‘woocs_ywcnp_convert_price’, 9999, 2); add_filter(‘ywcnp_get_min_price’, ‘woocs_ywcnp_convert_price’, 9999, 2); add_filter(‘ywcnp_get_max_price’, ‘woocs_ywcnp_convert_price’, 9999, 2); add_filter(‘ywcnp_add_cart_item_data’, ‘woocs_ywcnp_add_cart_item_data’, 9999, 2); function woocs_ywcnp_add_cart_item_data($data, $prod) { $price = $data[‘ywcnp_amount’]; if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $price = $price / $currencies[$WOOCS->current_currency][‘rate’]; $data[‘ywcnp_amount’]… read more