im building an online store+cms, shopping cart and so on.
my question is, is it possible to make an calculation system that automatic gives an % of how much an container is filled when people order 50 times an product from the size 120cm
and add another product like 50 times a product with the size 150cm. so my container shows a 15%filled .
because ive got no idea how to set this up, anybody got an idea? my books nor other websites can provide me with any clue.
sizes are in cubic meter
container : 26.896 CBM 55.209 CBM 66.534 CBM
product sizes: 120cm=0,075CBM 150CM=0,099CBM 180cm=0,14CBM 210cm=0,200CBM
help would be much appreciated,
thanks in advance