News:

Looking for documentation? Take a look on our wiki

Main Menu

Calculate price by weight in BE ?

Started by jltest@free.fr, March 17, 2021, 18:18:04 PM

Previous topic - Next topic

jltest@free.fr

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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jltest@free.fr

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.