I would like to create the following logic in shopify. In order to calculate the price of a product the length (in centimeters) is a variable. Ideally a customer is able to enter a number of centimeters (e.g. 22.5 cm) and the price is automatically calculated.
I learned that this is quite complex to program (if anyone feels different please let me know).
As an alternative I can create a dropdown with ranges of centimeters to determine the price (e.g. 2-10 cm / 11-20 cm / 21-30 cm, etc). Once the customer has selected the correct centimeter range an inputfield should appear where the customer can enter the exact number of centimeters they would like (e.g. 22.5 cm). I would also like to make sure that the inputfield matches the centimeter range value. Example: if a customer selects 21-30 cm, they should be able to enter any value between 20.0 and 30.99 cm (e.g. 22.5 can be entered, but 32.5 cannot be entered).
Does anyone know how this can be done or which 3rd Party App is able to do so?
I have a solution that can help you achieve what you’re looking for. The Easify Product Options app, available for free, offers the necessary features to set up your options . Allow me to demonstrate how you can use the app:
Create an option to select a specific range using the Dropdown option type.
Create an option for customers to enter the exact number of centimeters if they select the 2-10cm range. Use the Number text box option type and set up conditional logic to display this option only when the 2-10cm range is selected.
Similarly, create an option for customers to enter the exact number of centimeters if they select the 11-20cm range. Again, use the Number text box option type and set up conditional logic to display this option only when the 11-20cm range is selected.
Lastly, create an option for customers to enter the exact number of centimeters if they select the 21-30cm range. Utilize the Number text box option type and set up conditional logic to display this option only when the 21-30cm range is selected.
Notes: If customers enter a specific length that falls outside the selected range, an error message will be displayed, indicating that the entered value is not valid.
Following these steps, you’ll be able to achieve the desired functionality using the Easify Product Options app. The app offers numerous exciting features that you can explore to enhance your store’s customization capabilities .
I encourage you to give it a try and experience the convenience and flexibility it provides .