Total : 0.00 €

Woo Price Calculator User Manual

16.1 - Change the price - WPC

You can manipulate the final price of WPC PRO by using our custom function. Have a look at this examples below:

You can write it in your Wordpress theme functions.php:

add_filter('woo_price_calculator_calculate_price', 'cmw_custom_price', 10, 4); 
function cmw_custom_price($price, $product_id, $calculator_id, $data){

	$price = $price*5;

	return $price;
}

add_filter is a core function of Wordpress, click here if you want more details.

You can also use these arguments to manipulate the price:

  • $product_id: product id
  • $calculator_id: calculator id
  • $data: input values

Cart

Total : 0.00 €