Beispiel #1
0
 /**
  * Retrieve required options from parent
  */
 protected function _beforeToHtml()
 {
     if (!$this->getParentBlock()) {
         Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block'));
     }
     parent::_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();
 }
Beispiel #3
0
 /**
  * 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();
 }
Beispiel #4
0
 /**
  * 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();
 }
 /**
  * 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();
 }
Beispiel #6
0
 /**
  * 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();
 }
Beispiel #7
0
 protected function _beforeToHtml()
 {
     $this->setOrder($this->getQuote());
     parent::_beforeToHtml();
 }