Monday, 16 March 2015

Magento checkout - getting custom attribute value

Magento checkout - getting custom attribute value

<?php foreach ($this->getMethods() as $_method): $_code = $_method->getCode();
$cod = 1;
$cartItems = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
foreach ($cartItems as $item) {
if($cod==1)
{
$cod = Mage::getModel('catalog/product')->load($item->getProduct()->getId())->getCod();
}
}

 ?>

No comments:

Post a Comment