I need to hide the "add to cart" button for products of a defined product category.
I would like the quantity fied still visible because I am using the Yith request a quote plugin which uses quantities for the quote system.
The goal: hide "add to cart" button for a certain product category keeping the quantities fields.
Im looking for a short string of code to place in my functions.php
file.
Here is the way (for defined product categories for simple and variable product types) to:
The code:
And optionally (for archives pages):
Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
This code is tested under WooCommerce 3+ and works.