17.2 - Enable/Disable price Formatting
You can also enable or disable the Price Formatting in the plugin. This could be useful if you need to get the raw price (Without currency for example).
Return true if you want to enable price formatting, false otherwise.
Wordpress:
add_filter('woo_price_calculator_format_price', 'cmw_format_price', 10, 5); function cmw_format_price($format_price, $price, $product_id, $calculator_id, $data){ return true; //or false }
Joomla!:
function onAwsPriceCalculatorFormatPrice(&$format_price, $current_format_price, $price, $product_id, $calculator_id, $data){
$format_price = true; //or false
}