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;








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 2 days ago









      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

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?