Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

how to don’t delete the list related products included at the cart? 
 
lgdesigner
Sr. Member
 
Avatar
Total Posts:  102
Joined:  2010-09-14
 

The solution I found was to extend the core file Related.php commenting the line 58-60 code:

app/code/core/Mage/Catalog/Block/Product/List/Related.php

if (Mage::helper('catalog')->isModuleEnabled('Mage_Checkout')) {
            
/*Mage::getResourceSingleton('checkout/cart')->addExcludeProductFilter($this->_itemCollection,
                Mage::getSingleton('checkout/session')->getQuoteId()
            );*/
            
$this->_addProductAttributesAndPrices($this->_itemCollection);
        
}

If anyone has another solution put here

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top