Quantity with decimals #681
Replies: 3 comments 2 replies
-
You could try this:
Let me know if that would cover your use-case. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I was thinking about writing a plugin but didn't notice the OrderItemPriceCalculationStrategy and thought it was hard-coded. Another feature which I think could be helpful is a way to implement small variations in price based on product weight. E.g. I sell a ProductVariant '1kg of apples' but when packaging it turns out to be 1,05 kg. But this is definitely an edge case and is better off in a plugin. Great work on Vendure so far 👍 . |
Beta Was this translation helpful? Give feedback.
-
Hi Stefan |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am wondering what the best way would be to implement the quantity as a decimal.
For example, this would be useful for selling by weight. The obvious workaround is to enter the quantity in grams, but not everything can be easily divided in smaller fractions (e.g. time,1.5 day is 36 hours but it is more confusing).
Changing the quantity to a floating number might cause calculation issues so I wonder if there is a different solution?
https://barn2.co.uk/sell-by-weight-woocommerce/
Beta Was this translation helpful? Give feedback.
All reactions