rounding prices on variable products
-
hello,
i am using php code to rounding prices which working fine on simple products but doesnt work on variable products.add_filter( ‘woocommerce_get_price’, ’round_price_product’, 10, 1 );
function round_price_product($price ){$number = $price;
$rounding = 0.05;$roundedUp = ceil($number/$rounding)*$rounding;
return ($roundedUp);
}please help
The page I need help with: [log in to see the link]
- The topic ‘rounding prices on variable products’ is closed to new replies.