We are looking to code setup for a floor-shop.
Here customers should be able to add amount of m2 (square meters) and from this input the system should automatically add amount of packages to field.
Example link on shop that has this setup:
https://flottegulve.dk/shop/19-plankegulve-med-lakeret-overflade/15141-plankegulv—boerstet-ask-prima-med-hvid-matlak—bredde-189-mm/?_gl=17yaais_up*MQ..&gclid=Cj0KCQjwxsm3BhDrARIsAMtVz6PRZnmZgs3MofSA6gyFBV6XxuddedM6uE2PKBjnSeThzJ7_X2o8PbsaAstWEALw_wcB
Try adding “20” in the M2 field - it will define 8 packages
So we somehow need to define package size (m2) in Admin and this should reflect in shop.
Anybody out there that has been working with code like this?