• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Adminhtml_Block_Sales_Order_Abstract类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: _beforeToHtml

 protected function _beforeToHtml()
 {
     Mage_Adminhtml_Block_Sales_Order_Abstract::_beforeToHtml();
 }
开发者ID:sandermangel,项目名称:adyen-magento-subscription,代码行数:4,代码来源:Info.php


示例2: _construct

 protected function _construct()
 {
     parent::_construct();
     if ($this->getOrder()->getState() != Mage_Sales_Model_Order::STATE_CANCELED) {
         $this->setTemplate('sales/order/view/tab/Planning.phtml');
     }
 }
开发者ID:TrygveSkogsholm,项目名称:Magento-Patch,代码行数:7,代码来源:Planning.php


示例3: _toHtml

 protected function _toHtml()
 {
     if ($this->helper('smasoft_oneclickorder')->isDisplayPhoneInSalesOrders() && $this->getPhoneNumber()) {
         return parent::_toHtml();
     }
     return '';
 }
开发者ID:q2taras,项目名称:magento-oneclickorder,代码行数:7,代码来源:View.php


示例4: _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


示例5: _beforeToHtml

 /**
  * Retrieve required options from parent
  */
 protected function _beforeToHtml()
 {
     if (!$this->getParentBlock()) {
         Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
     }
     $this->setOrder($this->getParentBlock()->getSource());
     parent::_beforeToHtml();
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:11,代码来源:Tax.php


示例6: _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


示例7: _toHtml

 protected function _toHtml()
 {
     $order = $this->getOrder();
     $subscription = Mage::getModel('adyen_subscription/subscription')->loadByOrder($order);
     if (!$subscription->getId()) {
         return $this->getChildHtml();
     }
     $this->setSubscription($subscription);
     return parent::_toHtml();
 }
开发者ID:sandermangel,项目名称:adyen-magento-subscription,代码行数:10,代码来源:Subscription.php


示例8: _beforeToHtml

 /**
  * Retrieve required options from parent
  */
 protected function _beforeToHtml()
 {
     if (!$this->getParentBlock()) {
         Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block.'));
     }
     $this->setOrder($this->getParentBlock()->getOrder());
     foreach ($this->getParentBlock()->getOrderInfoData() as $k => $v) {
         $this->setDataUsingMethod($k, $v);
     }
     parent::_beforeToHtml();
 }
开发者ID:SalesOneGit,项目名称:s1_magento,代码行数:14,代码来源:Info.php


示例9: _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


示例10: _beforeToHtml

 /**
  * Retrieve required options from parent
  */
 protected function _beforeToHtml()
 {
     if (!$this->getParentBlock()) {
         AO::throwException(AO::helper('adminhtml')->__('Invalid parrent block for this block'));
     }
     $this->setOrder($this->getParentBlock()->getOrder());
     $this->setSource($this->getParentBlock()->getSource());
     $this->setCurrency($this->getParentBlock()->getOrder()->getOrderCurrency());
     foreach ($this->getParentBlock()->getOrderTotalData() as $k => $v) {
         $this->setDataUsingMethod($k, $v);
     }
     parent::_beforeToHtml();
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:16,代码来源:Sales_Order_Totals.php


示例11: _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


示例12: _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


示例13: _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


示例14: _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


示例15: _prepareLayout

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


示例16: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('sales/order/totalbar.phtml');
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:5,代码来源:Totalbar.php


示例17: _construct

 /**
  * Initialize template
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('sales/order/view/items.phtml');
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:8,代码来源:Items.php


示例18: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('zendesk/order/tickets.phtml');
 }
开发者ID:7ochem,项目名称:magento_extension,代码行数:5,代码来源:Tickets.php


示例19: _prepareLayout

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap