Widget displays hidden & out of stock products
-
The widget displays all products in the given category, regardless of their catalog visibility or stock status. It would be great if there were some way to limit the results to exclude “hidden” and “out-of-stock” products as on the shop pages. Looking at the plugin code it seems there’s no way to hook into it to add a query arg, so I wonder if you might consider adding such options to your plugin. Otherwise I’m going to have to basically create my own version of the plugin based on your code, which seems a little silly, since I imagine other users would find the changes helpful.
I believe following the info in this post about the tax_query is what’s needed: https://wordpress.stackexchange.com/questions/231118/wp-query-exclude-hidden-products-from-woocommerce-product-list/262628#262628
Please let me know if you think you might be able to make an update sometime soon, and if there’s anything I can do to help make that happen. Thanks so much!
- The topic ‘Widget displays hidden & out of stock products’ is closed to new replies.