How to change my default product quantity to 4?

Solved

How to change my default product quantity to 4?

WheelGuys
Visitor
1 0 0

I sell wheels and tires. I want people to be able to choose any quantity they want, but 99% of sales are in quantities of 4. How can I make that the default on the quantity selector, but not the minimum, since I am willing to sell 1 or 2, etc

 

 

Accepted Solution (1)

PaulNewton
Shopify Partner
7032 629 1481

This is an accepted solution.

Hi @WheelGuys  👋 this will vary wildly among themes so you just have to dig or hire someone.

Add the value attribute to the quantity:

<input type="number" value="4">

 

Find either the main templates/product.liquid  , or look in sections for something like main-product.liquid or similar and follow the logic to find where the quantity is output.

Sometimes the quantity in in a product.liquid snippet. product-form.liquid , or even quantity.liquid snippet.

 

And you may need to use logic like {% if product.type == "tire" %} value="4" {% endif %} if selling any other type of product now or in the future.

 

If you need this customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Reply 1 (1)

PaulNewton
Shopify Partner
7032 629 1481

This is an accepted solution.

Hi @WheelGuys  👋 this will vary wildly among themes so you just have to dig or hire someone.

Add the value attribute to the quantity:

<input type="number" value="4">

 

Find either the main templates/product.liquid  , or look in sections for something like main-product.liquid or similar and follow the logic to find where the quantity is output.

Sometimes the quantity in in a product.liquid snippet. product-form.liquid , or even quantity.liquid snippet.

 

And you may need to use logic like {% if product.type == "tire" %} value="4" {% endif %} if selling any other type of product now or in the future.

 

If you need this customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org