*/ class Mage_XmlConnect_Block_Cart_Item_Renderer_Grouped extends Mage_XmlConnect_Block_Cart_Item_Renderer { const GROUPED_PRODUCT_IMAGE = 'checkout/cart/grouped_product_image'; const USE_PARENT_IMAGE = 'parent'; /** * Get item grouped product * * @return Mage_Catalog_Model_Product */ public function getGroupedProduct() { $option = $this->getItem()->getOptionByCode('product_type'); if ($option) { return $option->getProduct(); } return $this->getProduct(); } }