I need an app that will perform math

Highlighted
New Member
5 0 0

If a shopper selects the number 10 from dropdown box 1, and the number 5 from dropdown box 2, then I need the app to multiply those 2 numbers together, divide by 144, and show the result in the Cost field.

 

Any app that'll perform math, based on shopper selections?

0 Likes
Highlighted
Shopify Partner
5 0 0

Hi There,
@TurtleCove I haven't seen such an app but if you can explain more about what exactly you need i am sure i can help you with that.
I am a developer myself and working on an app i am sure this can be achieve easily with the help of customizing your theme or if you want customer to checkout with that amount Store Front API can be used.

https://help.shopify.com/en/api/custom-storefronts/storefront-api

0 Likes
Highlighted
New Member
5 0 0

Think of it as though I sell fabric.

I sell this fabric, by the square foot.

The shopper will decide which fabric they want, from my store, and then they can select from a dropdown, the width and the length they want.

Based on their selection, my storefront will show them the cost.

 

Ex: They pick 6 inches wide,  and they pick 36 inches long, for the fabric that is $4.25 per square foot.

Shopify would perform: 6 x 36 / 144 x 4.25, and then show the price.

0 Likes
Highlighted
Shopify Partner
5 0 0

@TurtleCove 
you can use the variant as the width of item if you have multiple width of the same fabric like you have cotton in two widths 6" and 8".
secondly if you want the user to order a custom length then a textbox would suffice the need, where a user can enter a desired amount. 
use a custom javascript file to load on the product details page this would be used to calculate the amount and then shop front api is used for checkout.
the user defined amount can be stored in meta-fields of the orders.
If you need help in developing javascript file just send me a private message.


Regards

0 Likes
Highlighted
Shopify Expert
54 0 9

We do this all the time. There's no one size code snippet fits all as it involves some customer JavaScript in the template and often the user of META fields to store price by ft/sm/length etc.

 

Here's an example: https://pebbletilemosaics.com/products/natural-earth-pebble-tile

 

Here's a Fabric example w/ fractional length: https://stylemakerfabrics.com/products/seaside-floral-digital-print-linen-shirting-coral-navy

 

Reach out if you would like to have us help you. https://www.fdgweb.com

 

Tom

 

 

http://www.fdgweb.com
0 Likes