{"version":"2.0","productId":"6153788031153","title":"Placemats","layout":"stacked","pricing":{"currency":"AUD","basePrice":{"amount":0,"per":"order"}},"sections":[{"id":"mats","title":"Your placemats","fields":[{"id":"size","label":"Size","required":true,"priceModifiers":[],"type":"select-one","display":"pills","options":[{"id":"s420x280","label":"420 × 280 mm","default":true,"priceModifiers":[]},{"id":"custom","label":"Custom size","priceModifiers":[]}]},{"id":"dims","label":"Width × height","required":true,"priceModifiers":[{"type":"formula","amount":0,"areaUnit":"sqm","lengthUnit":"m","dimensionsField":"dims","formula":{"steps":[{"name":"i1","expression":"max(2, round(area * qty * 1000000) / 1000000)"},{"name":"rt","expression":"band(i1, 4.9999999, 50, 9.9999999, 47, 19.9999999, 42, 49.9999999, 38, 99.9999999, 35, 249.9999999, 32, 999.9999999, 30, 25)"},{"name":"tot","expression":"max(60, 40 + ceil(round(rt * qty * area * 10000) / 10000) + 3 * qty)"}],"expression":"round(tot / qty * 100) / 100 * qty"}}],"role":"size","type":"dimensions","display":"inputs","units":["mm"],"defaultUnit":"mm","minW":50,"maxW":10000,"minH":50,"maxH":10000,"defaultValue":{"w":420,"h":280}},{"id":"qty","label":"How many placemats?","required":true,"priceModifiers":[],"type":"quantity","display":"stepper","min":1,"max":10000,"step":1,"defaultValue":1,"presets":[1,10,25,50,100],"unit":"placemats"}]}]}