We are selling fabrics, I want the quantity to be by meter price, like decimal numbers.
For example a client can order 0.1 m; 0.2m ; 0.3m; 0.4m; 0.5m etc.. If the client orders 0.15m it will transform automatically to 0.2m.

1 Answer 1


Go to

Catalog > Product > Advanced Inventory

Change value of Minimum Qty Allowed in Shopping Cart this Option in Decimal Points [For ex 0.25] or anything minimum quantity you want to add into cart.

  • thanks for your answer but how to round off the value from 0.15 to 2
    – ishaq
    Jun 1, 2021 at 9:41
  • 1
    you can use event add_to_cart_after and add round qty logic in observer Jun 1, 2021 at 10:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.