*/ class Mage_XmlConnect_Block_Customer_Order_Item_Renderer_Grouped extends Mage_Sales_Block_Order_Item_Renderer_Grouped { /** * Default product type */ const DEFAULT_PRODUCT_TYPE = 'default'; /** * Add item to XML object * (get from template: sales/order/items/renderer/default.phtml) * * @param Mage_XmlConnect_Model_Simplexml_Element $orderItemXmlObj * @return null */ public function addItemToXmlObject(Mage_XmlConnect_Model_Simplexml_Element $orderItemXmlObj) { if (!($item = $this->getItem()->getOrderItem())) { $item = $this->getItem(); } if (!($productType = $item->getRealProductType())) { $productType = self::DEFAULT_PRODUCT_TYPE; } $renderer = $this->getRenderedBlock()->getItemRenderer($productType); $renderer->setItem($this->getItem()); $renderer->addItemToXmlObject($orderItemXmlObj); } }