当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法代码示例

本文整理汇总了PHP中Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法的具体用法?PHP Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout怎么用?PHP Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Adminhtml_Block_Sales_Order_Abstract的用法示例。


在下文中一共展示了Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _prepareLayout

 protected function _prepareLayout()
 {
     $onclick = "submitAndReloadArea(\$('retops-info').parentNode, '" . $this->getSubmitUrl() . "')";
     $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Submit'), 'class' => 'save', 'onclick' => $onclick));
     $this->setChild('submit_button', $button);
     return parent::_prepareLayout();
 }
开发者ID:ksawh,项目名称:retailops_magento,代码行数:7,代码来源:Retailops.php

示例2: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('items', $this->getLayout()->createBlock('adminhtml/sales_order_creditmemo_create_items'));
     $infoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_view_info')->setOrder($this->getCreditmemo()->getOrder());
     $this->setChild('order_info', $infoBlock);
     $paymentInfoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_payment')->setPayment($this->getCreditmemo()->getOrder()->getPayment());
     $this->setChild('payment_info', $paymentInfoBlock);
     return parent::_prepareLayout();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:9,代码来源:Form.php

示例3: _prepareLayout

 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Items
  */
 protected function _prepareLayout()
 {
     $infoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_view_info')->setOrder($this->getShipment()->getOrder());
     $this->setChild('order_info', $infoBlock);
     $this->setChild('tracking', $this->getLayout()->createBlock('adminhtml/sales_order_shipment_view_tracking'));
     $commentsBlock = $this->getLayout()->createBlock('adminhtml/sales_order_comments_view')->setEntity($this->getShipment());
     $this->setChild('comments', $commentsBlock);
     $paymentInfoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_payment')->setPayment($this->getShipment()->getOrder()->getPayment());
     $this->setChild('payment_info', $paymentInfoBlock);
     return parent::_prepareLayout();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:16,代码来源:Form.php

示例4: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('messages', $this->getLayout()->createBlock('adminhtml/sales_order_view_messages'));
     $infoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_view_info')->setOrder($this->getOrder());
     $this->setChild('info', $infoBlock);
     $this->setChild('items', $this->getLayout()->createBlock('adminhtml/sales_order_view_items'));
     $paymentInfoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_payment')->setPayment($this->getOrder()->getPayment());
     $this->setChild('payment_info', $paymentInfoBlock);
     $this->setChild('history', $this->getLayout()->createBlock('adminhtml/sales_order_view_history'));
     $this->setChild('giftmessage', $this->getLayout()->createBlock('adminhtml/sales_order_view_giftmessage')->setEntity($this->getOrder()));
     $totalsBlock = $this->getLayout()->createBlock('adminhtml/sales_order_totals')->setSource($this->getOrder())->setCurrency($this->getOrder()->getOrderCurrency())->setCanDisplayTotalDue(true)->setCanDisplayTotalPaid(true)->setCanDisplayTotalRefunded(true);
     $this->setChild('totals', $totalsBlock);
     return parent::_prepareLayout();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:14,代码来源:Info.php

示例5: _prepareLayout

 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Items
  */
 protected function _prepareLayout()
 {
     $onclick = "submitAndReloadArea(\$('invoice_item_container'),'" . $this->getUpdateUrl() . "')";
     $this->setChild('update_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('class' => 'update-button', 'label' => Mage::helper('sales')->__('Update Qty\'s'), 'onclick' => $onclick)));
     $this->setChild('submit_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Submit Invoice'), 'class' => 'save submit-button', 'onclick' => '$(\'edit_form\').submit()')));
     $orderPayment = $this->getInvoice()->getOrder()->getPayment();
     $this->setPriceDataObject($orderPayment);
     $totalsBarBlock = $this->getLayout()->createBlock('adminhtml/sales_order_totalbar')->setOrder($this->getInvoice()->getOrder())->addTotal(Mage::helper('sales')->__('Paid Amount'), $this->displayPriceAttribute('amount_paid'))->addTotal(Mage::helper('sales')->__('Refund Amount'), $this->displayPriceAttribute('amount_refunded'))->addTotal(Mage::helper('sales')->__('Shipping Amount'), $this->displayPriceAttribute('shipping_captured'))->addTotal(Mage::helper('sales')->__('Shipping Refund'), $this->displayPriceAttribute('shipping_refunded'));
     $this->setPriceDataObject($this->getInvoice()->getOrder());
     $totalsBarBlock->addTotal(Mage::helper('sales')->__('Order Grand Total'), $this->displayPriceAttribute('grand_total'), true);
     $this->setChild('totals_bar', $totalsBarBlock);
     $totalsBlock = $this->getLayout()->createBlock('adminhtml/sales_order_totals')->setSource($this->getInvoice())->setOrder($this->getInvoice()->getOrder());
     $this->setChild('totals', $totalsBlock);
     return parent::_prepareLayout();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:20,代码来源:Items.php

示例6: _prepareLayout

 protected function _prepareLayout()
 {
     /*  $infoBlock = $this->getLayout()->createBlock('Mage_Adminhtml_Block_Sales_Order_View_Info')
                ->setOrder($this->getInvoice()->getOrder());
            $this->setChild('order_info', $infoBlock);
     */
     /*  $this->addChild('items', 'Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Items');
      */
     $trackingBlock = $this->getLayout()->createBlock('Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Tracking');
     //$this->setChild('order_tracking', $trackingBlock);
     $this->setChild('tracking', $trackingBlock);
     /*
     $paymentInfoBlock = $this->getLayout()->createBlock('Mage_Adminhtml_Block_Sales_Order_Payment')
        ->setPayment($this->getInvoice()->getOrder()->getPayment());
     $this->setChild('payment_info', $paymentInfoBlock);
     */
     return parent::_prepareLayout();
 }
开发者ID:nayanchamp,项目名称:magento2,代码行数:18,代码来源:Form.php

示例7: _prepareLayout

 protected function _prepareLayout()
 {
     /*  $infoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_view_info')
                ->setOrder($this->getInvoice()->getOrder());
            $this->setChild('order_info', $infoBlock);
     */
     /*  $this->setChild(
           'items',
             $this->getLayout()->createBlock('adminhtml/sales_order_invoice_create_items')
         );
         */
     $trackingBlock = $this->getLayout()->createBlock('adminhtml/sales_order_invoice_create_tracking');
     //$this->setChild('order_tracking', $trackingBlock);
     $this->setChild('tracking', $trackingBlock);
     /*
     $paymentInfoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_payment')
        ->setPayment($this->getInvoice()->getOrder()->getPayment());
     $this->setChild('payment_info', $paymentInfoBlock);
     */
     return parent::_prepareLayout();
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:21,代码来源:Form.php

示例8: _prepareLayout

 public function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
开发者ID:rafaelstz,项目名称:moip-transparente,代码行数:4,代码来源:Customermessages.php

示例9: _prepareLayout

 protected function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:4,代码来源:Form.php


注:本文中的Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。