Content of the page

realmag777

All posts by realmag777

Č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

WooCommerce Subscriptions 2.2.15 – by Prospress

Plugin link: https://woocommerce.com/products/woocommerce-subscriptions/ open file of WOOCS plugn: \plugins\woocommerce-currency-switcher\classes\fixed.php and add code OR $_product->is_type(‘subscription’): in file in file wp-content\plugins\woocommerce-subscriptions-2.2.15\includes\class-wc-product-variable-subscription.php add code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $price = $WOOCS->woocs_exchange_value($price); } } in file  wp-content\plugins\woocommerce-subscriptions-2.2.15\includes\class-wc-subscriptions-product.php  add code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $sign_up_fee = $WOOCS->woocs_exchange_value($sign_up_fee); } }  

Name Your Price – WooThemes

Plugin link: https://woocommerce.com/products/name-your-price/ in file \wp-content\plugins\woocommerce-name-your-price\includes\class-wc-name-your-price-helpers.php add code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $price = $WOOCS->woocs_exchange_value(floatval($price)); } } in the same file add code: if (class_exists(‘WOOCS’)) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); $posted = $posted / $currencies[$WOOCS->current_currency][‘rate’]; } } in the same code add code: if (class_exists(‘WOOCS’)) { global… read more

WooCommerce UPS Drop Shipping – Ignitewoo

Plugin link: https://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-ups-drop-shipping/ in file  \wp-content\plugins\woocommerce-ups-shipping\ups_class.php add next code: if (class_exists(‘WOOCS’)) { global $WOOCS; $currency = $WOOCS->get_currency_by_country($this->origincountry); $currencies = $WOOCS->get_currencies(); $rate = $currencies[$currency][‘rate’]; foreach ($rates as $key => $item) { $rates[$key] = $item / $rate; } }