FOX - WooCommerce Currency Switcher Professional

How to round prices to 500

  • open index.php of the plugin
  • find public function raw_woocommerce_price($price)
  • on the same end of this function replace:
    return $price;

    to:

    if (($price <= 1000)) {
            $price = round($price / 1000, 0) * 1000;
            return $price;
     }
    else {
            $price = ceil($price / 500) * 500 ;
            return $price;
    }

     


Also you can try to use this hook: https://currency-switcher.com/hook/woocs_raw_woocommerce_price/