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;
}
Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.
magento2 order-grid
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.
add a comment |
Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.
magento2 order-grid
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
add a comment |
Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.
magento2 order-grid
Hello guys I need your help to know how to add new column "tracking/mobile number" to sales grid.
magento2 order-grid
magento2 order-grid
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
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
|
show 1 more comment
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
|
show 1 more comment
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
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
|
show 1 more comment
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
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
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
|
show 1 more comment
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
|
show 1 more comment
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Try with this i haven't checked this but please try.
– Naveenbos
May 9 '17 at 6:37