Content of the page

How to round prices to 500

Content of the article

  • 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: http://currency-switcher.com/hook/woocs_raw_woocommerce_price/