Get custom customer address attribute on email Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Create a sortable and filterable custom attribute to stand-alone entityJoin Customer Address custom attribute to Order Address CollectionHow to add a customer custom-attribute in the customer address edit form?Magento 2.1: Not add table into databasesoap v2 for custom customer_address attributeCustomer custom address attribute not save in Magento2I have created an extension to show Customer Company Name in Order grid. But when creating new order, order is not showing in order gridSave or Update custom customer address attribute dataSet custom address attribute value programmaticallyMagento 2 How to upgrade existing custom customer address attribute?
If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?
Why is a lens darker than other ones when applying the same settings?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Google .dev domain strangely redirects to https
Is openssl rand command cryptographically secure?
Universal covering space of the real projective line?
How to write capital alpha?
Is CEO the "profession" with the most psychopaths?
Select every other edge (they share a common vertex)
Trying to understand entropy as a novice in thermodynamics
How to change the tick of the color bar legend to black
What is the difference between CTSS and ITS?
The test team as an enemy of development? And how can this be avoided?
How does light 'choose' between wave and particle behaviour?
Is there hard evidence that the grant peer review system performs significantly better than random?
What are the main differences between Stargate SG-1 cuts?
Why is it faster to reheat something than it is to cook it?
I can't produce songs
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
What does Turing mean by this statement?
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?
Relating to the President and obstruction, were Mueller's conclusions preordained?
Does silver oxide react with hydrogen sulfide?
Get custom customer address attribute on email
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Create a sortable and filterable custom attribute to stand-alone entityJoin Customer Address custom attribute to Order Address CollectionHow to add a customer custom-attribute in the customer address edit form?Magento 2.1: Not add table into databasesoap v2 for custom customer_address attributeCustomer custom address attribute not save in Magento2I have created an extension to show Customer Company Name in Order grid. But when creating new order, order is not showing in order gridSave or Update custom customer address attribute dataSet custom address attribute value programmaticallyMagento 2 How to upgrade existing custom customer address attribute?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process.

This is my installer code:
public function install(
ModuleDataSetupInterface $setup,
ModuleContextInterface $context
) {
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerSetup->addAttribute('customer_address', 'dnicif', [
'label' => 'DNI',
'input' => 'text',
'type' => 'varchar',
'source' => '',
'required' => true,
'position' => 45,
'visible' => true,
'sort_order' => 45,
'system' => false,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
'backend' => ''
]);
$attribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'dnicif')
->addData(['used_in_forms' => [
'adminhtml_customer_address',
'customer_address_edit',
'customer_register_address'
]]);
$attribute->save();
$installer = $setup;
$installer->getConnection()->addColumn(
$installer->getTable('quote_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
/** @var QuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(
['resourceName' => 'quote_setup', 'setup' => $setup]
);
/** @var SalesSetup $salesInstaller */
$salesInstaller = $this->salesSetupFactory->create(
['resourceName' => 'sales_setup', 'setup' => $setup]
);
$quoteInstaller->addAttribute(
'quote',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true]
);
$salesInstaller->addAttribute(
'order',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true, 'grid' => true]
);
I need recibe this data on email confirmation and/or the order data on admin panel.
Im using magento 2.1
¿Any ideas?
Thank you very much guys.
magento2 attributes email custom-attributes customer-address
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process.

This is my installer code:
public function install(
ModuleDataSetupInterface $setup,
ModuleContextInterface $context
) {
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerSetup->addAttribute('customer_address', 'dnicif', [
'label' => 'DNI',
'input' => 'text',
'type' => 'varchar',
'source' => '',
'required' => true,
'position' => 45,
'visible' => true,
'sort_order' => 45,
'system' => false,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
'backend' => ''
]);
$attribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'dnicif')
->addData(['used_in_forms' => [
'adminhtml_customer_address',
'customer_address_edit',
'customer_register_address'
]]);
$attribute->save();
$installer = $setup;
$installer->getConnection()->addColumn(
$installer->getTable('quote_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
/** @var QuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(
['resourceName' => 'quote_setup', 'setup' => $setup]
);
/** @var SalesSetup $salesInstaller */
$salesInstaller = $this->salesSetupFactory->create(
['resourceName' => 'sales_setup', 'setup' => $setup]
);
$quoteInstaller->addAttribute(
'quote',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true]
);
$salesInstaller->addAttribute(
'order',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true, 'grid' => true]
);
I need recibe this data on email confirmation and/or the order data on admin panel.
Im using magento 2.1
¿Any ideas?
Thank you very much guys.
magento2 attributes email custom-attributes customer-address
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process.

This is my installer code:
public function install(
ModuleDataSetupInterface $setup,
ModuleContextInterface $context
) {
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerSetup->addAttribute('customer_address', 'dnicif', [
'label' => 'DNI',
'input' => 'text',
'type' => 'varchar',
'source' => '',
'required' => true,
'position' => 45,
'visible' => true,
'sort_order' => 45,
'system' => false,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
'backend' => ''
]);
$attribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'dnicif')
->addData(['used_in_forms' => [
'adminhtml_customer_address',
'customer_address_edit',
'customer_register_address'
]]);
$attribute->save();
$installer = $setup;
$installer->getConnection()->addColumn(
$installer->getTable('quote_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
/** @var QuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(
['resourceName' => 'quote_setup', 'setup' => $setup]
);
/** @var SalesSetup $salesInstaller */
$salesInstaller = $this->salesSetupFactory->create(
['resourceName' => 'sales_setup', 'setup' => $setup]
);
$quoteInstaller->addAttribute(
'quote',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true]
);
$salesInstaller->addAttribute(
'order',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true, 'grid' => true]
);
I need recibe this data on email confirmation and/or the order data on admin panel.
Im using magento 2.1
¿Any ideas?
Thank you very much guys.
magento2 attributes email custom-attributes customer-address
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process.

This is my installer code:
public function install(
ModuleDataSetupInterface $setup,
ModuleContextInterface $context
) {
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);
$customerSetup->addAttribute('customer_address', 'dnicif', [
'label' => 'DNI',
'input' => 'text',
'type' => 'varchar',
'source' => '',
'required' => true,
'position' => 45,
'visible' => true,
'sort_order' => 45,
'system' => false,
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'is_searchable_in_grid' => true,
'backend' => ''
]);
$attribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'dnicif')
->addData(['used_in_forms' => [
'adminhtml_customer_address',
'customer_address_edit',
'customer_register_address'
]]);
$attribute->save();
$installer = $setup;
$installer->getConnection()->addColumn(
$installer->getTable('quote_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
$installer->getConnection()->addColumn(
$installer->getTable('sales_order_address'),
'dnicif',
[
'comment' => 'DNI',
'type' => Table::TYPE_TEXT,
'length' => 255
]
);
/** @var QuoteSetup $quoteInstaller */
$quoteInstaller = $this->quoteSetupFactory->create(
['resourceName' => 'quote_setup', 'setup' => $setup]
);
/** @var SalesSetup $salesInstaller */
$salesInstaller = $this->salesSetupFactory->create(
['resourceName' => 'sales_setup', 'setup' => $setup]
);
$quoteInstaller->addAttribute(
'quote',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true]
);
$salesInstaller->addAttribute(
'order',
'dnicif',
['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true, 'grid' => true]
);
I need recibe this data on email confirmation and/or the order data on admin panel.
Im using magento 2.1
¿Any ideas?
Thank you very much guys.
magento2 attributes email custom-attributes customer-address
magento2 attributes email custom-attributes customer-address
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Apr 16 at 12:08
JJGarciaJJGarcia
1
1
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
JJGarcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
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
);
);
JJGarcia is a new contributor. Be nice, and check out our Code of Conduct.
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%2f270323%2fget-custom-customer-address-attribute-on-email%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
JJGarcia is a new contributor. Be nice, and check out our Code of Conduct.
JJGarcia is a new contributor. Be nice, and check out our Code of Conduct.
JJGarcia is a new contributor. Be nice, and check out our Code of Conduct.
JJGarcia is a new contributor. Be nice, and check out our Code of Conduct.
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%2f270323%2fget-custom-customer-address-attribute-on-email%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