Custom Width and Length Price Calculator

Chadski642
Visitor
1 0 0

I'm trying to do some custom development. Essentially I'm trying to develop a custom calculator using square millimetres.

 

This is the exact functionality we are after which is also using Shopify (a competitor of ours): https://cut-length-service.myshopify.com/products/shaw-aventus-5.

 

Here's what I got so far: https://cut-length-service.myshopify.com/products/shaw-aventus-5

 

As you can see, I've got the front end of the input fields all set up, but I need it to be able to dynamically show the pricing, however, I am unsure how to do this, and where to find the code.

 

I found this information on Shopify about creating math filters: https://shopify.dev/api/liquid/filters/math-filters.

The aim is to have metafield (new Shopify feature) where we will enter the price per square millimetre. The back end will need to create a formula like the following: [product-metafield] x [width input] x [drop input].

 

Would anyone have an idea on how to achieve this?

Replies 2 (2)

shahza13
Tourist
4 1 1

Hey there, i saw you already acheived this, can you share the code of how you did it? Thanks

oujdabynight
Visitor
2 0 0

Can you please share your solution ? I have similar situtiation. Thanks