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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form