Content of the page

Wholesale Suite


Content of the article

Plugin: https://wholesalesuiteplugin.com/

  • in file \wp-content\plugins\woocommerce-wholesale-prices\includes\class-wwp-wholesale-prices.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $currrent = $WOOCS->current_currency;
        if ($currrent != $WOOCS->default_currency) {
            $currencies = $WOOCS->get_currencies();
            $rate = $currencies[$currrent]['rate'];
            $wholesale_price = $wholesale_price / ($rate);
        }
    }
  • if (class_exists('WOOCS')) {
        global $WOOCS;
        $wholesale_price = $WOOCS->woocs_exchange_value($wholesale_price);
    }

     

Faster WordPress HostingWPBE - WordPress Posts Bulk Editor Professional