In Magento,I have functionality where, a product has multiple colors, user can select quantity and color for product on product view page, where a product has different colors,
I need to show selected color on a cart page. I tried following code.
<?php $_item = $this->getItem()?>
<?php $_product= Mage::getSingleton('catalog/product')->load($_item->getProductId()) ?>
<?php echo $_product->getResource()->getAttribute('attribute_code')->getFrontend()->getValue($_product);
but it returns all color values for a product on cart page, instead of selected value for cart page.
any ideas?