@lemos You can defiantly show the catalog option for a specific category. All you have to do is to make sure that you have included other catalog in the “Exclusion” option.
While doing that, make sure the products doesn’t belong to multiple categories. In that case, if one category comes under exclusion list, the catalog tab won’t be visible for that product.
Let me know if you need further clarification or have any further query.
Regards,
Moumita
Thread Starter
Lemos
(@lemos)
Thank’s for answer @dualcube!
Actually, I did it, but it’s not the question. I included the catalog in the Exclusion for only one category, and it worked. But when I open the single product page the “Send an enquiry” button appears for all products, in Exclusion list or not.
My question is, if is possible show the “Send an Enquiry” button only for the products (or categories) that I has set in “Exclusion list”?
Regards,
Rafael
Thread Starter
Lemos
(@lemos)
Hey guys, I got it!! However, I had to make some changes in the “class-wc-Woocommerce-Catalog-Enquiry-frontend.php” file, I need to do this in my Child Theme to prevent undo this when update in the future. I’ve tried create a folder /themes/child_theme/woocommerce-catalog-enquiry/classes but didn’t work. Can you help me?
Thank’s,
Rafael
@lemos
Let me help you with some information if your desired code is in some function hook of our plugin, then you have to modify the hook filter.
If it is in some of our plugin templates, then you have to override the template as mentioned on our plugin template files.
Let me know if you need any further clarification.
Regards,
Moumita
Thread Starter
Lemos
(@lemos)
Hey, Thank’s for your information, I edited the code, not the hook. And now I don’t know how to do to resolve my problem modifying hooks. Can you help me telling me what I need to change it to show the “Enquiry button” only for products defined as Catalog?
Thank’s.
Rafael Lemos
At first, please find out the code you want to modify, are in which function and that function is called by which hooks within our “class-wc-Woocommerce-Catalog-Enquiry-frontend.php”.
After that, modify or override that hook.
Let me know if you need any further assistance.