Support » Plugin: WooCommerce » Problem with filtering out of stock product variations

  • Resolved xoxgregxox

    (@xoxgregxox)


    I have a product with variations, some of the variations are out of stock, but if I filter this attribute in the shopping page they still show up. I already went to woocommerce>configuration>stock and checked the option: hide out of stock products, I see there are more people with the same problem, please help. Thanks

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Nancy

    (@nancythanki)

    Hi there, thanks for reaching out about this. Is this the kind of issue you’re seeing?

    https://github.com/woocommerce/woocommerce/issues/27419

    If so, our developers are aware and looking at a solution. In the meantime, there is a temporary workaround here:

    https://github.com/woocommerce/woocommerce/issues/27419#issuecomment-678084205

    Let us know if you run into any other trouble with this!

    Thread Starter xoxgregxox

    (@xoxgregxox)

    It’s not the same problem. Let me give you an example:
    I have a shirt with 2 sizes: small and large.
    Large is out of stock.
    If I use the filters on the shop and want to filter all the available products in large, this product still shows up, even when the variation large is out of stock.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @xoxgregxox

    The category and shop pages show the parent variable product so for it to show after filtering by one of its out of stock options is expected, since it’s other variations are in stock.

    Only if the variable product has all out of stock variations/attributes will it not show.

    Thread Starter xoxgregxox

    (@xoxgregxox)

    Yes, but it’s not what you’d expect when you use a filter. What’s the point in showing you a product with the variant you are looking for is out of stock?

    I already look in other forums and I see threads back on 2016 with the same problem. I see there was an attempt of fixing this problem some weeks ago, but I read it was causing conflicts and have to change it back.

    I already find a filter and it works find.

    I hope you could fix this in a near future because woocommerce in general is really awesome.

    brucemacg

    (@brucemacg)

    I’m having the same issues… I dont really want to use a premium plugin, as I’ve also done quite a bit of work, with standard attributes and showing and hiding widgets..

    Cheers,. Bruce

    Thread Starter xoxgregxox

    (@xoxgregxox)

    @brucemacg woocommerce try to fix this a few versions before, but they couldn’t, I end up using a another filter WOOF it has a free versión and I paste a bit of code they have on their web and works fine. I hope this help you.

    brucemacg

    (@brucemacg)

    It looks like you need the premiun version… I’ll try the free version but it does look really complex. What code did you use from their site???

    Thread Starter xoxgregxox

    (@xoxgregxox)

    @brucemacg no, I use the free versión. You need a bit of PHP and CSS (this is optional, I use it to hide the filter of stock):
    After install the plugin you have to activate this extensión: https://c2n.me/45nZ80x.png
    And then paste the second PHP code: https://products-filter.com/manipulate-search-data-options/

    thanks for your help..much appreciated

    eirpoint

    (@eirpoint)

    @brucemacg did you resolve this issue using the WOOf plugin? It is extraordinary that this is not part of normal filtering in WooCommerce.

    Thread Starter xoxgregxox

    (@xoxgregxox)

    @eirpoint hi, I solved it using woof, and is still working, just take a look at my comment

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem with filtering out of stock product variations’ is closed to new replies.