GoranStimac.com

How can I help

Stay informed and learn

Let's connect

How to remove cross-sells from the cart page on WooCommerce?

A client wanted to completely remove the area on the Cart page where cross-sells show. This is helpful if you have dozens of products with cross-sells and you don’t want to go and edit every single page.

Add the following snippet in your current theme’s function.php file:

// Remove cross-sells at cart
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );

Note: I strongly recommend you to do this edit on a child theme.

Newer post

Alexander Hrustevich plays Bach, Sibelius, Vivaldi, Albinoni at the National House of Organ and Chamber Music in Kyiv 2021

Older post

Browser tracking protections won't stop tracking, warns DuckDuckGo

comments powered by Disqus

Looking for an IT professional?

Book a call Email me