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

Remove product links for items in cart

In a very simple shop you may not be using the individual product pages at all. This code removes the links to the product pages that are normally added on the cart view.

		/**
 * Remove product links for items in cart
 */

add_filter('woocommerce_cart_item_name', 'cc_remove_cart_product_link', 10, 3);

function cc_remove_cart_product_link($product_link, $cart_item, $cart_item_key) {

  $product = apply_filters('woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key);
  return $product->get_title();

}
	
View Raw Code ID: 91132