protected function _prepareLayout() { if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle(AO::helper('checkout')->__('Ship to Multiple Addresses') . ' - ' . $headBlock->getDefaultTitle()); } return parent::_prepareLayout(); }
protected function _prepareLayout() { if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle(Mage::helper('checkout')->__('Shipping Methods') . ' - ' . $headBlock->getDefaultTitle()); } return parent::_prepareLayout(); }
protected function _prepareLayout() { if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle($this->__('Review Order - %s', $headBlock->getDefaultTitle())); } return parent::_prepareLayout(); }
protected function _prepareLayout() { parent::_prepareLayout(); if ($toolbar = $this->getLayout()->getBlock('udratings_list.toolbar')) { $toolbar->setCollection($this->getReviewsCollection()); $this->setChild('toolbar', $toolbar); } return $this; }
/** * Retrieve required options from parent */ protected function _beforeToHtml() { if (!$this->getParentBlock()) { Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block.')); } $this->setSubscription($this->getParentBlock()->getSubscription()); $orderInfos = $this->getSubscription()->getOrderInfo(); $order = Mage::getModel('sales/order')->setData($orderInfos)->setId(null); $this->setOrder($order); parent::_beforeToHtml(); }
public function __construct() { parent::__construct(); if ($this->getInvoice()->getId()) { $this->addItemRender('default', 'sales/order_item_renderer_default', 'pdfinvoiceplus/sales/order/invoice/items/renderer/default.phtml'); $this->addItemRender('grouped', 'sales/order_item_renderer_grouped', 'pdfinvoiceplus/sales/order/invoice/items/renderer/default.phtml'); $this->addItemRender('bundle', 'bundle/sales_order_items_renderer', 'pdfinvoiceplus/sales/bundle/invoice/items/renderer/renderer.phtml'); } elseif ($this->getCreditmemo()->getId()) { $this->addItemRender('grouped', 'sales/order_item_renderer_grouped', 'pdfinvoiceplus/sales/order/creditmemo/items/renderer/default.phtml'); $this->addItemRender('default', 'sales/order_item_renderer_default', 'pdfinvoiceplus/sales/order/creditmemo/items/renderer/default.phtml'); $this->addItemRender('bundle', 'bundle/sales_order_items_renderer', 'pdfinvoiceplus/sales/bundle/creditmemo/items/renderer/renderer.phtml'); } else { $this->addItemRender('grouped', 'sales/order_item_renderer_grouped', 'pdfinvoiceplus/sales/order/view/items/renderer/default.phtml'); $this->addItemRender('default', 'sales/order_item_renderer_default', 'pdfinvoiceplus/sales/order/view/items/renderer/default.phtml'); $this->addItemRender('bundle', 'bundle/sales_order_items_renderer', 'pdfinvoiceplus/sales/bundle/view/items/renderer/renderer.phtml'); } }
public function getItemHtml(Varien_Object $item) { $html = parent::getItemHtml($item); $product = Mage::getModel('catalog/product')->load($item->getProductId()); $show = 0; if ($item->getProductType() == 'configurable') { $itemId = $item->getItemId(); $children = Mage::getModel('sales/order_item')->getCollection(); $children->getSelect()->where("main_table.parent_item_id = {$itemId}"); foreach ($children as $child) { $show = $show || Mage::getModel('catalog/product')->load($child->getProductId())->getSerialCodeShowOrder(); } } if ($show || $product->getSerialCodeShowOrder()) { $sc_model = Mage::getSingleton('serialcodes/serialcodes'); $name = $this->htmlEscape($item->getName()); $codetype = $item->getSerialCodeType(); $codes = explode("\n", $item->getSerialCodes()); $count = count($codes); $local = '<span style="font-weight:normal;">'; if ($codes[0]) { $order = Mage::getSingleton('sales/order')->load($item->getOrderId()); $codeids = array_pad(explode(',', $item->getSerialCodeIds()), $count, ''); for ($i = 0; $i < $count; $i++) { if ($sc_model->hidePendingCodes($order, $item, $product, $codeids[$i], $i)) { $codes[$i] = Mage::helper('serialcodes')->__('Issued when payment received.'); } $local .= '</br>' . $codetype . ': ' . $codes[$i]; } } $local .= '</span>'; if (strpos($html, $name)) { $start = strpos($html, $name) + strlen($name); } else { $start = strpos($html, '</h3>') + 5; } $test = trim(strip_tags($local)); if ($test && $test != ':') { $html = substr_replace($html, $local, $start, 0); } } return $html; }
protected function _prepareItem(Mage_Core_Block_Abstract $renderer) { $renderer->setPrintStatus(true); return parent::_prepareItem($renderer); }
/** * Retrieve renderer block for row-level item output * * @param string $type * @return Mage_Core_Block_Abstract */ public function _getRowItemRenderer($type) { $type = $this->_getRowItemType($type); $type = isset($this->_itemRenders[$type]) ? $type : $this->_getRowItemType('default'); return parent::getItemRenderer($type); }
protected function _construct() { parent::_construct(); $this->setTemplate('mw_followupemail/itemsproductorder.phtml'); }
protected function _construct() { parent::_construct(); $this->addItemRender('default', 'checkout/cart_item_renderer', 'request4quote/cart/item/default.phtml'); }
protected function _construct() { parent::_construct(); }
/** * Initialize data and prepare it for output */ protected function _beforeToHtml() { $this->_prepareLastOrder(); return parent::_beforeToHtml(); }