Editing the Sold Out segment in my product pages

dthomasbruner
New Member
3 0 2

New to this. All of my products have "Sold Out" tab. What to do to get rid of them?

Screenshot 2021-06-21 105013.jpg

hash777
Shopify Partner
164 9 23

@dthomasbruner  hi there, Ok for sold out situation what you can do is Hide the sold out priducts from collections. To achieve that pls follow these instructions and if helpful then just one reqyest, Pls Hit the Like Thumb to appreciate us and accept the solution.

  1. 1. Go to Online Store->Theme->Edit code
  2. Sections->/collection-template.liquid
  3. Press Ctrl + F and find this line of code {% for product in collection.products %}    (Note: If found twice use the following code at the top one)
  4. Insert     {% if product.available %} after the above line of code.
  5. then again Press Ctrl + F and find this line of code {% endfor %}
  6. Insert    {% endif %} before the above line of code.
  7. Save 

Hope this Helps, If it does then please Like and Accept Solution.