A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Remove all links to individual products on the category page

On a small shop with only a few items, a simple list of products may be all that is required. Separate product pages become unnecessary. This code removes all the links on the category page to the individual product pages. You may also want to add the short description and add the quantity selector to this page.

		/**
 * Remove all links to individual products on the category page
 */

remove_action('woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10);
remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5);
	
View Raw Code ID: 91114