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

PHP Mage_Adminhtml_Block_Sales_Items_Abstract类代码示例

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

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



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

示例1: _beforeToHtml

 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Items
  */
 protected function _beforeToHtml()
 {
     $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()')));
     return parent::_prepareLayout();
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:12,代码来源:Items.php


示例2: _beforeToHtml

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


示例3: _beforeToHtml

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


示例4: _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());
     parent::_beforeToHtml();
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:11,代码来源:Sales_Order_View_Items.php


示例5: _toHtml

 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $_item = $this->getItem();
     if ($_item && $_item->getGwId()) {
         return parent::_toHtml();
     } else {
         return false;
     }
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:14,代码来源:Items.php


示例6: __construct

 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setId('prominclinkorderAdminhtmlAdminPreview');
     if (Mage::registry('order')) {
         $_order = $this->getOrder(Mage::registry('order'));
     }
     $this->addItemRender("default", "adminhtml/sales_order_view_items_renderer_default", "sales/order/view/items/renderer/default.phtml");
     $this->setTemplate('prominclinkorder/admin/preview.phtml')->setData('store', Mage::registry('store'))->setData('email', Mage::registry('email'))->setData('order_id', Mage::registry('order_id'))->setData('saved', Mage::registry('saved'));
 }
开发者ID:PromInc,项目名称:Magento-1.x-Link-Customer-to-Order,代码行数:13,代码来源:Preview.php


示例7: _beforeToHtml

 /**
  * 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();
 }
开发者ID:xiaoguizhidao,项目名称:extensiongsd,代码行数:14,代码来源:Items.php


示例8: _prepareLayout

 protected function _prepareLayout()
 {
     if ($this->getInvoice()->getId()) {
         $this->setChild('invoice_totals', $this->getLayout()->createBlock('pdfinvoiceplus/adminhtml_totals_invoice'));
     }
     if ($this->getOrder()->getId()) {
         $this->setChild('order_totals', $this->getLayout()->createBlock('pdfinvoiceplus/adminhtml_totals_order'));
     }
     if ($this->getCreditmemo()->getId()) {
         $this->setChild('creditmemo_totals', $this->getLayout()->createBlock('pdfinvoiceplus/adminhtml_totals_creditmemo'));
     }
     parent::_prepareLayout();
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:13,代码来源:Pdf.php


示例9: _prepareLayout

 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Creditmemo_Create_Items
  */
 protected function _prepareLayout()
 {
     $onclick = "submitAndReloadArea(\$('creditmemo_item_container'),'" . $this->getUpdateUrl() . "')";
     $this->setChild('update_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Update Qty\'s'), 'class' => 'update-button', 'onclick' => $onclick)));
     if ($this->getCreditmemo()->canRefund()) {
         if ($this->getCreditmemo()->getInvoice() && $this->getCreditmemo()->getInvoice()->getTransactionId()) {
             $this->setChild('submit_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Refund'), 'class' => 'save submit-button', 'onclick' => 'disableElements(\'submit-button\');submitCreditMemo()')));
         }
         $this->setChild('submit_offline', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Refund Offline'), 'class' => 'save submit-button', 'onclick' => 'disableElements(\'submit-button\');submitCreditMemoOffline()')));
     } else {
         $this->setChild('submit_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Refund Offline'), 'class' => 'save submit-button', 'onclick' => 'disableElements(\'submit-button\');submitCreditMemoOffline()')));
     }
     return parent::_prepareLayout();
 }
开发者ID:blazeriaz,项目名称:youguess,代码行数:19,代码来源:Items.php


示例10: _beforeToHtml

 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Items
  */
 protected function _beforeToHtml()
 {
     $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->_disableSubmitButton = true;
     $_submitButtonClass = ' disabled';
     foreach ($this->getInvoice()->getAllItems() as $item) {
         if ($item->getQty() || $this->getSource()->getData('base_grand_total')) {
             $this->_disableSubmitButton = false;
             $_submitButtonClass = '';
             break;
         }
     }
     $_submitLabel = $this->getOrder()->getForcedDoShipmentWithInvoice() ? 'Submit Invoice and Shipment' : 'Submit Invoice';
     $this->setChild('submit_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('%s', $_submitLabel), 'class' => 'save submit-button' . $_submitButtonClass, 'onclick' => '$(\'edit_form\').submit()', 'disabled' => $this->_disableSubmitButton)));
     return parent::_prepareLayout();
 }
开发者ID:jauderho,项目名称:magento-mirror,代码行数:22,代码来源:Items.php


示例11: _beforeToHtml

 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Items
  */
 protected function _beforeToHtml()
 {
     $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->_disableSubmitButton = true;
     $_submitButtonClass = ' disabled';
     foreach ($this->getInvoice()->getAllItems() as $item) {
         /**
          * @see bug #14839
          */
         if ($item->getQty()) {
             $this->_disableSubmitButton = false;
             $_submitButtonClass = '';
             break;
         }
     }
     $_saveLabel = Mage::helper('sales')->__('Save');
     $this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => $_saveLabel, 'class' => 'save submit-button' . $_submitButtonClass, 'onclick' => 'disableElements(\'submit-button\');$(\'edit_form\').submit()', 'disabled' => $this->_disableSubmitButton)));
     return parent::_prepareLayout();
 }
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:25,代码来源:Items.php


示例12: _beforeToHtml

 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Items
  */
 protected function _beforeToHtml()
 {
     $onclick = "submitAndReloadArea(\$('invoice_item_container'),'" . $this->getUpdateUrl() . "')";
     $this->addChild('update_button', 'Mage_Adminhtml_Block_Widget_Button', array('class' => 'update-button', 'label' => Mage::helper('Mage_Sales_Helper_Data')->__('Update Qty\'s'), 'onclick' => $onclick));
     $this->_disableSubmitButton = true;
     $_submitButtonClass = ' disabled';
     foreach ($this->getInvoice()->getAllItems() as $item) {
         /**
          * @see bug #14839
          */
         if ($item->getQty()) {
             $this->_disableSubmitButton = false;
             $_submitButtonClass = '';
             break;
         }
     }
     if ($this->getOrder()->getForcedShipmentWithInvoice()) {
         $_submitLabel = Mage::helper('Mage_Sales_Helper_Data')->__('Submit Invoice and Shipment');
     } else {
         $_submitLabel = Mage::helper('Mage_Sales_Helper_Data')->__('Submit Invoice');
     }
     $this->addChild('submit_button', 'Mage_Adminhtml_Block_Widget_Button', array('label' => $_submitLabel, 'class' => 'save submit-button' . $_submitButtonClass, 'onclick' => 'disableElements(\'submit-button\');$(\'edit_form\').submit()', 'disabled' => $this->_disableSubmitButton));
     return parent::_prepareLayout();
 }
开发者ID:nayanchamp,项目名称:magento2,代码行数:29,代码来源:Items.php


示例13: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->setOrder($this->getQuote());
     parent::_beforeToHtml();
 }
开发者ID:VinuWebtech,项目名称:production267,代码行数:5,代码来源:Items.php


示例14: _prepareLayout

 protected function _prepareLayout()
 {
     parent::_prepareLayout();
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:4,代码来源:Creditmemo.php


示例15: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('mw_followupemail/itemscart.phtml');
 }
开发者ID:santhosh400,项目名称:ecart,代码行数:5,代码来源:Itemscart.php


示例16: _beforeToHtml

 /**
  * Prepare child blocks
  */
 protected function _beforeToHtml()
 {
     $this->setChild('submit_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Submit Shipment'), 'class' => 'save submit-button', 'onclick' => 'submitShipment(this);')));
     return parent::_beforeToHtml();
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:8,代码来源:Items.php


示例17: _beforeToHtml

 /**
  * Prepare child blocks
  */
 protected function _beforeToHtml()
 {
     $this->addChild('submit_button', 'Mage_Adminhtml_Block_Widget_Button', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Submit Shipment'), 'class' => 'save submit-button', 'onclick' => 'submitShipment(this);'));
     return parent::_beforeToHtml();
 }
开发者ID:natxetee,项目名称:magento2,代码行数:8,代码来源:Items.php



注:本文中的Mage_Adminhtml_Block_Sales_Items_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