Costumize Sold out quantity

New Member
4 0 0
 
 
 
 
 

Hello ShopifyCommuntiy

 

I like to display "sold out" for a product when the quantity is equal or lower 10. 

 

Looking forward to your response

 

Matthias

 
 
 
 
 
0 Likes
Explorer
87 12 11

Message me personally I will help you

Still not satisfied!!! contact me
Is it good solution? Yes, please Like.
0 Likes
Shopify Partner
1157 94 141

try this

if ({{ product.variants[0].inventory_quantity }} <= 10) {
soldout
} else {
in stock
}

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
New Member
4 0 0
 
 

@Perennial wrote:

try this

if ({{ product.variants[0].inventory_quantity }} <= 10) {
soldout
} else {
in stock
}



thank you perennial!

 

Could give me a hint in which file I can add your code?

 
 
0 Likes
Shopify Partner
1157 94 141

product.template 

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes