How to create a form in product page, and then change product price based on form inputs?

How to create a form in product page, and then change product price based on form inputs?

Optimal080
Visitor
2 0 1

We make containerboard and cartonboard things. For example, we make corrugated boxes. Without using apps, as they seem to be costly, we wanted to create a form with length, width and height as user inputs. We then wanted to change price based on calculation using the user inputs.

 

For now, let us say, we want to set price as user input "height". Can you all please suggest me how to attain this?

 

Thank you very much.

Replies 5 (5)

LuffyOnePiece
Shopify Partner
650 93 120

Hi @Optimal080 ,

 

We cannot change the price based from the store front.

If we have any specific logic regarding the price change based on the user input "height", we can add another product for example, cartonboard  customization namely and adjust the price accordingly.

 

Let me know if you want to implement this logic.

 

Thank you

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184
Optimal080
Visitor
2 0 1

Hi, thank you for the response.

 

I wanted to see an example. Let us say, we need customer to input length, width and height in the product form; and want to change price to length*width*height. How to do this?

LuffyOnePiece
Shopify Partner
650 93 120

Hi @Optimal080 ,

 

Here is the preview URL: https://productupgrades.myshopify.com/products/office-depot-premium-foam-display-board-36in-x-48in-b...

Password: ohpraw

 

LuffyOnePiece_0-1717750532141.png

 

Have a look and Let me know.

 

Thank you

 

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184

gr_trading
Shopify Partner
2025 148 205

Hi @Optimal080 ,

 

This can be done using custom coding in the theme, request you to refer the video how we implement the similar thing in store.

 

 

Let me know if you have more question regarding this. We can connect over the WhatsApp for more detailed implementation flow details are in post footer.

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

Sushant
Shopify Partner
83 2 16

@Optimal080 , If you want to do this without using 3rd party apps. You can probably play around with the unit pricing of the product.

For example 1 square inch of cardboard costs 10 cents, you can price your product as 10 cents(for 1 unit).

Now you can create a form for height and width, whose value will update the value of quantity in the Add to Cart form, which will further change the total price.

This is just a simplified example. In case you want to give discounts on the basis of quantity, then you will have to use a third party app for tiered pricing.

Any Likes and Accept as Solutions are greatly appreciated✌ Having trouble? Hire us! https://seventhtriangle.com/