Unit Precision for smaller weights
-
Hi, great plugin, ticks a number of boxes I need with a client.
I’m having a problem though with the display price per weight on variable products which doesn’t happen for simple products. I’ve applied the upw_set_main_price_suffix function you specified in your docs but I’m finding with variable products that the price is being rounded and we are losing precision as a result.
My customer sells a product which is priced (UK) as £0.99/100g. I’ve applied the following values to the variant:
Regular price (£)
0.0099Weight (kg)
0.001Measurements
WeightQuantity Step
10Quantity Suffix
gPrice Quantity
100Price Suffix
/100gOn the product page, as you adjust the price, it seems to track correctly (e.g. if I select 100g it shows total price as £0.99 and for 200g it shows £1.98), but the main $price . $product_suffix shows £0.01/100g instead of £0.99/100g.
If I apply a similar set of values to a simple product, the total price and the main $price . $product_suffix work as expected.
The topic ‘Unit Precision for smaller weights’ is closed to new replies.