Hide out of stock products from collection pages

Comments

5 comments

  • 0
    Comment actions Permalink
  • Avatar
    Mathias Schrøder

    Hi Jinesh,

    Unfortunately, that is not an option as I need the "Products must match to any condition."-option.

    All the best,
    Mathias

    0
    Comment actions Permalink
  • Avatar
    Jinesh from EcomEthos

    As far as I know, there is no other way. You will have to build your collections in a way that you can use condition "ALL" instead of "ANY"


    How many products do you have? and how many collections

    Bulk export change tags and reupload them and then change conditions of all collections

    0
    Comment actions Permalink
  • Avatar
    Mathias Schrøder

    Of course, there are other ways. And I actually found the solution yesterday. I just added {% if product.available %} in the beginning of the loop responsible for going through all the products and outputting product thumbnails on the collection pages. It was in the product-loop.liquid file.

    0
    Comment actions Permalink
  • Avatar
    Jinesh from EcomEthos

    Nice. But I had heard that using if condition messes up pagination count in collections. Do check if pagination count is accurate. 

    0
    Comment actions Permalink

Please sign in to leave a comment.