• Resolved boxeola

    (@boxeola)


    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.0099

    Weight (kg)
    0.001

    Measurements
    Weight

    Quantity Step
    10

    Quantity Suffix
    g

    Price Quantity
    100

    Price Suffix
    /100g

    On 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Unit Precision for smaller weights’ is closed to new replies.