Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Calculating amount of packages from square meters

Calculating amount of packages from square meters

Momaz72
Shopify Partner
5 0 1

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-pri...
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?

Replies 0 (0)