Content of the page


All posts by realmag777

Update v.2.2.7/v.1.2.7

New option: Show approx. price – Show approximate price on the shop and the single product page with currency of user defined by IP in the GeoIp rules tab. Works only with currencies rates data and NOT with fixed prices rules and geo rules. New tab: Payments rules – Hide/Show payment systems on checkout page… read more

How to realize WooCommerce Price Based on Country

WOOCS functionality allows realize Price Based on Country using its own functionality, for this you need: in tab Advanced set for ‘Is multiple allowed’ -> ‘Yes’ press Save button enable ‘Checkout by GeoIP rules’ enable ‘Individual GeoIP rules for each product(*)’ set GeoIP rules in its tab In each product set prices you prefer for each… read more

WooCommerce Subscriptions by WooCommerce

Plugin: 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: 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: 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: 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: 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);  

How to round price to 99 cents

Open your current wp theme functions.php file and drop there next code: add_filter(‘woocs_raw_woocommerce_price’, function($price) { return round($price + 0.01) – 0.01; }); Read also: Origin: