WAIT: Query loop with the “Hide out of stock” parameter displays the item that is out of stock. WooCommerce

Browser: Chrome 136
OS: Windows 10 LTSC 21H2
URL: Link to a page that illustrates this issue
Video: https://youtu.be/kLY_nOBYg4g

Query loop with the “Hide out of stock” parameter displays the item that is out of stock.
WooCommerce and Wordpress versions are the latest.


Hi @Mover,

I tried to replicate this locally, but I can’t. For me, the out-of-stock product is hidden.

Can you try to disable all plugins and custom code, so only Bricks and WooCommerce is active? Please try that and let me know.

Best regards,
Matej

I’ve disabled all plugins. There is no custom code. The problem has not been solved. But I noticed a new behavior!

I just refresh the page. And an out of stock item appears and then disappears!

Video: https://youtu.be/XMZ_KZt_PbA

Hi @Mover,

just in case, can you make sure that “Cache query loops” is disabled? I can see the issue on your website, but I am not sure why is this happening.

Can you also try to add anew product, that is out of stock, just to see if that product will also show?

If it’s still happening, can you send temporary login credentials to your test/staging website and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so we can have a look?

Thank you,
Matej

Cache disabled.
With a new product the problem is repeated.
I don’t want to give you access to the site.

Hi @Mover,

thank you for letting me know about those two things. This eliminates few things.

I understand. Can you try to replicate this on https://try.bricksbuilder.io/, and you can send the login credentials to that demo website?
That would help a lot.

Thank you.
Matej

I don’t think that’s going to help. I created a test site. Repeated the situation there and there is no problem. I don’t understand what the difference is. All versions are the same. Hosting is the same.

I don’t have this service working. It takes forever to create an account.

Hi,

I’ve just tested by creating new account and it created it successfully. Can you try again?

Matej

Did it, but the problem does not recur :frowning:

Then it’s very likely that it’s something with your setup/server, especially because you also said that you replicated the loop on another page, but you could not see this issue. I’m not sure what, but I would check at any possible server caching, even cloning the website to the other server, just to see if it’s that.

1 Like

I checked on the same hosting. Therefore, influence from the server side is excluded.

I have exactly same issue with 2.0RC - no idea why…

1 Like

Hi @GRSM78,

can you send temporary login credentials to your test/staging website and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?

Because I don’t know what is happening and how to replicate it, so please create a staging website, where I can play around if needed.

Thank you.
Matej

Will do - FYI if I create a MetaQuery _stockstatus=instock, it properly filters out the items that are out of stock

1 Like