コード例 #1
0
 protected function _toHtml()
 {
     if (!Mage::getSingleton('adminhtml/quote')->getIsOldCustomer()) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #2
0
 protected function _prepareLayout()
 {
     $onclick = "submitAndReloadArea(\$('order_history_block').parentNode, '" . $this->getSubmitUrl() . "')";
     $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('request4quote')->__('Submit Comment'), 'class' => 'save', 'onclick' => $onclick));
     $this->setChild('submit_button', $button);
     return parent::_prepareLayout();
 }
コード例 #3
0
 /**
  * Prepare global layout
  * Add renderers to Varien_Data_Form
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Create_Form_Abstract
  */
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     Varien_Data_Form::setElementRenderer($this->getLayout()->createBlock('adminhtml/widget_form_renderer_element'));
     Varien_Data_Form::setFieldsetRenderer($this->getLayout()->createBlock('adminhtml/widget_form_renderer_fieldset'));
     Varien_Data_Form::setFieldsetElementRenderer($this->getLayout()->createBlock('adminhtml/widget_form_renderer_fieldset_element'));
     return $this;
 }
コード例 #4
0
ファイル: Method.php プロジェクト: VinuWebtech/production267
 public function __construct()
 {
     parent::__construct();
     $this->setId('sales_order_create_shipping_method');
     if (Mage::helper('request4quote')->isTaxEstimatesEnabled() == true) {
         $this->setTemplate('sales/order/create/abstract.phtml');
     }
 }
コード例 #5
0
ファイル: Sidebar.php プロジェクト: VinuWebtech/production267
 protected function _prepareLayout()
 {
     if ($this->getCustomerId()) {
         $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('request4quote')->__('Update Changes'), 'onclick' => 'order.sidebarApplyChanges()', 'before_html' => '<div class="sub-btn-set">', 'after_html' => '</div>'));
         $this->setChild('top_button', $button);
     }
     if ($this->getCustomerId()) {
         $button = clone $button;
         $button->unsId();
         $this->setChild('bottom_button', $button);
     }
     return parent::_prepareLayout();
 }
コード例 #6
0
ファイル: Items.php プロジェクト: VinuWebtech/production267
 /**
  * Return HTML code of the block
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->getStoreId()) {
         return parent::_toHtml();
     }
     return '';
 }
コード例 #7
0
ファイル: Totals.php プロジェクト: VinuWebtech/production267
 public function __construct()
 {
     parent::__construct();
     $this->setId('sales_order_create_totals');
 }
コード例 #8
0
ファイル: Coupons.php プロジェクト: VinuWebtech/production267
 public function __construct()
 {
     parent::__construct();
     $this->setId('sales_order_create_coupons_form');
 }
コード例 #9
0
ファイル: Method.php プロジェクト: VinuWebtech/production267
 public function __construct()
 {
     parent::__construct();
     $this->setId('sales_order_create_billing_method');
 }
コード例 #10
0
ファイル: Grid.php プロジェクト: VinuWebtech/production267
 public function __construct()
 {
     parent::__construct();
     $this->setId('sales_order_create_search_grid');
 }