本文整理汇总了PHP中Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法的具体用法?PHP Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout怎么用?PHP Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Sales_Order_Abstract
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Sales_Order_Abstract::_prepareLayout方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareLayout
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();
}
示例2: _prepareLayout
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();
}
示例3: _prepareLayout
/**
* 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();
}
示例4: _prepareLayout
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();
}
示例5: _prepareLayout
/**
* 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();
}
示例6: _prepareLayout
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();
}
示例7: _prepareLayout
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();
}
示例8: _prepareLayout
public function _prepareLayout()
{
return parent::_prepareLayout();
}
示例9: _prepareLayout
protected function _prepareLayout()
{
return parent::_prepareLayout();
}