How to change default quantity on one item?

Solved
Highlighted
New Member
2 0 1

Is it possible to change default quantity on the product form based on the product?

On product pages selling individual items I set the default quantity to 2. I was able to change this in the product form

{% include 'quantity-input', id: section_id, qty: 2, min: 1 %}

https://www.felixspirituals.com/products/santina-non-alcoholic-spirit

On the product page selling sets I would like the default quantity set to 1.

https://www.felixspirituals.com/products/the-spiritual-duo-non-alcoholic-spirits-santina-alta-botani...

if you are wondering why I want to sell in sets of 2 it’s because it better balances the shipping packaging. 

0 Likes
Highlighted
Shopify Partner
649 75 107

This is an accepted solution.

@Kimjik ,

Yes you can create different product template for specific behaviour for a product including setting up default quantity.

https://shopify.dev/tutorials/customize-theme-create-alternate-templates

Other option is to tag product and check that in product-template through liquid.

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1

To hire: email us at shopify@propero.in
Highlighted
New Member
2 0 1

I tagged the product and then used an if and else to assign the quantity. Thank you!