Tuesday 26 April 2011

How to Limit the Number of Crosssell Items in Cart (Magneto)


Hi friends,

The limit is hardcoded in app/code/core/Mage/Checkout/Block/Cart/Crossell.php



class Mage_Checkout_Block_Cart_Crosssell extends Mage_Catalog_Block_Product_Abstract
{
    
protected $_maxItemCount 4;

    public function 
getItems()
    
{
...

2 comments:

  1. and get rid of upgradeability

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete