Get custom customer address attribute on email Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm 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?
ArcGIS Pro Python arcpy.CreatePersonalGDB_management
How do living politicians protect their readily obtainable signatures from misuse?
Do any jurisdictions seriously consider reclassifying social media websites as publishers?
Is CEO the "profession" with the most psychopaths?
Why aren't air breathing engines used as small first stages?
Chinese Seal on silk painting - what does it mean?
Can anything be seen from the center of the Boötes void? How dark would it be?
Do I really need to have a message in a novel to appeal to readers?
Dating a Former Employee
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
Did Deadpool rescue all of the X-Force?
Did Krishna say in Bhagavad Gita "I am in every living being"
Do wooden building fires get hotter than 600°C?
How to install press fit bottom bracket into new frame
What is a fractional matching?
Putting class ranking in CV, but against dept guidelines
How can I reduce the gap between left and right of cdot with a macro?
How does light 'choose' between wave and particle behaviour?
Using et al. for a last / senior author rather than for a first author
Drawing without replacement: why is the order of draw irrelevant?
What do you call the main part of a joke?
An adverb for when you're not exaggerating
What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?
Generate an RGB colour grid
Get custom customer address attribute on email
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm 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
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
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
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
New contributor
New contributor
asked 2 days ago
JJGarciaJJGarcia
1
1
New contributor
New contributor
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