FOX - Currency Switcher for WooCommerce

WooCommerce Wholesale Pro Suite by IgniteWoo

URL del plugin: https://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-wholesale-pro-suite/ Debería ser compatible con la última versión.  

Versiones antiguas:

  • En el archivo wp-content\plugins\woocommerce-wholesale-pro\includes\class-wc-wholesale-wc-currency-switcher-compatibility.php añadir el siguiente código:
    return $amount;
  • en el archivo "wp-content\plugins\woocommerce-wholesale-pro\woocommerce-wholesale-pricing-pro.php" añadir el siguiente código:
    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));
        }
    }
  • y en el mismo archivo añadir el siguiente código:
    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));
        }
    }
    
  • en el mismo archivo cambiar el código:
    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>';
    }