How To Change Price Based On Quantity Selection

In my shopify store, i want customers to make it possible for customers to choose materials in the form of meters. For example, 0.5m, 1m, 1.5m etc. How can the price be updated on every 0.5mtr?

Hi @DevoloperCZ

I guess there are a lot of ways to achieve that… but have you considered just creating variants for this kind of variation?

So you have the main product (maybe some fabric?) and then different variants with length option 1m, 1.5m etc..

on the frontend the customer has both product quantity selector (which is NOT going to change the price dinamically on the page) AND the “Choose the size” dropdown selector which will definitely update the price natively, without touching any line of code :grinning_face_with_smiling_eyes:

Maybe this could be the most “harmless” and efficient solution :wink:

Very true but if customer wants around 10 to 15m of fabric, i cant keep 20 variants(0.5m each). thats why quantity selector if better i thought.