public function _toHtml() { $html = parent::_toHtml(); $comment = $this->getOpcheckoutOrderCommentHtml(); $deliverDate = $this->getDeliveryDateHtml(); if (Mage::getStoreConfig('opcheckout/order/opcheckout_order_comment') == 1) { return $html . $comment . $deliverDate; } return $html . $deliverDate; }
/** * Retrieve order items collection * * @return unknown */ public function getItemsCollection() { if ($vendorOrder = Mage::registry('vendor_order')) { $collection = array(); foreach ($this->getOrder()->getItemsCollection() as $item) { if ($item->getData('vendor_id') == $vendorOrder->getData('vendor_id')) { $collection[] = $item; } } } else { $collection = parent::getItemsCollection(); } return $collection; }
/** * get html value function */ public function _toHtml() { $html = parent::_toHtml(); $comment = $this->getCommentHtml(); return $html . $comment; }
protected function _beforeToHtml() { parent::_beforeToHtml(); $this->setTemplate('ordereditor/items.phtml'); }
public function _beforeToHtml() { $this->setParentBlock($this->getLayout()->createBlock('core/template', '', array('order' => $this->getOrder()))); parent::_beforeToHtml(); //@todo: append <block type="core/text_list" name="order_item_extra_info" /> }