Reply 325896 to: Hide Out-stock variation loop on shop, categories, etc.

Avatar: Creatic
Sergi
Participant
June 14, 2022 at 10:09

Hello,

What I really want is for out-of-stock products not to appear anywhere.

Right now if you access any part of the shop you will see that products with the label “AGOTADO” appear. https://resetaccessories.com/shop/?lang=es

From what I’ve seen, it only happens with variable products that are displayed as simple with the Xstore option.

It would be great if you could tell me the code of the action so that I can modify the behavior in the functions.php of the child theme, like a

add_filter( ‘woocommerce_loop_…..

or

add_action( ‘woocommerce_product_query…. or anyone, I don’t know which one is right.
I also want to hide the ones that have a price of 999eur. For this I would use the same hook in functions.php.

Thanks

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.