Custom Wix Stores Units and Calculation

Question:
In Wix Stores: Is it possible to sell products per square meter (as main price) and use units as per pack (make a new unit type). For example floor price is € 10,- per m2. A pack contains 5 m2. When someone buys 8 m2, the shopping cart automatically adds two whole units (two packs) of 10 m2 total.

Product:
Wix Studio Editor, Velo and Wix Stores

What are you trying to achieve:
This is for a flooring / tiles webshop, we wish to show up in Google with our square meter price but calculate the shopping cart per pack. So if someone chooses to buy 8 square meters, the shopping cart will automatically fill in two packages / 10 square meters.

What have you already tried:
I’ve asked Wix support, but there is no built in solution for this. I was recommended to ask the Velo Community if this can be done with custom code.

Additional information:
Please see these two webshop product pages below as example:

Oliver Visgraat Licht Eiken Plak PVC - VloerXXL

RAVENNA VISGRAAT WARM BROWN | Carpetright

It is possible to make entirely custom catalogs and have custom logic around them with Velo: Introduction - Velo SPI Reference - Wix.com

If you need professional support to implement this then try either the Collaboration section of the forum or https://www.wix.com/marketplace for paid support.