Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[magento] - show related products even if the product is in the cart

show related products even if the product is in the cart

copy file from core to local

mkdir -p app/code/local/Mage/Catalog/Block/Product/List
cp app/code/core/Mage/Catalog/Block/Product/List/Related.php app/code/local/Mage/Catalog/Block/Product/List

comment line 58 - 60 (magento ce 1.6.2.0)

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

Credits

Authors

Achim Rosenhagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.