0
votes

I'm using the Woocommerce plugin to sell a dozen of products. One of them is really expensive, and the seller want to hide the "add to cart" button for this specific product and replace it with a "Contact us".

What would be a the right function to add in my theme functions.php in order to hide the "add to cart" button for this product?

Thanks!

1
It could be done via php and adding something to functions.php but that would be more complicated and difficult than simply using jQuery to hide/remove the "Add to Cart" button on that specific page and replace it with the "contact us" text or link. - Ennui
Thanks Ennui. Any idea of the jQuery's piece of code to insert? - yallahweb

1 Answers

0
votes

The newer version of WooCommerce has this functionality built into it...

Woo-Themes: Catalog Visibility Options

Good Luck!