/** * 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('Mage_Adminhtml_Block_Widget_Form_Renderer_Element')); Varien_Data_Form::setFieldsetRenderer($this->getLayout()->createBlock('Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset')); Varien_Data_Form::setFieldsetElementRenderer($this->getLayout()->createBlock('Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element')); return $this; }
/** * 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; }
protected function _prepareLayout() { $childNames = array('sidebar', 'form_account', 'shipping_address', 'billing_address', 'shipping_method', 'billing_method', 'newsletter', 'search', 'items', 'comment', 'totals', 'giftmessage'); foreach ($childNames as $name) { $this->setChild($name, $this->getLayout()->createBlock('adminhtml/sales_order_create_' . $name)); } return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('data', $this->getLayout()->createBlock('adminhtml/sales_order_create_data')); $childNames = array('customer', 'store', 'data', 'messages'); foreach ($childNames as $name) { $this->setChild($name, $this->getLayout()->createBlock('adminhtml/sales_order_create_' . $name)); } return parent::_prepareLayout(); }
protected function _prepareLayout() { if ($this->getCustomerId()) { $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('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(); }
protected function _prepareLayout() { if ($this->getCustomerId()) { $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Update Changes'), 'onclick' => 'order.sidebarApplyChanges()', 'before_html' => '<div class="sub-btn-set">', 'after_html' => '</div>')); $this->setChild('top_button', $button); } $this->setChild('cart', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_cart')); $this->setChild('wishlist', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_wishlist')); $this->setChild('reorder', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_reorder')); $this->setChild('viewed', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_viewed')); $this->setChild('compared', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_compared')); $this->setChild('pcompared', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_pcompared')); $this->setChild('pviewed', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_pviewed')); if ($this->getCustomerId()) { $this->setChild('bottom_button', $button); } return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('select', $this->getLayout()->createBlock('adminhtml/sales_order_create_store_select')); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/sales_order_create_customer_grid')); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('form', $this->getLayout()->createBlock('adminhtml/sales_order_create_billing_method_form')); return parent::_prepareLayout(); }