Magneto Get Product Attribute value in cart page
$session= Mage::getSingleton('checkout/session');
$items = $session->getQuote()->getAllItems();
foreach($items as $item) {
echo 'Product ID: '.$productId = $item->getProductId().'<br>';
echo 'Product Name: '.$productName = $item->getName().'<br>';
echo 'Product Sku: '.$productSku = $item->getSku().'<br>';
echo 'Product Quantity: '.$productQty =$item->getQty().'<br>';
echo 'Product Price: '.$productPrice = $item->getProduct()->getPrice().'<br>';
echo 'Attribute name : '.$Attribute = Mage::getModel('catalog/product')->load($productId)->getAttributeText('sttribute_code').'<br>';
}
No comments:
Post a Comment