Adding new Tab to Order View page not displaying Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Move “Add new” button in product tabImages are not displayingAdding button to Adminhtml Order View (guides followed not working)gettig error while add new tab in sale order view Wrong tab configurationTrying to add new custom tab at adminhtml_sales_order_viewExeption error when adding new custom Tab to Order View page in AdminAdding custom tab to sales_order pageForm is not displayed on panel admin Magento 2How to add custome tab in order page magento 2?Magento2 system.xml Adding Section To Existing Tab

How can I fade player when goes inside or outside of the area?

How to recreate this effect in Photoshop?

Antler Helmet: Can it work?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

Why is "Consequences inflicted." not a sentence?

How to bypass password on Windows XP account?

Is there a way in Ruby to make just any one out of many keyword arguments required?

Letter Boxed validator

What happens to sewage if there is no river near by?

IndentationError when pasting code in Python 3 interpreter mode

How can I make names more distinctive without making them longer?

Is there a concise way to say "all of the X, one of each"?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Is it possible to boil a liquid by just mixing many immiscible liquids together?

Should I call the interviewer directly, if HR aren't responding?

What are the pros and cons of Aerospike nosecones?

How to say 'striped' in Latin

How widely used is the term Treppenwitz? Is it something that most Germans know?

How do I stop a creek from eroding my steep embankment?

What causes the vertical darker bands in my photo?

What makes black pepper strong or mild?

When is phishing education going too far?

How to draw this diagram using TikZ package?

Why is black pepper both grey and black?



Adding new Tab to Order View page not displaying



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Move “Add new” button in product tabImages are not displayingAdding button to Adminhtml Order View (guides followed not working)gettig error while add new tab in sale order view Wrong tab configurationTrying to add new custom tab at adminhtml_sales_order_viewExeption error when adding new custom Tab to Order View page in AdminAdding custom tab to sales_order pageForm is not displayed on panel admin Magento 2How to add custome tab in order page magento 2?Magento2 system.xml Adding Section To Existing Tab



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Here is my config file:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<config>
<modules>
<MageWorx_OrdersEdit>
<version>2.0.3</version>
</MageWorx_OrdersEdit>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<MageWorx_OrdersEdit after="Mage_Adminhtml">MageWorx_OrdersEdit_Adminhtml</MageWorx_OrdersEdit>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<global>

<events>
<sales_convert_order_item_to_quote_item>
<observers>
<mageworx_ordersedit_convert_order_item_to_quote_item>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderItemToQuoteItem</method>
</mageworx_ordersedit_convert_order_item_to_quote_item>
</observers>
</sales_convert_order_item_to_quote_item>
<sales_convert_order_to_quote>
<observers>
<mageworx_ordersedit_convert_order_to_quote>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderToQuote</method>
</mageworx_ordersedit_convert_order_to_quote>
</observers>
</sales_convert_order_to_quote>
<sales_quote_collect_totals_after>
<observers>
<mageworx_ordersedit_quote_collect_totals_after>
<class>mageworx_ordersedit/observer</class>
<method>quoteCollectTotalsAfter</method>
</mageworx_ordersedit_quote_collect_totals_after>
</observers>
</sales_quote_collect_totals_after>
<adminhtml_sales_order_create_process_data>
<observers>
<mageworx_ordersedit_order_create_process_data>
<class>mageworx_ordersedit/observer</class>
<method>orderCreateProcessData</method>
</mageworx_ordersedit_order_create_process_data>
</observers>
</adminhtml_sales_order_create_process_data>
<core_collection_abstract_load_before>
<observers>
<amflags>
<type>disabled</type>
</amflags>
</observers>
</core_collection_abstract_load_before>
</events>

<blocks>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Block</class>
</mageworx_ordersedit>
<adminhtml>
<rewrite>
<sales_order_view>MageWorx_OrdersEdit_Block_Adminhtml_Sales_Order_View</sales_order_view>
</rewrite>
</adminhtml>
</blocks>

<models>
<sales_mysql4>
<rewrite>
<order_status_history_collection>MageWorx_OrdersEdit_Model_Resource_Order_Status_History_Collection</order_status_history_collection>
</rewrite>
</sales_mysql4>
<salesrule>
<rewrite>
<quote_discount>MageWorx_OrdersEdit_Model_SalesRule_Quote_Discount</quote_discount>
</rewrite>
</salesrule>
<payment>
<rewrite>
<method_ccsave>MageWorx_OrdersEdit_Model_Payment_Method_Ccsave</method_ccsave>
</rewrite>
</payment>
<paypal>
<rewrite>
<payflowpro>MageWorx_OrdersEdit_Model_Paypal_Payflowpro</payflowpro>
<direct>MageWorx_OrdersEdit_Model_Paypal_Direct</direct>
<api_nvp>MageWorx_OrdersEdit_Model_Paypal_Api_Nvp</api_nvp>
</rewrite>
</paypal>
<paygate>
<rewrite>
<authorizenet>MageWorx_OrdersEdit_Model_Paygate_Authorizenet</authorizenet>
</rewrite>
</paygate>
<sales>
<rewrite>
<order_payment>MageWorx_OrdersEdit_Model_Sales_Order_Payment</order_payment>
</rewrite>
</sales>
<ordertags>
<rewrite>
<observer>MageWorx_OrdersEdit_Model_AwOrdertags_Observer</observer>
</rewrite>
</ordertags>

<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Model</class>
<resourceModel>mageworx_ordersedit_resource</resourceModel>
</mageworx_ordersedit>

<mageworx_ordersedit_resource>
<class>MageWorx_OrdersEdit_Model_Resource</class>
<entities>
<upload_files>
<table>mageworx_ordersedit_upload_files</table>
</upload_files>
</entities>
</mageworx_ordersedit_resource>
</models>

<helpers>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Helper</class>
</mageworx_ordersedit>
</helpers>

<resources>
<mageworx_ordersedit_setup>
<setup>
<module>MageWorx_OrdersEdit</module>
<class>MageWorx_OrdersEdit_Model_Resource_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</mageworx_ordersedit_setup>
<mageworx_ordersedit_write>
<connection>
<use>core_write</use>
</connection>
</mageworx_ordersedit_write>
<mageworx_ordersedit_read>
<connection>
<use>core_read</use>
</connection>
</mageworx_ordersedit_read>
</resources>

<template>
<email>
<mageworx_ordersedit_email_order_comment_template translate="label" module="mageworx_ordersedit">
<label>Order Edit</label>
<file>mageworx/ordersedit/mageworx_order_edited.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_template>
<mageworx_ordersedit_email_order_comment_guest_template translate="label" module="mageworx_ordersedit">
<label>Order Edit for Guest</label>
<file>mageworx/ordersedit/mageworx_order_edited_guest.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_guest_template>
</email>
</template>

<sales>
<order_invoice>
<totals>
<mageworx_ordersedit>
<class>mageworx_ordersedit/sales_order_invoice_total</class>
<after>tax,grand_total</after>
</mageworx_ordersedit>
<subtotal>
<class>mageworx_ordersedit/sales_order_invoice_subtotal</class>
</subtotal>
<mageworx_ordersedit_shipping>
<class>mageworx_ordersedit/sales_order_invoice_shipping</class>
<after>shipping</after>
</mageworx_ordersedit_shipping>
</totals>
</order_invoice>
</sales>
</global>

<adminhtml>
<layout>
<updates>
<mageworx_ordersedit>
<file>mageworx_ordersedit.xml</file>
</mageworx_ordersedit>
</updates>
</layout>
<events>
<core_block_abstract_to_html_after>
<observers>
<mw_add_coupon_block>
<type>singleton</type>
<class>mageworx_ordersedit/observer</class>
<method>insertCouponBlock</method>
</mw_add_coupon_block>
</observers>
</core_block_abstract_to_html_after>
</events>
<translate>
<modules>
<MageWorx_OrdersEdit>
<files>
<default>MageWorx_OrdersEdit.csv</default>
</files>
</MageWorx_OrdersEdit>
</modules>
</translate>
</adminhtml>

<default>
<mageworx_ordersmanagement>
<ordersedit>
<enabled>1</enabled>
<enable_shipping_price_edition>1</enable_shipping_price_edition>
<show_thumbnails>1</show_thumbnails>
<thumbnail_height>50</thumbnail_height>
<send_update_email>0</send_update_email>
<hide_edit_button>1</hide_edit_button>
<show_all_states_in_history>0</show_all_states_in_history>
</ordersedit>
</mageworx_ordersmanagement>
</default>

</config>


Here is my layout.xml:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<layout>
<adminhtml_sales_order_view>

<reference name="avans_tabs">
<action method="addTab"><name>avans_tab</name><block>mageworx_ordersedit/adminhtml_order_view_tab_avans</block></action>
</reference>

</adminhtml_sales_order_view>

<mageworx_ordersedit_order_history>
<block type="mageworx_ordersedit/adminhtml_sales_order_history" name="order_history" template="mageworx/ordersedit/sales-order-view-history.phtml" output="toHtml"/>
</mageworx_ordersedit_order_history>

<adminhtml_mageworx_ordersedit_history_addcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_addcomment>

<adminhtml_mageworx_ordersedit_history_deletehistory>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_deletehistory>

<adminhtml_mageworx_ordersedit_history_saveeditcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_saveeditcomment>

<adminhtml_sales_order_invoice_new>
<reference name="invoice_totals">
<block type="adminhtml/sales_order_totals_item" name="ordersedit" template="mageworx/ordersedit/invoice_totals.phtml" />
</reference>
</adminhtml_sales_order_invoice_new>
</layout>


Here is my: /MageWorx/OrdersEdit/Block/Adminhtml/Order/View/Tab/Avans.php:



<?php
class MageWorx_OrdersEdit_Block_Adminhtml_Order_View_Tab_Avans
extends Mage_Adminhtml_Block_Template
implements Mage_Adminhtml_Block_Widget_Tab_Interface
{
protected $_chat = null;

protected function _construct()

parent::_construct();
$this->setTemplate('ordersedit/order/view/tab/avans.phtml');


public function getTabLabel()
return $this->__('Tab label');


public function getTabTitle()
return $this->__('Tab title');


public function canShowTab()
return true;


public function isHidden()
return false;


public function getOrder()
return Mage::registry('current_order');



Here is my: /app/design/adminhtml/default/default/template/mageworx/ordersedit/order/view/tab/avans.phtml:



<div class="entry-edit">
<div class="entry-edit-head">
<h4><?php echo $this->__('Hello its me!'); ?></h4>
</div>
<div class="fieldset fieldset-wide">
the content you want to show
</div>
</div>


I am trying to add new custom tab to the order view page in the admin panel but nothing appears.



Where is my mistake, can you please help me out?



Thanks in advance!










share|improve this question






















  • Make sure that you have echo $this->getChildHtml('avans_tabs') inside the template of adminhtml_sales_order_view.

    – Siarhey Uchukhlebau
    Aug 7 '16 at 11:28











  • Can you Please guide How we can create a form there that can upload an image to some directory. I have tried but when submit the form nothing happend

    – Xabby
    Mar 16 '17 at 12:00

















0















Here is my config file:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<config>
<modules>
<MageWorx_OrdersEdit>
<version>2.0.3</version>
</MageWorx_OrdersEdit>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<MageWorx_OrdersEdit after="Mage_Adminhtml">MageWorx_OrdersEdit_Adminhtml</MageWorx_OrdersEdit>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<global>

<events>
<sales_convert_order_item_to_quote_item>
<observers>
<mageworx_ordersedit_convert_order_item_to_quote_item>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderItemToQuoteItem</method>
</mageworx_ordersedit_convert_order_item_to_quote_item>
</observers>
</sales_convert_order_item_to_quote_item>
<sales_convert_order_to_quote>
<observers>
<mageworx_ordersedit_convert_order_to_quote>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderToQuote</method>
</mageworx_ordersedit_convert_order_to_quote>
</observers>
</sales_convert_order_to_quote>
<sales_quote_collect_totals_after>
<observers>
<mageworx_ordersedit_quote_collect_totals_after>
<class>mageworx_ordersedit/observer</class>
<method>quoteCollectTotalsAfter</method>
</mageworx_ordersedit_quote_collect_totals_after>
</observers>
</sales_quote_collect_totals_after>
<adminhtml_sales_order_create_process_data>
<observers>
<mageworx_ordersedit_order_create_process_data>
<class>mageworx_ordersedit/observer</class>
<method>orderCreateProcessData</method>
</mageworx_ordersedit_order_create_process_data>
</observers>
</adminhtml_sales_order_create_process_data>
<core_collection_abstract_load_before>
<observers>
<amflags>
<type>disabled</type>
</amflags>
</observers>
</core_collection_abstract_load_before>
</events>

<blocks>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Block</class>
</mageworx_ordersedit>
<adminhtml>
<rewrite>
<sales_order_view>MageWorx_OrdersEdit_Block_Adminhtml_Sales_Order_View</sales_order_view>
</rewrite>
</adminhtml>
</blocks>

<models>
<sales_mysql4>
<rewrite>
<order_status_history_collection>MageWorx_OrdersEdit_Model_Resource_Order_Status_History_Collection</order_status_history_collection>
</rewrite>
</sales_mysql4>
<salesrule>
<rewrite>
<quote_discount>MageWorx_OrdersEdit_Model_SalesRule_Quote_Discount</quote_discount>
</rewrite>
</salesrule>
<payment>
<rewrite>
<method_ccsave>MageWorx_OrdersEdit_Model_Payment_Method_Ccsave</method_ccsave>
</rewrite>
</payment>
<paypal>
<rewrite>
<payflowpro>MageWorx_OrdersEdit_Model_Paypal_Payflowpro</payflowpro>
<direct>MageWorx_OrdersEdit_Model_Paypal_Direct</direct>
<api_nvp>MageWorx_OrdersEdit_Model_Paypal_Api_Nvp</api_nvp>
</rewrite>
</paypal>
<paygate>
<rewrite>
<authorizenet>MageWorx_OrdersEdit_Model_Paygate_Authorizenet</authorizenet>
</rewrite>
</paygate>
<sales>
<rewrite>
<order_payment>MageWorx_OrdersEdit_Model_Sales_Order_Payment</order_payment>
</rewrite>
</sales>
<ordertags>
<rewrite>
<observer>MageWorx_OrdersEdit_Model_AwOrdertags_Observer</observer>
</rewrite>
</ordertags>

<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Model</class>
<resourceModel>mageworx_ordersedit_resource</resourceModel>
</mageworx_ordersedit>

<mageworx_ordersedit_resource>
<class>MageWorx_OrdersEdit_Model_Resource</class>
<entities>
<upload_files>
<table>mageworx_ordersedit_upload_files</table>
</upload_files>
</entities>
</mageworx_ordersedit_resource>
</models>

<helpers>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Helper</class>
</mageworx_ordersedit>
</helpers>

<resources>
<mageworx_ordersedit_setup>
<setup>
<module>MageWorx_OrdersEdit</module>
<class>MageWorx_OrdersEdit_Model_Resource_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</mageworx_ordersedit_setup>
<mageworx_ordersedit_write>
<connection>
<use>core_write</use>
</connection>
</mageworx_ordersedit_write>
<mageworx_ordersedit_read>
<connection>
<use>core_read</use>
</connection>
</mageworx_ordersedit_read>
</resources>

<template>
<email>
<mageworx_ordersedit_email_order_comment_template translate="label" module="mageworx_ordersedit">
<label>Order Edit</label>
<file>mageworx/ordersedit/mageworx_order_edited.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_template>
<mageworx_ordersedit_email_order_comment_guest_template translate="label" module="mageworx_ordersedit">
<label>Order Edit for Guest</label>
<file>mageworx/ordersedit/mageworx_order_edited_guest.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_guest_template>
</email>
</template>

<sales>
<order_invoice>
<totals>
<mageworx_ordersedit>
<class>mageworx_ordersedit/sales_order_invoice_total</class>
<after>tax,grand_total</after>
</mageworx_ordersedit>
<subtotal>
<class>mageworx_ordersedit/sales_order_invoice_subtotal</class>
</subtotal>
<mageworx_ordersedit_shipping>
<class>mageworx_ordersedit/sales_order_invoice_shipping</class>
<after>shipping</after>
</mageworx_ordersedit_shipping>
</totals>
</order_invoice>
</sales>
</global>

<adminhtml>
<layout>
<updates>
<mageworx_ordersedit>
<file>mageworx_ordersedit.xml</file>
</mageworx_ordersedit>
</updates>
</layout>
<events>
<core_block_abstract_to_html_after>
<observers>
<mw_add_coupon_block>
<type>singleton</type>
<class>mageworx_ordersedit/observer</class>
<method>insertCouponBlock</method>
</mw_add_coupon_block>
</observers>
</core_block_abstract_to_html_after>
</events>
<translate>
<modules>
<MageWorx_OrdersEdit>
<files>
<default>MageWorx_OrdersEdit.csv</default>
</files>
</MageWorx_OrdersEdit>
</modules>
</translate>
</adminhtml>

<default>
<mageworx_ordersmanagement>
<ordersedit>
<enabled>1</enabled>
<enable_shipping_price_edition>1</enable_shipping_price_edition>
<show_thumbnails>1</show_thumbnails>
<thumbnail_height>50</thumbnail_height>
<send_update_email>0</send_update_email>
<hide_edit_button>1</hide_edit_button>
<show_all_states_in_history>0</show_all_states_in_history>
</ordersedit>
</mageworx_ordersmanagement>
</default>

</config>


Here is my layout.xml:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<layout>
<adminhtml_sales_order_view>

<reference name="avans_tabs">
<action method="addTab"><name>avans_tab</name><block>mageworx_ordersedit/adminhtml_order_view_tab_avans</block></action>
</reference>

</adminhtml_sales_order_view>

<mageworx_ordersedit_order_history>
<block type="mageworx_ordersedit/adminhtml_sales_order_history" name="order_history" template="mageworx/ordersedit/sales-order-view-history.phtml" output="toHtml"/>
</mageworx_ordersedit_order_history>

<adminhtml_mageworx_ordersedit_history_addcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_addcomment>

<adminhtml_mageworx_ordersedit_history_deletehistory>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_deletehistory>

<adminhtml_mageworx_ordersedit_history_saveeditcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_saveeditcomment>

<adminhtml_sales_order_invoice_new>
<reference name="invoice_totals">
<block type="adminhtml/sales_order_totals_item" name="ordersedit" template="mageworx/ordersedit/invoice_totals.phtml" />
</reference>
</adminhtml_sales_order_invoice_new>
</layout>


Here is my: /MageWorx/OrdersEdit/Block/Adminhtml/Order/View/Tab/Avans.php:



<?php
class MageWorx_OrdersEdit_Block_Adminhtml_Order_View_Tab_Avans
extends Mage_Adminhtml_Block_Template
implements Mage_Adminhtml_Block_Widget_Tab_Interface
{
protected $_chat = null;

protected function _construct()

parent::_construct();
$this->setTemplate('ordersedit/order/view/tab/avans.phtml');


public function getTabLabel()
return $this->__('Tab label');


public function getTabTitle()
return $this->__('Tab title');


public function canShowTab()
return true;


public function isHidden()
return false;


public function getOrder()
return Mage::registry('current_order');



Here is my: /app/design/adminhtml/default/default/template/mageworx/ordersedit/order/view/tab/avans.phtml:



<div class="entry-edit">
<div class="entry-edit-head">
<h4><?php echo $this->__('Hello its me!'); ?></h4>
</div>
<div class="fieldset fieldset-wide">
the content you want to show
</div>
</div>


I am trying to add new custom tab to the order view page in the admin panel but nothing appears.



Where is my mistake, can you please help me out?



Thanks in advance!










share|improve this question






















  • Make sure that you have echo $this->getChildHtml('avans_tabs') inside the template of adminhtml_sales_order_view.

    – Siarhey Uchukhlebau
    Aug 7 '16 at 11:28











  • Can you Please guide How we can create a form there that can upload an image to some directory. I have tried but when submit the form nothing happend

    – Xabby
    Mar 16 '17 at 12:00













0












0








0








Here is my config file:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<config>
<modules>
<MageWorx_OrdersEdit>
<version>2.0.3</version>
</MageWorx_OrdersEdit>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<MageWorx_OrdersEdit after="Mage_Adminhtml">MageWorx_OrdersEdit_Adminhtml</MageWorx_OrdersEdit>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<global>

<events>
<sales_convert_order_item_to_quote_item>
<observers>
<mageworx_ordersedit_convert_order_item_to_quote_item>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderItemToQuoteItem</method>
</mageworx_ordersedit_convert_order_item_to_quote_item>
</observers>
</sales_convert_order_item_to_quote_item>
<sales_convert_order_to_quote>
<observers>
<mageworx_ordersedit_convert_order_to_quote>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderToQuote</method>
</mageworx_ordersedit_convert_order_to_quote>
</observers>
</sales_convert_order_to_quote>
<sales_quote_collect_totals_after>
<observers>
<mageworx_ordersedit_quote_collect_totals_after>
<class>mageworx_ordersedit/observer</class>
<method>quoteCollectTotalsAfter</method>
</mageworx_ordersedit_quote_collect_totals_after>
</observers>
</sales_quote_collect_totals_after>
<adminhtml_sales_order_create_process_data>
<observers>
<mageworx_ordersedit_order_create_process_data>
<class>mageworx_ordersedit/observer</class>
<method>orderCreateProcessData</method>
</mageworx_ordersedit_order_create_process_data>
</observers>
</adminhtml_sales_order_create_process_data>
<core_collection_abstract_load_before>
<observers>
<amflags>
<type>disabled</type>
</amflags>
</observers>
</core_collection_abstract_load_before>
</events>

<blocks>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Block</class>
</mageworx_ordersedit>
<adminhtml>
<rewrite>
<sales_order_view>MageWorx_OrdersEdit_Block_Adminhtml_Sales_Order_View</sales_order_view>
</rewrite>
</adminhtml>
</blocks>

<models>
<sales_mysql4>
<rewrite>
<order_status_history_collection>MageWorx_OrdersEdit_Model_Resource_Order_Status_History_Collection</order_status_history_collection>
</rewrite>
</sales_mysql4>
<salesrule>
<rewrite>
<quote_discount>MageWorx_OrdersEdit_Model_SalesRule_Quote_Discount</quote_discount>
</rewrite>
</salesrule>
<payment>
<rewrite>
<method_ccsave>MageWorx_OrdersEdit_Model_Payment_Method_Ccsave</method_ccsave>
</rewrite>
</payment>
<paypal>
<rewrite>
<payflowpro>MageWorx_OrdersEdit_Model_Paypal_Payflowpro</payflowpro>
<direct>MageWorx_OrdersEdit_Model_Paypal_Direct</direct>
<api_nvp>MageWorx_OrdersEdit_Model_Paypal_Api_Nvp</api_nvp>
</rewrite>
</paypal>
<paygate>
<rewrite>
<authorizenet>MageWorx_OrdersEdit_Model_Paygate_Authorizenet</authorizenet>
</rewrite>
</paygate>
<sales>
<rewrite>
<order_payment>MageWorx_OrdersEdit_Model_Sales_Order_Payment</order_payment>
</rewrite>
</sales>
<ordertags>
<rewrite>
<observer>MageWorx_OrdersEdit_Model_AwOrdertags_Observer</observer>
</rewrite>
</ordertags>

<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Model</class>
<resourceModel>mageworx_ordersedit_resource</resourceModel>
</mageworx_ordersedit>

<mageworx_ordersedit_resource>
<class>MageWorx_OrdersEdit_Model_Resource</class>
<entities>
<upload_files>
<table>mageworx_ordersedit_upload_files</table>
</upload_files>
</entities>
</mageworx_ordersedit_resource>
</models>

<helpers>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Helper</class>
</mageworx_ordersedit>
</helpers>

<resources>
<mageworx_ordersedit_setup>
<setup>
<module>MageWorx_OrdersEdit</module>
<class>MageWorx_OrdersEdit_Model_Resource_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</mageworx_ordersedit_setup>
<mageworx_ordersedit_write>
<connection>
<use>core_write</use>
</connection>
</mageworx_ordersedit_write>
<mageworx_ordersedit_read>
<connection>
<use>core_read</use>
</connection>
</mageworx_ordersedit_read>
</resources>

<template>
<email>
<mageworx_ordersedit_email_order_comment_template translate="label" module="mageworx_ordersedit">
<label>Order Edit</label>
<file>mageworx/ordersedit/mageworx_order_edited.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_template>
<mageworx_ordersedit_email_order_comment_guest_template translate="label" module="mageworx_ordersedit">
<label>Order Edit for Guest</label>
<file>mageworx/ordersedit/mageworx_order_edited_guest.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_guest_template>
</email>
</template>

<sales>
<order_invoice>
<totals>
<mageworx_ordersedit>
<class>mageworx_ordersedit/sales_order_invoice_total</class>
<after>tax,grand_total</after>
</mageworx_ordersedit>
<subtotal>
<class>mageworx_ordersedit/sales_order_invoice_subtotal</class>
</subtotal>
<mageworx_ordersedit_shipping>
<class>mageworx_ordersedit/sales_order_invoice_shipping</class>
<after>shipping</after>
</mageworx_ordersedit_shipping>
</totals>
</order_invoice>
</sales>
</global>

<adminhtml>
<layout>
<updates>
<mageworx_ordersedit>
<file>mageworx_ordersedit.xml</file>
</mageworx_ordersedit>
</updates>
</layout>
<events>
<core_block_abstract_to_html_after>
<observers>
<mw_add_coupon_block>
<type>singleton</type>
<class>mageworx_ordersedit/observer</class>
<method>insertCouponBlock</method>
</mw_add_coupon_block>
</observers>
</core_block_abstract_to_html_after>
</events>
<translate>
<modules>
<MageWorx_OrdersEdit>
<files>
<default>MageWorx_OrdersEdit.csv</default>
</files>
</MageWorx_OrdersEdit>
</modules>
</translate>
</adminhtml>

<default>
<mageworx_ordersmanagement>
<ordersedit>
<enabled>1</enabled>
<enable_shipping_price_edition>1</enable_shipping_price_edition>
<show_thumbnails>1</show_thumbnails>
<thumbnail_height>50</thumbnail_height>
<send_update_email>0</send_update_email>
<hide_edit_button>1</hide_edit_button>
<show_all_states_in_history>0</show_all_states_in_history>
</ordersedit>
</mageworx_ordersmanagement>
</default>

</config>


Here is my layout.xml:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<layout>
<adminhtml_sales_order_view>

<reference name="avans_tabs">
<action method="addTab"><name>avans_tab</name><block>mageworx_ordersedit/adminhtml_order_view_tab_avans</block></action>
</reference>

</adminhtml_sales_order_view>

<mageworx_ordersedit_order_history>
<block type="mageworx_ordersedit/adminhtml_sales_order_history" name="order_history" template="mageworx/ordersedit/sales-order-view-history.phtml" output="toHtml"/>
</mageworx_ordersedit_order_history>

<adminhtml_mageworx_ordersedit_history_addcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_addcomment>

<adminhtml_mageworx_ordersedit_history_deletehistory>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_deletehistory>

<adminhtml_mageworx_ordersedit_history_saveeditcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_saveeditcomment>

<adminhtml_sales_order_invoice_new>
<reference name="invoice_totals">
<block type="adminhtml/sales_order_totals_item" name="ordersedit" template="mageworx/ordersedit/invoice_totals.phtml" />
</reference>
</adminhtml_sales_order_invoice_new>
</layout>


Here is my: /MageWorx/OrdersEdit/Block/Adminhtml/Order/View/Tab/Avans.php:



<?php
class MageWorx_OrdersEdit_Block_Adminhtml_Order_View_Tab_Avans
extends Mage_Adminhtml_Block_Template
implements Mage_Adminhtml_Block_Widget_Tab_Interface
{
protected $_chat = null;

protected function _construct()

parent::_construct();
$this->setTemplate('ordersedit/order/view/tab/avans.phtml');


public function getTabLabel()
return $this->__('Tab label');


public function getTabTitle()
return $this->__('Tab title');


public function canShowTab()
return true;


public function isHidden()
return false;


public function getOrder()
return Mage::registry('current_order');



Here is my: /app/design/adminhtml/default/default/template/mageworx/ordersedit/order/view/tab/avans.phtml:



<div class="entry-edit">
<div class="entry-edit-head">
<h4><?php echo $this->__('Hello its me!'); ?></h4>
</div>
<div class="fieldset fieldset-wide">
the content you want to show
</div>
</div>


I am trying to add new custom tab to the order view page in the admin panel but nothing appears.



Where is my mistake, can you please help me out?



Thanks in advance!










share|improve this question














Here is my config file:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<config>
<modules>
<MageWorx_OrdersEdit>
<version>2.0.3</version>
</MageWorx_OrdersEdit>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<MageWorx_OrdersEdit after="Mage_Adminhtml">MageWorx_OrdersEdit_Adminhtml</MageWorx_OrdersEdit>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<global>

<events>
<sales_convert_order_item_to_quote_item>
<observers>
<mageworx_ordersedit_convert_order_item_to_quote_item>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderItemToQuoteItem</method>
</mageworx_ordersedit_convert_order_item_to_quote_item>
</observers>
</sales_convert_order_item_to_quote_item>
<sales_convert_order_to_quote>
<observers>
<mageworx_ordersedit_convert_order_to_quote>
<class>mageworx_ordersedit/observer</class>
<method>convertOrderToQuote</method>
</mageworx_ordersedit_convert_order_to_quote>
</observers>
</sales_convert_order_to_quote>
<sales_quote_collect_totals_after>
<observers>
<mageworx_ordersedit_quote_collect_totals_after>
<class>mageworx_ordersedit/observer</class>
<method>quoteCollectTotalsAfter</method>
</mageworx_ordersedit_quote_collect_totals_after>
</observers>
</sales_quote_collect_totals_after>
<adminhtml_sales_order_create_process_data>
<observers>
<mageworx_ordersedit_order_create_process_data>
<class>mageworx_ordersedit/observer</class>
<method>orderCreateProcessData</method>
</mageworx_ordersedit_order_create_process_data>
</observers>
</adminhtml_sales_order_create_process_data>
<core_collection_abstract_load_before>
<observers>
<amflags>
<type>disabled</type>
</amflags>
</observers>
</core_collection_abstract_load_before>
</events>

<blocks>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Block</class>
</mageworx_ordersedit>
<adminhtml>
<rewrite>
<sales_order_view>MageWorx_OrdersEdit_Block_Adminhtml_Sales_Order_View</sales_order_view>
</rewrite>
</adminhtml>
</blocks>

<models>
<sales_mysql4>
<rewrite>
<order_status_history_collection>MageWorx_OrdersEdit_Model_Resource_Order_Status_History_Collection</order_status_history_collection>
</rewrite>
</sales_mysql4>
<salesrule>
<rewrite>
<quote_discount>MageWorx_OrdersEdit_Model_SalesRule_Quote_Discount</quote_discount>
</rewrite>
</salesrule>
<payment>
<rewrite>
<method_ccsave>MageWorx_OrdersEdit_Model_Payment_Method_Ccsave</method_ccsave>
</rewrite>
</payment>
<paypal>
<rewrite>
<payflowpro>MageWorx_OrdersEdit_Model_Paypal_Payflowpro</payflowpro>
<direct>MageWorx_OrdersEdit_Model_Paypal_Direct</direct>
<api_nvp>MageWorx_OrdersEdit_Model_Paypal_Api_Nvp</api_nvp>
</rewrite>
</paypal>
<paygate>
<rewrite>
<authorizenet>MageWorx_OrdersEdit_Model_Paygate_Authorizenet</authorizenet>
</rewrite>
</paygate>
<sales>
<rewrite>
<order_payment>MageWorx_OrdersEdit_Model_Sales_Order_Payment</order_payment>
</rewrite>
</sales>
<ordertags>
<rewrite>
<observer>MageWorx_OrdersEdit_Model_AwOrdertags_Observer</observer>
</rewrite>
</ordertags>

<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Model</class>
<resourceModel>mageworx_ordersedit_resource</resourceModel>
</mageworx_ordersedit>

<mageworx_ordersedit_resource>
<class>MageWorx_OrdersEdit_Model_Resource</class>
<entities>
<upload_files>
<table>mageworx_ordersedit_upload_files</table>
</upload_files>
</entities>
</mageworx_ordersedit_resource>
</models>

<helpers>
<mageworx_ordersedit>
<class>MageWorx_OrdersEdit_Helper</class>
</mageworx_ordersedit>
</helpers>

<resources>
<mageworx_ordersedit_setup>
<setup>
<module>MageWorx_OrdersEdit</module>
<class>MageWorx_OrdersEdit_Model_Resource_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</mageworx_ordersedit_setup>
<mageworx_ordersedit_write>
<connection>
<use>core_write</use>
</connection>
</mageworx_ordersedit_write>
<mageworx_ordersedit_read>
<connection>
<use>core_read</use>
</connection>
</mageworx_ordersedit_read>
</resources>

<template>
<email>
<mageworx_ordersedit_email_order_comment_template translate="label" module="mageworx_ordersedit">
<label>Order Edit</label>
<file>mageworx/ordersedit/mageworx_order_edited.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_template>
<mageworx_ordersedit_email_order_comment_guest_template translate="label" module="mageworx_ordersedit">
<label>Order Edit for Guest</label>
<file>mageworx/ordersedit/mageworx_order_edited_guest.html</file>
<type>html</type>
</mageworx_ordersedit_email_order_comment_guest_template>
</email>
</template>

<sales>
<order_invoice>
<totals>
<mageworx_ordersedit>
<class>mageworx_ordersedit/sales_order_invoice_total</class>
<after>tax,grand_total</after>
</mageworx_ordersedit>
<subtotal>
<class>mageworx_ordersedit/sales_order_invoice_subtotal</class>
</subtotal>
<mageworx_ordersedit_shipping>
<class>mageworx_ordersedit/sales_order_invoice_shipping</class>
<after>shipping</after>
</mageworx_ordersedit_shipping>
</totals>
</order_invoice>
</sales>
</global>

<adminhtml>
<layout>
<updates>
<mageworx_ordersedit>
<file>mageworx_ordersedit.xml</file>
</mageworx_ordersedit>
</updates>
</layout>
<events>
<core_block_abstract_to_html_after>
<observers>
<mw_add_coupon_block>
<type>singleton</type>
<class>mageworx_ordersedit/observer</class>
<method>insertCouponBlock</method>
</mw_add_coupon_block>
</observers>
</core_block_abstract_to_html_after>
</events>
<translate>
<modules>
<MageWorx_OrdersEdit>
<files>
<default>MageWorx_OrdersEdit.csv</default>
</files>
</MageWorx_OrdersEdit>
</modules>
</translate>
</adminhtml>

<default>
<mageworx_ordersmanagement>
<ordersedit>
<enabled>1</enabled>
<enable_shipping_price_edition>1</enable_shipping_price_edition>
<show_thumbnails>1</show_thumbnails>
<thumbnail_height>50</thumbnail_height>
<send_update_email>0</send_update_email>
<hide_edit_button>1</hide_edit_button>
<show_all_states_in_history>0</show_all_states_in_history>
</ordersedit>
</mageworx_ordersmanagement>
</default>

</config>


Here is my layout.xml:



<?xml version="1.0"?>
<!--
/**
* MageWorx
* Admin Order Editor extension
*
* @category MageWorx
* @package MageWorx_OrdersEdit
* @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/)
*/
-->
<layout>
<adminhtml_sales_order_view>

<reference name="avans_tabs">
<action method="addTab"><name>avans_tab</name><block>mageworx_ordersedit/adminhtml_order_view_tab_avans</block></action>
</reference>

</adminhtml_sales_order_view>

<mageworx_ordersedit_order_history>
<block type="mageworx_ordersedit/adminhtml_sales_order_history" name="order_history" template="mageworx/ordersedit/sales-order-view-history.phtml" output="toHtml"/>
</mageworx_ordersedit_order_history>

<adminhtml_mageworx_ordersedit_history_addcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_addcomment>

<adminhtml_mageworx_ordersedit_history_deletehistory>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_deletehistory>

<adminhtml_mageworx_ordersedit_history_saveeditcomment>
<update handle="mageworx_ordersedit_order_history" />
</adminhtml_mageworx_ordersedit_history_saveeditcomment>

<adminhtml_sales_order_invoice_new>
<reference name="invoice_totals">
<block type="adminhtml/sales_order_totals_item" name="ordersedit" template="mageworx/ordersedit/invoice_totals.phtml" />
</reference>
</adminhtml_sales_order_invoice_new>
</layout>


Here is my: /MageWorx/OrdersEdit/Block/Adminhtml/Order/View/Tab/Avans.php:



<?php
class MageWorx_OrdersEdit_Block_Adminhtml_Order_View_Tab_Avans
extends Mage_Adminhtml_Block_Template
implements Mage_Adminhtml_Block_Widget_Tab_Interface
{
protected $_chat = null;

protected function _construct()

parent::_construct();
$this->setTemplate('ordersedit/order/view/tab/avans.phtml');


public function getTabLabel()
return $this->__('Tab label');


public function getTabTitle()
return $this->__('Tab title');


public function canShowTab()
return true;


public function isHidden()
return false;


public function getOrder()
return Mage::registry('current_order');



Here is my: /app/design/adminhtml/default/default/template/mageworx/ordersedit/order/view/tab/avans.phtml:



<div class="entry-edit">
<div class="entry-edit-head">
<h4><?php echo $this->__('Hello its me!'); ?></h4>
</div>
<div class="fieldset fieldset-wide">
the content you want to show
</div>
</div>


I am trying to add new custom tab to the order view page in the admin panel but nothing appears.



Where is my mistake, can you please help me out?



Thanks in advance!







adminhtml






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 1 '16 at 14:23









Venelin VasilevVenelin Vasilev

59232554




59232554












  • Make sure that you have echo $this->getChildHtml('avans_tabs') inside the template of adminhtml_sales_order_view.

    – Siarhey Uchukhlebau
    Aug 7 '16 at 11:28











  • Can you Please guide How we can create a form there that can upload an image to some directory. I have tried but when submit the form nothing happend

    – Xabby
    Mar 16 '17 at 12:00

















  • Make sure that you have echo $this->getChildHtml('avans_tabs') inside the template of adminhtml_sales_order_view.

    – Siarhey Uchukhlebau
    Aug 7 '16 at 11:28











  • Can you Please guide How we can create a form there that can upload an image to some directory. I have tried but when submit the form nothing happend

    – Xabby
    Mar 16 '17 at 12:00
















Make sure that you have echo $this->getChildHtml('avans_tabs') inside the template of adminhtml_sales_order_view.

– Siarhey Uchukhlebau
Aug 7 '16 at 11:28





Make sure that you have echo $this->getChildHtml('avans_tabs') inside the template of adminhtml_sales_order_view.

– Siarhey Uchukhlebau
Aug 7 '16 at 11:28













Can you Please guide How we can create a form there that can upload an image to some directory. I have tried but when submit the form nothing happend

– Xabby
Mar 16 '17 at 12:00





Can you Please guide How we can create a form there that can upload an image to some directory. I have tried but when submit the form nothing happend

– Xabby
Mar 16 '17 at 12:00










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f128429%2fadding-new-tab-to-order-view-page-not-displaying%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f128429%2fadding-new-tab-to-order-view-page-not-displaying%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

Category menu linking direct to productHow to create an new observer on the event catalog_product_save_beforePHP else: statements in addtocart.phtml - Adding conditions to the Add To Cart button on product pageAdd template to custom adminhtml buttonAdd category title to product view pageEdit layered navigation filter titles in Magento 1.9.2Have category page main menu based on current categoryProduct collection displaying wrong categoryHow Can I Customize Magento Default URL (Product URL and Category URL)Programatically add cross sell products to all products within a certain categoryHow to create custom link for category?Creating Custom 'Buy Now' button with Custom buy now link