We’ve already seen how to remove the product permalink from the “order table” (the one you see on the Thank you page, My account pages and emails). Thsi time, we’re looking at doing the same thing on the Cart page, which uses different “hooks” than the order pages and therefore requires its own snippet.

Here’s how it’s done – as usual 1 PHP line is sufficient!

How to delete the Cart item permalink

PHP Snippet: Delete Cart Item Permalink @ WooCommerce Cart


/**
 * @snippet       Remove Cart Item Link - WooCommerce Cart
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=80927
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.4.7
 */ 

add_filter( 'woocommerce_cart_item_permalink', '__return_null' );

Share:

Leave a Reply