Hide "add to cart" button for one product category

Hello,
my client wants to hide “add to cart” button for only one category of products. This is a situation when one category of products cannot be purchased on-line, but they want show that it is availabe and it’s price. This should be done on Product page and archives.

I am trying to play with the Conditions so I have duplicated the button with with “hide all during breakpoints” and condition “category is ‘restriced’”. It doesnt work, maybe there an explanation to it somewhere?

Anothere thing would be to replace “add to cart” buttion with “ask for availability” button, but I guess this is more complicated…?

Thank you.

Hello @tashitendrel,

Thank you for the inquiry.

Did you create and assign a Woocommerce Archive Layout for the product category pages? Have you tried selecting a specific product category in the Conditions panel for the “ask for availability” button? Please note that this condition will only work when the selected category is being viewed.

Please provide a link to the page where you need the button hidden for a specific category so we can check it.

Best regards,

Thank you, yes, I have made a few Woocommerce archives for product categories, and I think in case of that specific Woo Archive I don’t even need to use Conditions, I could just change the “add to cart button” into something else.
I guess I could also create a specific Single Product layout and assign it to the category.

But there is still a general show Woo Archive that shows all the products… And that one I don’t know how to deal with.

Hello @tashitendrel,

I would suggest you please set the conditions on the Add to Cart element.
Post(has term) has not Product category name”.

Hope it helps
Thanks

Thank you! It works.

You are most welcome, @tashitendrel