Author Topic: Calculate price by weight in BE ?  (Read 1599 times)

jltest@free.fr

  • Beginner
  • *
  • Posts: 2
  • A beginner
Calculate price by weight in BE ?
« 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.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10134
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
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

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Calculate price by weight in BE ?
« Reply #2 on: March 17, 2021, 20:24:01 pm »
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.