VirtueMart Forum
VirtueMart 2 + 3 => Product pricing => Topic started by: jltest@free.fr on March 17, 2021, 18:18:04 pm

Hi everyone,
How can I add products whose price is based on real weight ?
For example, I want to sell chicken.
In FE, the customer orders 1 chicken at cost 10 €/kg
In BE, I would add the real weight (ex: 2.36 kg) to calculate the real price : 10 * 2.36 = 23.60 €.
Pb : in BE, quantity can be modified but must be an integer. So my chicken must be 2 or 3 kg but not 2.36 kg ;) ;)
What is the solution ?
Thanks.

https://extensions.virtuemart.net/product/products/customsizedetail

Thanks @milbo,
But that's not what I'm looking for. I don't need my client to choose the weight. I need he orders 1 chicken (1 unit) then, in the BE, I add the real weight to calculate the price in the invoice.