Magento 2 Add new column tracking/mobile number to sales grid





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







0















Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.










share|improve this question
















bumped to the homepage by Community 21 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Try with this i haven't checked this but please try.

    – Naveenbos
    May 9 '17 at 6:37


















0















Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.










share|improve this question
















bumped to the homepage by Community 21 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Try with this i haven't checked this but please try.

    – Naveenbos
    May 9 '17 at 6:37














0












0








0








Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.










share|improve this question
















Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.







magento2 order-grid






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 9 '17 at 5:47









Sejal Shah

1,086621




1,086621










asked May 9 '17 at 5:21









MagEGYMagEGY

104113




104113





bumped to the homepage by Community 21 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 21 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Try with this i haven't checked this but please try.

    – Naveenbos
    May 9 '17 at 6:37



















  • Try with this i haven't checked this but please try.

    – Naveenbos
    May 9 '17 at 6:37

















Try with this i haven't checked this but please try.

– Naveenbos
May 9 '17 at 6:37





Try with this i haven't checked this but please try.

– Naveenbos
May 9 '17 at 6:37










1 Answer
1






active

oldest

votes


















0














if this mobile column is already available in sales_order_grid table then just copy this file into you custom module MagentoSalesviewadminhtmlui_componentsales_order_grid.xml to VendorModuleviewadminhtmlui_componentsales_order_grid.xml



Now inside VendorModuleviewadminhtmlui_componentsales_order_grid.xml file add the below line.



<column name="mobile" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Mobile</item>
</item>
</argument>
</column>


the above code will come under-



<columns name="sales_order_columns">
....
.....
</columns>


mobile is column name in you database






share|improve this answer
























  • Hi Mohammad, i tried this its show mobile field but empty. Do you have any idea how to call it? Thank you

    – MagEGY
    May 9 '17 at 13:43











  • did you check if mobile field is available in sales_order_grid table.

    – Mohammad Mujassam
    May 9 '17 at 15:15











  • No its not available in sales_order_grid table i found it inside sales_order_address table under telephone name So the question now how to tell xml file call data from sales_order_address

    – MagEGY
    May 9 '17 at 21:07











  • Joining two tables just for one field is not good idea instead add new column in sales_order_grid and insert the data in that column after order is placed. still if you want to join you can refer this question. magento.stackexchange.com/questions/123198/…

    – Mohammad Mujassam
    May 10 '17 at 4:42













  • I dont prefers this way also but i cant do it without joining. do you have any idea how to insert column from sales_order_address and sales_shipment_track to sales_order_grid to be able to call it inside order grid ?

    – MagEGY
    May 10 '17 at 21:39












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%2f173541%2fmagento-2-add-new-column-tracking-mobile-number-to-sales-grid%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














if this mobile column is already available in sales_order_grid table then just copy this file into you custom module MagentoSalesviewadminhtmlui_componentsales_order_grid.xml to VendorModuleviewadminhtmlui_componentsales_order_grid.xml



Now inside VendorModuleviewadminhtmlui_componentsales_order_grid.xml file add the below line.



<column name="mobile" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Mobile</item>
</item>
</argument>
</column>


the above code will come under-



<columns name="sales_order_columns">
....
.....
</columns>


mobile is column name in you database






share|improve this answer
























  • Hi Mohammad, i tried this its show mobile field but empty. Do you have any idea how to call it? Thank you

    – MagEGY
    May 9 '17 at 13:43











  • did you check if mobile field is available in sales_order_grid table.

    – Mohammad Mujassam
    May 9 '17 at 15:15











  • No its not available in sales_order_grid table i found it inside sales_order_address table under telephone name So the question now how to tell xml file call data from sales_order_address

    – MagEGY
    May 9 '17 at 21:07











  • Joining two tables just for one field is not good idea instead add new column in sales_order_grid and insert the data in that column after order is placed. still if you want to join you can refer this question. magento.stackexchange.com/questions/123198/…

    – Mohammad Mujassam
    May 10 '17 at 4:42













  • I dont prefers this way also but i cant do it without joining. do you have any idea how to insert column from sales_order_address and sales_shipment_track to sales_order_grid to be able to call it inside order grid ?

    – MagEGY
    May 10 '17 at 21:39
















0














if this mobile column is already available in sales_order_grid table then just copy this file into you custom module MagentoSalesviewadminhtmlui_componentsales_order_grid.xml to VendorModuleviewadminhtmlui_componentsales_order_grid.xml



Now inside VendorModuleviewadminhtmlui_componentsales_order_grid.xml file add the below line.



<column name="mobile" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Mobile</item>
</item>
</argument>
</column>


the above code will come under-



<columns name="sales_order_columns">
....
.....
</columns>


mobile is column name in you database






share|improve this answer
























  • Hi Mohammad, i tried this its show mobile field but empty. Do you have any idea how to call it? Thank you

    – MagEGY
    May 9 '17 at 13:43











  • did you check if mobile field is available in sales_order_grid table.

    – Mohammad Mujassam
    May 9 '17 at 15:15











  • No its not available in sales_order_grid table i found it inside sales_order_address table under telephone name So the question now how to tell xml file call data from sales_order_address

    – MagEGY
    May 9 '17 at 21:07











  • Joining two tables just for one field is not good idea instead add new column in sales_order_grid and insert the data in that column after order is placed. still if you want to join you can refer this question. magento.stackexchange.com/questions/123198/…

    – Mohammad Mujassam
    May 10 '17 at 4:42













  • I dont prefers this way also but i cant do it without joining. do you have any idea how to insert column from sales_order_address and sales_shipment_track to sales_order_grid to be able to call it inside order grid ?

    – MagEGY
    May 10 '17 at 21:39














0












0








0







if this mobile column is already available in sales_order_grid table then just copy this file into you custom module MagentoSalesviewadminhtmlui_componentsales_order_grid.xml to VendorModuleviewadminhtmlui_componentsales_order_grid.xml



Now inside VendorModuleviewadminhtmlui_componentsales_order_grid.xml file add the below line.



<column name="mobile" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Mobile</item>
</item>
</argument>
</column>


the above code will come under-



<columns name="sales_order_columns">
....
.....
</columns>


mobile is column name in you database






share|improve this answer













if this mobile column is already available in sales_order_grid table then just copy this file into you custom module MagentoSalesviewadminhtmlui_componentsales_order_grid.xml to VendorModuleviewadminhtmlui_componentsales_order_grid.xml



Now inside VendorModuleviewadminhtmlui_componentsales_order_grid.xml file add the below line.



<column name="mobile" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Mobile</item>
</item>
</argument>
</column>


the above code will come under-



<columns name="sales_order_columns">
....
.....
</columns>


mobile is column name in you database







share|improve this answer












share|improve this answer



share|improve this answer










answered May 9 '17 at 7:10









Mohammad MujassamMohammad Mujassam

1,2121327




1,2121327













  • Hi Mohammad, i tried this its show mobile field but empty. Do you have any idea how to call it? Thank you

    – MagEGY
    May 9 '17 at 13:43











  • did you check if mobile field is available in sales_order_grid table.

    – Mohammad Mujassam
    May 9 '17 at 15:15











  • No its not available in sales_order_grid table i found it inside sales_order_address table under telephone name So the question now how to tell xml file call data from sales_order_address

    – MagEGY
    May 9 '17 at 21:07











  • Joining two tables just for one field is not good idea instead add new column in sales_order_grid and insert the data in that column after order is placed. still if you want to join you can refer this question. magento.stackexchange.com/questions/123198/…

    – Mohammad Mujassam
    May 10 '17 at 4:42













  • I dont prefers this way also but i cant do it without joining. do you have any idea how to insert column from sales_order_address and sales_shipment_track to sales_order_grid to be able to call it inside order grid ?

    – MagEGY
    May 10 '17 at 21:39



















  • Hi Mohammad, i tried this its show mobile field but empty. Do you have any idea how to call it? Thank you

    – MagEGY
    May 9 '17 at 13:43











  • did you check if mobile field is available in sales_order_grid table.

    – Mohammad Mujassam
    May 9 '17 at 15:15











  • No its not available in sales_order_grid table i found it inside sales_order_address table under telephone name So the question now how to tell xml file call data from sales_order_address

    – MagEGY
    May 9 '17 at 21:07











  • Joining two tables just for one field is not good idea instead add new column in sales_order_grid and insert the data in that column after order is placed. still if you want to join you can refer this question. magento.stackexchange.com/questions/123198/…

    – Mohammad Mujassam
    May 10 '17 at 4:42













  • I dont prefers this way also but i cant do it without joining. do you have any idea how to insert column from sales_order_address and sales_shipment_track to sales_order_grid to be able to call it inside order grid ?

    – MagEGY
    May 10 '17 at 21:39

















Hi Mohammad, i tried this its show mobile field but empty. Do you have any idea how to call it? Thank you

– MagEGY
May 9 '17 at 13:43





Hi Mohammad, i tried this its show mobile field but empty. Do you have any idea how to call it? Thank you

– MagEGY
May 9 '17 at 13:43













did you check if mobile field is available in sales_order_grid table.

– Mohammad Mujassam
May 9 '17 at 15:15





did you check if mobile field is available in sales_order_grid table.

– Mohammad Mujassam
May 9 '17 at 15:15













No its not available in sales_order_grid table i found it inside sales_order_address table under telephone name So the question now how to tell xml file call data from sales_order_address

– MagEGY
May 9 '17 at 21:07





No its not available in sales_order_grid table i found it inside sales_order_address table under telephone name So the question now how to tell xml file call data from sales_order_address

– MagEGY
May 9 '17 at 21:07













Joining two tables just for one field is not good idea instead add new column in sales_order_grid and insert the data in that column after order is placed. still if you want to join you can refer this question. magento.stackexchange.com/questions/123198/…

– Mohammad Mujassam
May 10 '17 at 4:42







Joining two tables just for one field is not good idea instead add new column in sales_order_grid and insert the data in that column after order is placed. still if you want to join you can refer this question. magento.stackexchange.com/questions/123198/…

– Mohammad Mujassam
May 10 '17 at 4:42















I dont prefers this way also but i cant do it without joining. do you have any idea how to insert column from sales_order_address and sales_shipment_track to sales_order_grid to be able to call it inside order grid ?

– MagEGY
May 10 '17 at 21:39





I dont prefers this way also but i cant do it without joining. do you have any idea how to insert column from sales_order_address and sales_shipment_track to sales_order_grid to be able to call it inside order grid ?

– MagEGY
May 10 '17 at 21:39


















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%2f173541%2fmagento-2-add-new-column-tracking-mobile-number-to-sales-grid%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

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto