Home Communication board WiKi Get Quote

Magento empty product name on the cart page

If the product name is not displaying on the cart page in Magento, you should trying to change the app/code/core/Mage/Sales/Model/Mysql4/Quote/Item/Collection.php file.

Find the following code:

        $productCollection = Mage::getModel('catalog/product')->getCollection()
            ->setStoreId($this->getStoreId())
            ->addIdFilter($this->_productIds)
            ->addAttributeToSelect(Mage::getSingleton('sales/quote_config')->getProductAttributes())
            ->addOptionsToResult()
            ->addStoreFilter()
            ->addUrlRewrite();

And add the additional attributes to select this way:

        $productCollection = Mage::getModel('catalog/product')->getCollection()
            ->setStoreId($this->getStoreId())
            ->addIdFilter($this->_productIds)
            ->addAttributeToSelect(Mage::getSingleton('sales/quote_config')->getProductAttributes())
            ->addAttributeToSelect('*')
            ->addOptionsToResult()
            ->addStoreFilter()
            ->addUrlRewrite();

 
Home About us Privacy statement Terms & Conditions Refund policy © 2007–2021 ArsCommunity