I created a Shopify store and I want my prices to be calculated per linear meter. For example, if someone wants to buy 4 meters, but we only sell in units of 2.5 meters (in width), the system should automatically round up to the price of 5 meters instead of 4.
@9mvchael Just to confirm all the products on your store will be calculated using the same round-up? If every units have different width round-up the calculation logic have to be programmed accordingly.
Hi @9mvchael,
Please send the website link, I will check it for you
That’s definitely possible, but it’s not a built-in Shopify feature; you’ll need a custom solution. The way it usually works is by adding some custom Liquid + JavaScript logic or using line item properties so that when a customer enters their desired length (e.g. 4m), the system automatically rounds up to the nearest sellable unit (in your case, 2.5m → 5m).
The cart would then adjust the quantity and pricing accordingly so you don’t undercharge.
This isn’t just a simple toggle in the admin, it requires coding or an app. If you’d like, I can handle the technical setup and tailor it exactly for your store.
Hello @9mvchael ,
I hope you are well!
Basically, I understood your requirement of quantity or the units which are in width have to be added in decimals. This requires custom code. Can you please provide all the details at ankit@aitrillion.com so that we can help you with all the details like does the mesaurement done with the multiple of .5meter or customers can select any mesaurement like 1.2, 1.7 and so on?
Hi @9mvchael
Ok dear, please share your store URL and collaborator code with me so I can check and provide you with the proper solution.
Hello @9mvchael,
I hope you are doing well.
I have experience with similar requirements on other Shopify stores and can implement both linear meter and square meter calculations, which will then determine the quantity added to the cart.
You can email me at info@elderberrytech.com to discuss further.
Thanks,
Shivank Agrawal