Esempio n. 1
0
 protected function _construct()
 {
     parent::_construct();
     if ($this->getOrder()->getState() != Mage_Sales_Model_Order::STATE_CANCELED) {
         $this->setTemplate('sales/order/view/tab/Planning.phtml');
     }
 }
Esempio n. 2
0
 protected function _toHtml()
 {
     if ($this->helper('smasoft_oneclickorder')->isDisplayPhoneInSalesOrders() && $this->getPhoneNumber()) {
         return parent::_toHtml();
     }
     return '';
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 /**
  * 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();
 }
Esempio n. 5
0
 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();
 }
 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();
 }
Esempio n. 7
0
 /**
  * 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();
 }
Esempio n. 8
0
 /**
  * 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();
 }
Esempio n. 9
0
 /**
  * Prepare child blocks
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Creditmemo_Create_Items
  */
 protected function _prepareLayout()
 {
     $infoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_view_info')->setOrder($this->getCreditmemo()->getOrder());
     $this->setChild('order_info', $infoBlock);
     $totalsBlock = $this->getLayout()->createBlock('adminhtml/sales_order_totals')->setSource($this->getCreditmemo())->setOrder($this->getCreditmemo()->getOrder())->setGrandTotalTitle(Mage::helper('sales')->__('Total Refund'));
     $this->setChild('totals', $totalsBlock);
     $commentsBlock = $this->getLayout()->createBlock('adminhtml/sales_order_comments_view')->setEntity($this->getCreditmemo());
     $this->setChild('comments', $commentsBlock);
     $paymentInfoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_payment')->setPayment($this->getCreditmemo()->getOrder()->getPayment());
     $this->setChild('payment_info', $paymentInfoBlock);
     return parent::_prepareLayout();
 }
Esempio n. 10
0
 /**
  * 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();
 }
Esempio n. 11
0
 /**
  * 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());
     $this->setSource($this->getParentBlock()->getSource());
     $this->setCurrency($this->getParentBlock()->getOrder()->getOrderCurrency());
     foreach ($this->getParentBlock()->getOrderTotalbarData() as $v) {
         $this->addTotal($v[0], $v[1], $v[2]);
     }
     parent::_beforeToHtml();
 }
Esempio n. 12
0
 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();
 }
Esempio n. 13
0
 /**
  * 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();
 }
Esempio n. 14
0
 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();
 }
Esempio n. 15
0
 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();
 }
 protected function _beforeToHtml()
 {
     Mage_Adminhtml_Block_Sales_Order_Abstract::_beforeToHtml();
 }
Esempio n. 17
0
 protected function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
Esempio n. 18
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('sales/order/totalbar.phtml');
 }
Esempio n. 19
0
 /**
  * Initialize template
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('sales/order/view/items.phtml');
 }
Esempio n. 20
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('pagueveloz/boleto.phtml');
 }
Esempio n. 21
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('zendesk/order/tickets.phtml');
 }
Esempio n. 22
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('sales/order/view/info.phtml');
 }
Esempio n. 23
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('fraud/tab.phtml');
 }
 public function _prepareLayout()
 {
     return parent::_prepareLayout();
 }
Esempio n. 25
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('magentando/splitdelivery/items.phtml');
 }