Okay
  Public Ticket #2694017
Woo Product Listing hidden products
Open

Comments

  • Michael Baillot started the conversation

    Hi,

    In the Woo Product Listing, hidden products appear which is not normal. How can I fix it?

    Best regards,

    Michael

    Attached files:  Capture d’écran 2021-02-17 à 12.42.35.png
      Capture d’écran 2021-02-17 à 12.42.07.png

  •  56
    Deekshit replied

    Hi Michael

    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?

    Thanks,

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Deekshit,

    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?

    Best regards,

    Michael

    Attached files:  02 Visibility.png
      03 Woo Product Listing Source.png
      01 Home page.png

  •  56
    Deekshit replied

    Hi Michael,

    Thanks for holding on, please replace the code that I have pasted below on the following file path

    wp-content\plugins\theplus_elementor_addon\modules\widgets\tp_product_listout.php 

    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.

    Thanks,

    Attached files:  code.png

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Deekshit,

    it works well! Thank you very much. Does this code modification will stay implemented after updating the plugin?

    Best regards,

    Michael

  •  56
    Deekshit replied

    Hi Michael,

    Yes, the changes will be available in the next update of the plugin.

    Thanks,

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.