In the Woo Product Listing, hidden products appear which is not normal. How can I fix it?
Attached files: Capture d’écran 2021-02-17 à 12.42.35.png Capture d’écran 2021-02-17 à 12.42.07.png
Thank you for contacting POSIMYTH Support.
Can you please provide some more info about the hidden products that appear on the site so that we can check what you mean?
Warm Regards,Deekshit Nair
I'm located in India. My timezone is IST.
the problem concerns the product "Chemin Lin Bleu" (screenshot 01). In the backend, the product is hidden (screenshot 02). However, it appears on the home page thanks to the Woo Product List widget (screenshot 03).
Hidden products should't be displayed anywhere so that's why I wonder why it appears here?
Attached files: 02 Visibility.png 03 Woo Product Listing Source.png 01 Home page.png
Thanks for holding on, please replace the code that I have pasted below on the following file path
and check again.
'tax_query' => [ 'relation' => 'AND', [ 'taxonomy' => 'product_visibility', 'field' => 'name', 'terms' => ['exclude-from-search', 'exclude-from-catalog'], 'operator' => 'NOT IN', ], ],
Please see attached screenshot for reference and let us know if that worked out for you.
Attached files: code.png
it works well! Thank you very much. Does this code modification will stay implemented after updating the plugin?
Yes, the changes will be available in the next update of the plugin.