How to increment the qty by 0.5 in certain products?

Highlighted
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 

0 Likes
Highlighted
Shopify Partner
563 67 91

@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 to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1
0 Likes