How to increment the qty by 0.5 in certain products?

New Member
2 0 0

Some of the products in my store are sold by the kilo starting with 1 kilo but I need to be able to increment the qty by half kilo, I mean, 1, 1.5, 2, 2.5, 3, 3.5 and so on...

I need this for some products only, the rest of the them can work with the actual behavior 


thanks for your comments 

Shopify Partner
762 90 128

@jjguajardo ,

Welcome to the Shopify community, it is technically possible. You need to create an alternate product template for a product that needs this custom quantity increment and then specify a step size in quantity selector and write a script that does custom increment/decrement. 

The code would go like this

<input type="number" placeholder="1.0" step="0.5" min="0" max="10">


- Was my reply helpful? Click Like or Click Accept as Solution
To hire: email us at
checkout our app
New Member
1 0 0

I'm facing a similar situation and need to keep the 1st quantity as 1 and incremental quantity by .5 meters 

Can you guide me a little more in detail to solve this please , will be so helpful .