• Resolved linass

    (@linass)


    When I filter by attribute, it still shows products our of stock for that attribute. I ticked “Hide empty terms” checkbox, but nothing changed. How can I solve this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hello, @linass.

    Can you please provide link on the page, where you have the problem? In general “Hide empty terms” option hide filter terms that have 0 products, but doesn’t hide products at all.

    Thread Starter linass

    (@linass)

    This product has several attributes. Some attributes are out of stock and others not. Is that a problem? Still, if I filter by particular attribute and it is out of stock, I want to hide that item.

    Plugin Author stepasyuk

    (@stepasyuk)

    I guess you mean that products have variations and some of themm (of variations) are “out of stock” other “in stock”. In this case you will see same products, when you select either “out of stock” or “in stock” checkboxes.

    Filtering by variations select products when they have at least one variation with selected term (parameter). It’s optimal logic and normal behavior as it give users what they expect to see, when they select a parameter.

    Does it make sense for you?
    Let me know.

    Thread Starter linass

    (@linass)

    It doesn’t really make sense to me. Are you saying I cannot hide out of stock items if I filter by some particular variation (if other variation of the same product is in sotck)?

    Plugin Author stepasyuk

    (@stepasyuk)

    To be clear – let imagine product T-shirt which have 3 variations by size – S,M and L. If the L variation is “out of stock”, but S,M are “in stock” you will see this T-shirt in products grid, when you select “in stock”. And also you will see this T-shirt, when you will select “out of stock”. Because its variations match to both situations.

    But if you select size L and “in stock” you will not see this product because it doesn’t match to both these criteria.

    Thread Starter linass

    (@linass)

    That’s exactly what I want to achieve. If I select size L and it is out of stock, I should not see this product. However, at the moment, I still see it when I filter by size L. How can I solve this?

    Plugin Author stepasyuk

    (@stepasyuk)

    From the filtering logic point of view you have also to select “in stock” checkbox and you will not see this product because it doesn’t match to both these parameters simultaneously (size + stock status).

    But you optionally can use link with predefined “in stock” filtering criteria to your product page. For example your current product page is https://example.com/shop/ you can place somewhere in menu https://example.com/shop/status-instock/ and if users will open the page, they will see only in stock products or variable products that have at least one in stock variation.

    Optionally you can sort you products so out of stock products by default will be in the end of products list. You can try to find code example in Google.

    In couple weeks I will add the Sorting field to my plugin so there will be opportunity to sort products by stock status also.

    Thread Starter linass

    (@linass)

    How can I setup this predifined “in stock” filtering criteria to my product page?

    Plugin Author stepasyuk

    (@stepasyuk)

    Hello @linass

    For example you created filter by stock status (by this example – https://demo.filtereverything.pro/example/by-stock/) and gave it var name for URL “stock”. And for example your shop page is https://example.com/shop/ In this case you can open page with only in stock products by this URL – https://example.com/shop/?stock=instock

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Out of stock items’ is closed to new replies.