FOX - Currency Switcher for WooCommerce

WooCommerce Wholesale Pro Suite — par IgniteWoo

URL du plugin : https://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-wholesale-pro-suite/ Devrait être compatible avec la dernière version.  

Anciennes versions :

  • Dans le fichier wp-content\plugins\woocommerce-wholesale-pro\includes\class-wc-wholesale-wc-currency-switcher-compatibility.php ajouter le code suivant :
    return $amount;
  • dans le fichier "wp-content\plugins\woocommerce-wholesale-pro\woocommerce-wholesale-pricing-pro.php" ajouter le code suivant :
    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));
        }
    }
  • et dans le même fichier ajouter le code suivant :
    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));
        }
    }
    
  • dans le même fichier, modifier le 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>';
    }