コード例 #1
0
 protected function _prepareLayout()
 {
     if ($headBlock = $this->getLayout()->getBlock('head')) {
         $headBlock->setTitle(AO::helper('checkout')->__('Ship to Multiple Addresses') . ' - ' . $headBlock->getDefaultTitle());
     }
     return parent::_prepareLayout();
 }
コード例 #2
0
ファイル: Shipping.php プロジェクト: hyhoocchan/mage-local
 protected function _prepareLayout()
 {
     if ($headBlock = $this->getLayout()->getBlock('head')) {
         $headBlock->setTitle(Mage::helper('checkout')->__('Shipping Methods') . ' - ' . $headBlock->getDefaultTitle());
     }
     return parent::_prepareLayout();
 }
コード例 #3
0
 protected function _prepareLayout()
 {
     if ($headBlock = $this->getLayout()->getBlock('head')) {
         $headBlock->setTitle($this->__('Review Order - %s', $headBlock->getDefaultTitle()));
     }
     return parent::_prepareLayout();
 }
コード例 #4
0
ファイル: Abstract.php プロジェクト: xiaoguizhidao/magento
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if ($toolbar = $this->getLayout()->getBlock('udratings_list.toolbar')) {
         $toolbar->setCollection($this->getReviewsCollection());
         $this->setChild('toolbar', $toolbar);
     }
     return $this;
 }
コード例 #5
0
ファイル: Items.php プロジェクト: xiaoguizhidao/extensiongsd
 /**
  * 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();
 }
コード例 #6
0
 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');
     }
 }
コード例 #7
0
ファイル: Abstract.php プロジェクト: protechhelp/gamamba
 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;
 }
コード例 #8
0
ファイル: Print.php プロジェクト: codercv/urbansurprisedev
 protected function _prepareItem(Mage_Core_Block_Abstract $renderer)
 {
     $renderer->setPrintStatus(true);
     return parent::_prepareItem($renderer);
 }
コード例 #9
0
ファイル: Overview.php プロジェクト: hazaeluz/magento_connect
 /**
  * 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);
 }
コード例 #10
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('mw_followupemail/itemsproductorder.phtml');
 }
コード例 #11
0
ファイル: Items.php プロジェクト: VinuWebtech/production267
 protected function _construct()
 {
     parent::_construct();
     $this->addItemRender('default', 'checkout/cart_item_renderer', 'request4quote/cart/item/default.phtml');
 }
コード例 #12
0
 protected function _construct()
 {
     parent::_construct();
 }
コード例 #13
0
ファイル: Success.php プロジェクト: rorteg/rafaelmage
 /**
  * Initialize data and prepare it for output
  */
 protected function _beforeToHtml()
 {
     $this->_prepareLastOrder();
     return parent::_beforeToHtml();
 }