WooCommerce catalog mode without payment and add to cart buttons

table of contents

The following line of code allows you to turn a WooCommerce store into a product catalog without the ability to order.

Add to cart and checkout buttons will be eliminated and the store will be used as a product archive.

Converts a WooCommerce product store into a catalog

Add the code to the child theme’s functions.php file or using a snippets management plugin.

				
					add_filter( 'woocommerce_is_purchasable', '__return_false' );

				
			

Leave a Reply

Your email address will not be published. Required fields are marked *