Price formula calculation with custom meta feilds

Solved

Price formula calculation with custom meta feilds

vinods
Shopify Partner
863 15 94

Hello community partners or developers

 

Is it possible to create formula for product pricing and show the pricing on product page using meta fields also to track the inventory of the product with the help of meta fields? 

 

Example

There is a product which cost 10 per sq feet and the area needs to be covered is 100 sq feets 

 

Is this possible that a user landing on the website enters area to be covered after which in front end it will show the price total of 100 sq feets 

 

The price of the product variant will be 10 per sqft

 

Pls note this should be with custom coding or app only just meta fields.

 

Thanks 

 

Vinod Sachdev
Digital Centrics
Digital Marketing Manager
Google & Bing Ads | Website Design & Development | Conversion Rate Optimization
Accepted Solution (1)
PaulNewton
Shopify Partner
7201 637 1497

This is an accepted solution.

Yes it is possible to do this and do it with metafield definitions.

The details of how to do it vary wildly by implementation.

 

Frontend is the browser side of code, generally javascript, the website code the customer sees or interacts with .

front-end square footage calculator a very common pattern that can be found online either as examples, codes or tutorials. Though any code would have to be modified to use shopify.

 

 

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Replies 12 (12)

PaulNewton
Shopify Partner
7201 637 1497

This is just a frontend square footage calculator that multiplies the value of some arbitrary metafield (example: metafield.cost.sqft) whatever area a customer enters.

Advanced customizations will update values/prices when the variants are changed and make it so customers can 1 click add the total quantity needed to cover the area they entered; and.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


vinods
Shopify Partner
863 15 94

Hi @PaulNewton 

thanks for your reply. appreciate the same.
what you mean by - front-end square footage calculator
i want the user who comes on the store enters the area example

Width 10ft X Height 12ft and if the price per feet is USD 10 then the amount should show as per the numbers entered and in backend the inventory should also get deducted
OR
for example
if a user enters the qty as 1.10 grams and price per gram is USD 10 then it should show the price of 1.10 grams times 10  and in backend the qty will be reduced as per the qty ordered

is this possible with Meta fields can you please confirm

Vinod Sachdev
Digital Centrics
Digital Marketing Manager
Google & Bing Ads | Website Design & Development | Conversion Rate Optimization
PaulNewton
Shopify Partner
7201 637 1497

This is an accepted solution.

Yes it is possible to do this and do it with metafield definitions.

The details of how to do it vary wildly by implementation.

 

Frontend is the browser side of code, generally javascript, the website code the customer sees or interacts with .

front-end square footage calculator a very common pattern that can be found online either as examples, codes or tutorials. Though any code would have to be modified to use shopify.

 

 

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


vinods
Shopify Partner
863 15 94

Hi @PaulNewton 

 

Can you show me an example of a live url where this is implemented only through meta fields and NOT through custom coding in liquid files

 

Also can you send me a url of the tutorial too pls

 

Thanks

vinod

Vinod Sachdev
Digital Centrics
Digital Marketing Manager
Google & Bing Ads | Website Design & Development | Conversion Rate Optimization
vinods
Shopify Partner
863 15 94

Also what you mean by advanced customization ?
And as you stated "

"A front-end square footage calculator a very common pattern that can be found online either as examples, codes or tutorials. Though any code would have to be modified to use shopify."


Do you mean in the liquid code the calculation code needs to be created and added in the form of JS and other codes to be modified in backend of shopify liquid files - correct this is that you mean to say right ?

Vinod Sachdev
Digital Centrics
Digital Marketing Manager
Google & Bing Ads | Website Design & Development | Conversion Rate Optimization
shopper11
Shopify Partner
6 0 1

we do this with a 3rd party app called DynamicProduct Options - https://www.itoris.com/shopify-custom-options-userguide.html     - which is fantastic.   it does this type of dynamic pricing

vinods
Shopify Partner
863 15 94

got it the link you have given is for magento i wanted for shopify.

i was talking about shopify but found the shopify app too for Dynamic Product Options 

Vinod Sachdev
Digital Centrics
Digital Marketing Manager
Google & Bing Ads | Website Design & Development | Conversion Rate Optimization
shopper11
Shopify Partner
6 0 1

That link is for the shopify version.    we couldnt sell most of our products without it.   

vinods
Shopify Partner
863 15 94

that's ok i am looking for custom code option using shopify meta fields....
not through an app.

Vinod Sachdev
Digital Centrics
Digital Marketing Manager
Google & Bing Ads | Website Design & Development | Conversion Rate Optimization
gr_trading
Shopify Partner
1922 145 200

Hi @vinods ,

 

Don't know if you are still looking for this.

Please use below link to preview the implemented feature.

 

 https://kahrs-direct.myshopify.com/products/ash-vaila

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

FDG_WEB
Shopify Partner
100 2 10

Paul Newton's solution is how we do custom product calculators where metafields control pricing and options that need to be sorted and resorted as metafield values change.

 

This is an example where a product detail page is calculating a custom product type on the fly based on user unput across all product metafields, thresholds and terminators (where data ins out of bounds for the product).

 

https://quickbar.ca/products/type-5

 

 


Tom Granger, CEO
FDG Web, Inc
Office: 360-572-0398 : Ext. 108
Cell: 425-466-0804
www.fdgweb.com

info@fdgweb.com
vinods
Shopify Partner
863 15 94

Hi @FDG_WEB 

 

Saw this but it is not working correctly

Vinod Sachdev
Digital Centrics
Digital Marketing Manager
Google & Bing Ads | Website Design & Development | Conversion Rate Optimization