Create new badge for low quantity products

Hello everyone. I hope everyone is doing well. :slightly_smiling_face: Here is my question: When a product is out of stock, it is displayed with the “Sold out” badge (See screenshot below). I want the same badge for Products that are low in quantity, such as 3 left, 2 left, and 1 left in the products grid. It would be great if you could provide me with codes, I’m a little bit good at coding.

Store URL: Smellofarabia.com

I would greatly appreciate any assistance

I would try to check **product.****selected_or_first_available_variant.**inventory_quantity and then conditionally render the badge if it’s below a certain threshold.

Hello @fadi_yousif . Thank you for the reply . Could you please provide me the code for it . Any help will greatly appreciated :slightly_smiling_face: