How to change CrossSell product limit in Magento 2?

Magento 2, Cross-sell product will be display in Shopping Cart page. By Native Magento, Only four Cross-sell product will be display in cart page. If you want to increase or decrease the Cross-sell Product display limit in cart page you need to modify Core Crosssell.php file.

Native file location for CrossSell Product, Magento\Checkout\Block\Cart\Crosssell

You can check the hardcoded product limit by protected $_maxItemCount = 4;

3 Replies to “How to change CrossSell product limit in Magento 2?”

  1. Thanks for the great tutorial! Unfortunately after following all the steps I get 2 errors on Magento 2.3.3. Only thing I changed was Rbj to Jcs to remember it better and made sure to change all references to Rbj to Jcs.

    Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid block type: MagentoCheckoutBlockCartCrosssell
    Exception #1 (ReflectionException): Class JcsCrossSellBlockCartCrosssell does not exist

Leave a Reply