I want to display the color and size of the configurable product in the cart. I got all the details other than the color and size values. My code is
`$itemsVisible = Mage::getSingleton('checkout/session')->getQuote()->getAllVisibleItems();
foreach($itemsVisible as $item) {
$id = $item->getProductId();
$name = $item->getName();
$sku = $item->getSku();
$qty = $item->getQty();
$price = $item->getPrice();
$size = $item->getSize();
$color = $item->getColor();`
}
color and size return blank. How can I get these values?
Best Answer
Use following code to get attribute in cart page.
Hope this helps you