本文整理汇总了PHP中Mage_Adminhtml_Block_Sales_Order_Abstract类的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Sales_Order_Abstract类的具体用法?PHP Mage_Adminhtml_Block_Sales_Order_Abstract怎么用?PHP Mage_Adminhtml_Block_Sales_Order_Abstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mage_Adminhtml_Block_Sales_Order_Abstract类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _beforeToHtml
protected function _beforeToHtml()
{
Mage_Adminhtml_Block_Sales_Order_Abstract::_beforeToHtml();
}
示例2: _construct
protected function _construct()
{
parent::_construct();
if ($this->getOrder()->getState() != Mage_Sales_Model_Order::STATE_CANCELED) {
$this->setTemplate('sales/order/view/tab/Planning.phtml');
}
}
示例3: _toHtml
protected function _toHtml()
{
if ($this->helper('smasoft_oneclickorder')->isDisplayPhoneInSalesOrders() && $this->getPhoneNumber()) {
return parent::_toHtml();
}
return '';
}
示例4: _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();
}
示例5: _beforeToHtml
/**
* 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();
}
示例6: _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();
}
示例7: _toHtml
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();
}
示例8: _beforeToHtml
/**
* 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();
}
示例9: _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();
}
示例10: _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());
$this->setSource($this->getParentBlock()->getSource());
$this->setCurrency($this->getParentBlock()->getOrder()->getOrderCurrency());
foreach ($this->getParentBlock()->getOrderTotalData() as $k => $v) {
$this->setDataUsingMethod($k, $v);
}
parent::_beforeToHtml();
}
示例11: _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();
}
示例12: _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();
}
示例13: _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();
}
示例14: _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();
}
示例15: _prepareLayout
protected function _prepareLayout()
{
return parent::_prepareLayout();
}