• Resolved niravpandya2827

    (@niravpandya2827)


    Hello I have woocommerce website and I have some gift cards and some virtual products and those products I have excluded showing on product listing (shop page) and it is working and not showing on shop page as the hook is working properly, But when I apply any filter or clear all filter then those excluded products are shown and I don’t want to show those products after your filter or after clear all filter.

    As I have checked there is no option to exclude the products through ids or by any other way.
    Can you give me solution to hide such products after filter activities

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WBW Plugins

    (@woobewoo)

    Hello @niravpandya2827,

    Thank you for reaching out! Yes, there is a way to exclude products based on Category ID or Tag/Attribute ID to ensure that your gift cards and virtual products remain hidden even after applying or clearing filters – https://prnt.sc/BbPR00gwHSG0

    Please let us know if you need guidance on implementing this, or feel free to contact our support team via our support form for further assistance: https://woobewoo.com/contact-us/

    Thread Starter niravpandya2827

    (@niravpandya2827)

    As per your suggestion, this will only exclude product tags not products, what I want is to exclude some fixed products shown on shop page and it is working initially with woocommerce hook and even if we click on clear all filter without filtering anything then it loads our hidden/excluded products in the list and that should no be shown. 

    Plugin Author WBW Plugins

    (@woobewoo)

    Hello @niravpandya2827,

    Could you please clarify why you prefer not to exclude these products at the product level within the WooCommerce product settings? Understanding this will help us provide a solution for your specific use case.

    Thread Starter niravpandya2827

    (@niravpandya2827)

    I have excluded the products which I dont want to show in shop page and category page through hook in functions.php file and initially these products are not showing but when we trigger any filters or even click on Clear All button in filter then these hidden products are visible and that should not be. There is no option to hide the products within the woocommerce product settings, so only we can hide our selected products though woocommerce hooks and it is working initally but not working after any filter triggered or after clear all button press. Please review and give me solution on this.

    Plugin Author WBW Plugins

    (@woobewoo)

    Hello @niravpandya2827,

    https://i.imgur.com/Gq56r0y.png – This can be done through attribute preselection with the not in logic.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Exclude some products from filter’ is closed to new replies.