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;








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.



enter image description here



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.
enter image description here



Im using magento 2.1



¿Any ideas?



Thank you very much guys.










share|improve this question







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.


























    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.



    enter image description here



    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.
    enter image description here



    Im using magento 2.1



    ¿Any ideas?



    Thank you very much guys.










    share|improve this question







    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.






















      0












      0








      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.



      enter image description here



      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.
      enter image description here



      Im using magento 2.1



      ¿Any ideas?



      Thank you very much guys.










      share|improve this question







      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.



      enter image description here



      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.
      enter image description here



      Im using magento 2.1



      ¿Any ideas?



      Thank you very much guys.







      magento2 attributes email custom-attributes customer-address






      share|improve this question







      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.











      share|improve this question







      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.









      share|improve this question




      share|improve this question






      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.




















          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.









          draft saved

          draft discarded


















          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.









          draft saved

          draft discarded


















          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.




          draft saved


          draft discarded














          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





















































          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

          Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?