How can I calculate product price based on customer input?

hello shopify expert,

I want to add a input filed in product page and calculate the product price based on add value in the input filed form the customer side I have attached a video please have look and please let me know how to make this

if already develop any App please suggest me.

thankYou!

video link https://www.awesomescreenshot.com/video/19738275?key=1c03696b911c0ba4501827f192edd0bc

Hi, @shubhamSharma
You can use this app for custom price calculations: Custom Price Calculator

but its a value pre define we need some calculator for add a customer form side than calculate product price

You can check both examples from the app’s demo

Hi @shubhamSharma

I have done this kind of work for my client.

https://community.shopify.com/post/1963174

For working reference

https://www.youtube.com/watch?v=jBDIDmPMXD0

We can modify this code to fulfill your requirement without any APP.

Hi @shubhamSharma,

What you’re trying to achieve (adding a custom input field on the product page and dynamically updating the product price based on the customer’s input) is indeed possible, but it often requires either custom Liquid coding or a dedicated app to handle the price calculations properly.

We actually ran into the exact same issue with some of our own clients, which is why we decided to build an app for it. Our app lets you:

  • Add customizable input fields directly on the product page

  • Dynamically calculate the product price based on the customer’s input

  • Integrate seamlessly with your existing Shopify theme

At the moment, the app is completely free to use, so you can try it out without any risk.

Hi Shubham,

What you’re describing, adding an input field on the product page and calculating price based on customer input, can be easily handled with a Shopify Price Calculator app. These apps let you:
Add custom input fields for dimensions, quantities, or other values

Calculate the product price in real-time as customers enter data.

Display the updated price directly on the product page.

Avoid building custom code from scratch.

Using a pricing calculator app is usually faster, more reliable, and easier to maintain than coding it manually. If you like, I can suggest a few apps with good reviews and reasonable pricing.

Hi @shubhamSharma :raising_hands:

If you are looking to create a setup that allows customers to choose between a fixed length or enter a custom length, Easify Product Options app is perfect. It helps you present this option in a clear, professional way and is very easy for shoppers to navigate.

Here’s an example I’ve created so you can see how it works:

  • This is the result:

  • This is the app setting:

Next, in the CHOOSE DEFINED LENGTH option dropdown, you can add all your predefined length values and assign a specific price to each one. Once customers select a value from this dropdown, the product price will automatically update based on your configuration. This dropdown layout is very intuitive, making it easy for customers to compare the options and choose the length that best fits their needs.

If customers need to enter a custom length, select the Dimension option with the value CHOOSE CUSTOM LENGTH, which allows them to input their desired measurement (in mm). In the Basic Settings, you can set the initial values you want; then go to Advanced Settings, enable Add Price, and apply your pricing formula. The app will automatically calculate the cost based on the number of millimeters the customer enters, ensuring accuracy and convenience.

Finally, set up Conditional Logic to control what appears on the product page: when customers choose “Defined Length,” the list of predefined measurements will be displayed; when they select “Custom Length,” the custom input field will appear instead. This creates a smooth and intuitive experience, similar to what you’d find on high-end product customization websites.

Once everything is set up, the length selector will appear directly on the product page with a clean, visually appealing, and easy-to-understand layout. This type of customization greatly boosts customer confidence during the buying process and often leads to higher conversion rates.

The app is extremely easy to use and runs very reliably. If you need help with anything, our support team is always ready to assist you.:blush: