WOOCS - WooCommerce Currency Switcher

WooCommerce Wholesale Pro Suite by IgniteWoo

Plugin URL: https://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-wholesale-pro-suite/

  • In  file wp-content\plugins\woocommerce-wholesale-pro\includes\class-wc-wholesale-wc-currency-switcher-compatibility.php  add next  code:
    return $amount;

  • in file “wp-content\plugins\woocommerce-wholesale-pro\woocommerce-wholesale-pricing-pro.php”  add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $min = $WOOCS->woocs_exchange_value(floatval($min));
            $max = $WOOCS->woocs_exchange_value(floatval($max));
        }
    }

  • and to the same file add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $price = $WOOCS->woocs_exchange_value(floatval($price));
            $product_price = $WOOCS->woocs_exchange_value(floatval($product_price));
        }
    }
    

  • on the same file change code:
    if (class_exists('WOOCS')) {
        $prices_html[] = '<span class="normal_price">' . $this->settings['show_regular_price_label'] . ' ' . $WOOCS->woocs_add_approx_to_price($this->format_price($product_price), $_product) . '</span>';
    } else {
        $prices_html[] = '<span class="normal_price">' . $this->settings['show_regular_price_label'] . ' ' . $this->format_price($product_price) . '</span>';
    }