How to show product custom attribute to invoice email in magento2.2.0?Magento 2 - How to do get the product attribute code and value associated with product using product id?How to get product image & remove background color on PDF invoice Magento 2.x?How to Add Custom Attribute Variable in Invoice Magento 1.9.2?Magento 2 product image custom resizeAdd custom email variable to invoice emailHow to update product eav attribute in magento 2How to show product custom attribute in items ordered section in magento2.2.0?How to show custom Attribute in items invoiced below the SKU in magento2.2.0?How to show Product Custom Attribute in edit page of Credit Memos, Invoice and Shipments below SKU in admin in Magento2.2.0?How to show product custom attribute in sales item ordered section in admin for bundle product and configurable product in Magento2.2.0?

I'm just a whisper. Who am I?

Quoting Keynes in a lecture

Mimic lecturing on blackboard, facing audience

Would a primitive species be able to learn English from reading books alone?

How to test the sharpness of a knife?

El Dorado Word Puzzle II: Videogame Edition

SOQL query causes internal Salesforce error

If the only attacker is removed from combat, is a creature still counted as having attacked this turn?

Why is participating in the European Parliamentary elections used as a threat?

Can you identify this lizard-like creature I observed in the UK?

How to I force windows to use a specific version of SQLCMD?

Showing mass murder in a kid's book

What should be the ideal length of sentences in a blog post for ease of reading?

If A is dense in Q, then it must be dense in R.

Origin of pigs as a species

Should I assume I have passed probation?

How to get directions in deep space?

Isometric embedding of a genus g surface

Language involving irrational number is not a CFL

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?

The Digit Triangles

What the heck is gets(stdin) on site coderbyte?

If Captain Marvel (MCU) were to have a child with a human male, would the child be human or Kree?



How to show product custom attribute to invoice email in magento2.2.0?


Magento 2 - How to do get the product attribute code and value associated with product using product id?How to get product image & remove background color on PDF invoice Magento 2.x?How to Add Custom Attribute Variable in Invoice Magento 1.9.2?Magento 2 product image custom resizeAdd custom email variable to invoice emailHow to update product eav attribute in magento 2How to show product custom attribute in items ordered section in magento2.2.0?How to show custom Attribute in items invoiced below the SKU in magento2.2.0?How to show Product Custom Attribute in edit page of Credit Memos, Invoice and Shipments below SKU in admin in Magento2.2.0?How to show product custom attribute in sales item ordered section in admin for bundle product and configurable product in Magento2.2.0?













0















I want to show product custom attribute below the product image and SKU to invoice email in magento2.2.0?
Any help would be appreciated.










share|improve this question


























    0















    I want to show product custom attribute below the product image and SKU to invoice email in magento2.2.0?
    Any help would be appreciated.










    share|improve this question
























      0












      0








      0








      I want to show product custom attribute below the product image and SKU to invoice email in magento2.2.0?
      Any help would be appreciated.










      share|improve this question














      I want to show product custom attribute below the product image and SKU to invoice email in magento2.2.0?
      Any help would be appreciated.







      magento2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 2 '18 at 8:00









      AmyAmy

      3179




      3179




















          1 Answer
          1






          active

          oldest

          votes


















          1














          You need to override vendor/magento/module-sales/view/frontend/templates/email/items/invoice/default.phtml



          This is my registration.php file
          app/code/Amy/InvoiceEmailPcb/registration.php



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
          <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
          </config>


          This is my module.xml file
          app/code/Amy/InvoiceEmailPcb/etc/module.xml



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
          <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
          </config>


          This is my sales_email_order_invoice_renderers.xml
          app/code/Amy/InvoiceEmailPcb/view/frontend/layout/sales_email_order_invoice_renderers.xml



          <?xml version="1.0"?>
          <!--
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */
          -->
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Creditmemo Items List" design_abstraction="custom">
          <body>
          <referenceBlock name="sales.email.order.invoice.renderers">
          <block class="MagentoSalesBlockOrderEmailItemsDefaultItems" as="default" template="Amy_InvoiceEmailPcb::email/items/invoice/default.phtml"/>
          </referenceBlock>
          </body>
          </page>


          This is my default.phtml
          app/code/Amy/InvoiceEmailPcb/view/frontend/templates/email/items/invoice/default.phtml



          <?php
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */

          // @codingStandardsIgnoreFile

          ?>
          <?php $_item = $block->getItem() ?>
          <?php $_order = $block->getItem()->getOrder(); ?>

          <?php
          $objectManager = MagentoFrameworkAppObjectManager::getInstance();
          $product = $objectManager->get('MagentoCatalogModelProductFactory')->create()->load($_item->getProductId());
          ?>

          <tr>
          <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">
          <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
          <p class="sku"><?= /* @escapeNotVerified */ __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
          <?php if ($block->getItemOptions()): ?>
          <dl>
          <?php foreach ($block->getItemOptions() as $option): ?>
          <dt><strong><em><?= /* @escapeNotVerified */ $option['label'] ?></em></strong></dt>
          <dd>
          <?= /* @escapeNotVerified */ nl2br($option['value']) ?>
          </dd>
          <?php endforeach; ?>
          </dl>
          <?php endif; ?>
          <?php $addInfoBlock = $block->getProductAdditionalInformationBlock(); ?>
          <?php if ($addInfoBlock) :?>
          <?= $addInfoBlock->setItem($_item->getOrderItem())->toHtml() ?>
          <?php endif; ?>

          <?php //Your code starts to show custom attribute value ?>
          <dl class="item-options">
          <dt><?= __('PCB Master') ?>:</dt>
          <dd><?php echo $product->getData('pcb_master'); ?></dd>
          </dl>
          <?php //Your code ends to show custom attribute value ?>

          <?= $block->escapeHtml($_item->getDescription()) ?>
          </td>
          <td class="item-qty"><?= /* @escapeNotVerified */ $_item->getQty() * 1 ?></td>
          <td class="item-price">
          <?= /* @escapeNotVerified */ $block->getItemPrice($_item) ?>
          </td>
          </tr>





          share|improve this answer
























            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
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f252105%2fhow-to-show-product-custom-attribute-to-invoice-email-in-magento2-2-0%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            You need to override vendor/magento/module-sales/view/frontend/templates/email/items/invoice/default.phtml



            This is my registration.php file
            app/code/Amy/InvoiceEmailPcb/registration.php



            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
            <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
            </config>


            This is my module.xml file
            app/code/Amy/InvoiceEmailPcb/etc/module.xml



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
            <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
            </config>


            This is my sales_email_order_invoice_renderers.xml
            app/code/Amy/InvoiceEmailPcb/view/frontend/layout/sales_email_order_invoice_renderers.xml



            <?xml version="1.0"?>
            <!--
            /**
            * Copyright © Magento, Inc. All rights reserved.
            * See COPYING.txt for license details.
            */
            -->
            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Creditmemo Items List" design_abstraction="custom">
            <body>
            <referenceBlock name="sales.email.order.invoice.renderers">
            <block class="MagentoSalesBlockOrderEmailItemsDefaultItems" as="default" template="Amy_InvoiceEmailPcb::email/items/invoice/default.phtml"/>
            </referenceBlock>
            </body>
            </page>


            This is my default.phtml
            app/code/Amy/InvoiceEmailPcb/view/frontend/templates/email/items/invoice/default.phtml



            <?php
            /**
            * Copyright © Magento, Inc. All rights reserved.
            * See COPYING.txt for license details.
            */

            // @codingStandardsIgnoreFile

            ?>
            <?php $_item = $block->getItem() ?>
            <?php $_order = $block->getItem()->getOrder(); ?>

            <?php
            $objectManager = MagentoFrameworkAppObjectManager::getInstance();
            $product = $objectManager->get('MagentoCatalogModelProductFactory')->create()->load($_item->getProductId());
            ?>

            <tr>
            <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">
            <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
            <p class="sku"><?= /* @escapeNotVerified */ __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
            <?php if ($block->getItemOptions()): ?>
            <dl>
            <?php foreach ($block->getItemOptions() as $option): ?>
            <dt><strong><em><?= /* @escapeNotVerified */ $option['label'] ?></em></strong></dt>
            <dd>
            <?= /* @escapeNotVerified */ nl2br($option['value']) ?>
            </dd>
            <?php endforeach; ?>
            </dl>
            <?php endif; ?>
            <?php $addInfoBlock = $block->getProductAdditionalInformationBlock(); ?>
            <?php if ($addInfoBlock) :?>
            <?= $addInfoBlock->setItem($_item->getOrderItem())->toHtml() ?>
            <?php endif; ?>

            <?php //Your code starts to show custom attribute value ?>
            <dl class="item-options">
            <dt><?= __('PCB Master') ?>:</dt>
            <dd><?php echo $product->getData('pcb_master'); ?></dd>
            </dl>
            <?php //Your code ends to show custom attribute value ?>

            <?= $block->escapeHtml($_item->getDescription()) ?>
            </td>
            <td class="item-qty"><?= /* @escapeNotVerified */ $_item->getQty() * 1 ?></td>
            <td class="item-price">
            <?= /* @escapeNotVerified */ $block->getItemPrice($_item) ?>
            </td>
            </tr>





            share|improve this answer





























              1














              You need to override vendor/magento/module-sales/view/frontend/templates/email/items/invoice/default.phtml



              This is my registration.php file
              app/code/Amy/InvoiceEmailPcb/registration.php



              <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
              <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
              </config>


              This is my module.xml file
              app/code/Amy/InvoiceEmailPcb/etc/module.xml



              <?xml version="1.0"?>
              <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
              <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
              </config>


              This is my sales_email_order_invoice_renderers.xml
              app/code/Amy/InvoiceEmailPcb/view/frontend/layout/sales_email_order_invoice_renderers.xml



              <?xml version="1.0"?>
              <!--
              /**
              * Copyright © Magento, Inc. All rights reserved.
              * See COPYING.txt for license details.
              */
              -->
              <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Creditmemo Items List" design_abstraction="custom">
              <body>
              <referenceBlock name="sales.email.order.invoice.renderers">
              <block class="MagentoSalesBlockOrderEmailItemsDefaultItems" as="default" template="Amy_InvoiceEmailPcb::email/items/invoice/default.phtml"/>
              </referenceBlock>
              </body>
              </page>


              This is my default.phtml
              app/code/Amy/InvoiceEmailPcb/view/frontend/templates/email/items/invoice/default.phtml



              <?php
              /**
              * Copyright © Magento, Inc. All rights reserved.
              * See COPYING.txt for license details.
              */

              // @codingStandardsIgnoreFile

              ?>
              <?php $_item = $block->getItem() ?>
              <?php $_order = $block->getItem()->getOrder(); ?>

              <?php
              $objectManager = MagentoFrameworkAppObjectManager::getInstance();
              $product = $objectManager->get('MagentoCatalogModelProductFactory')->create()->load($_item->getProductId());
              ?>

              <tr>
              <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">
              <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
              <p class="sku"><?= /* @escapeNotVerified */ __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
              <?php if ($block->getItemOptions()): ?>
              <dl>
              <?php foreach ($block->getItemOptions() as $option): ?>
              <dt><strong><em><?= /* @escapeNotVerified */ $option['label'] ?></em></strong></dt>
              <dd>
              <?= /* @escapeNotVerified */ nl2br($option['value']) ?>
              </dd>
              <?php endforeach; ?>
              </dl>
              <?php endif; ?>
              <?php $addInfoBlock = $block->getProductAdditionalInformationBlock(); ?>
              <?php if ($addInfoBlock) :?>
              <?= $addInfoBlock->setItem($_item->getOrderItem())->toHtml() ?>
              <?php endif; ?>

              <?php //Your code starts to show custom attribute value ?>
              <dl class="item-options">
              <dt><?= __('PCB Master') ?>:</dt>
              <dd><?php echo $product->getData('pcb_master'); ?></dd>
              </dl>
              <?php //Your code ends to show custom attribute value ?>

              <?= $block->escapeHtml($_item->getDescription()) ?>
              </td>
              <td class="item-qty"><?= /* @escapeNotVerified */ $_item->getQty() * 1 ?></td>
              <td class="item-price">
              <?= /* @escapeNotVerified */ $block->getItemPrice($_item) ?>
              </td>
              </tr>





              share|improve this answer



























                1












                1








                1







                You need to override vendor/magento/module-sales/view/frontend/templates/email/items/invoice/default.phtml



                This is my registration.php file
                app/code/Amy/InvoiceEmailPcb/registration.php



                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
                </config>


                This is my module.xml file
                app/code/Amy/InvoiceEmailPcb/etc/module.xml



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
                </config>


                This is my sales_email_order_invoice_renderers.xml
                app/code/Amy/InvoiceEmailPcb/view/frontend/layout/sales_email_order_invoice_renderers.xml



                <?xml version="1.0"?>
                <!--
                /**
                * Copyright © Magento, Inc. All rights reserved.
                * See COPYING.txt for license details.
                */
                -->
                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Creditmemo Items List" design_abstraction="custom">
                <body>
                <referenceBlock name="sales.email.order.invoice.renderers">
                <block class="MagentoSalesBlockOrderEmailItemsDefaultItems" as="default" template="Amy_InvoiceEmailPcb::email/items/invoice/default.phtml"/>
                </referenceBlock>
                </body>
                </page>


                This is my default.phtml
                app/code/Amy/InvoiceEmailPcb/view/frontend/templates/email/items/invoice/default.phtml



                <?php
                /**
                * Copyright © Magento, Inc. All rights reserved.
                * See COPYING.txt for license details.
                */

                // @codingStandardsIgnoreFile

                ?>
                <?php $_item = $block->getItem() ?>
                <?php $_order = $block->getItem()->getOrder(); ?>

                <?php
                $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                $product = $objectManager->get('MagentoCatalogModelProductFactory')->create()->load($_item->getProductId());
                ?>

                <tr>
                <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">
                <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
                <p class="sku"><?= /* @escapeNotVerified */ __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
                <?php if ($block->getItemOptions()): ?>
                <dl>
                <?php foreach ($block->getItemOptions() as $option): ?>
                <dt><strong><em><?= /* @escapeNotVerified */ $option['label'] ?></em></strong></dt>
                <dd>
                <?= /* @escapeNotVerified */ nl2br($option['value']) ?>
                </dd>
                <?php endforeach; ?>
                </dl>
                <?php endif; ?>
                <?php $addInfoBlock = $block->getProductAdditionalInformationBlock(); ?>
                <?php if ($addInfoBlock) :?>
                <?= $addInfoBlock->setItem($_item->getOrderItem())->toHtml() ?>
                <?php endif; ?>

                <?php //Your code starts to show custom attribute value ?>
                <dl class="item-options">
                <dt><?= __('PCB Master') ?>:</dt>
                <dd><?php echo $product->getData('pcb_master'); ?></dd>
                </dl>
                <?php //Your code ends to show custom attribute value ?>

                <?= $block->escapeHtml($_item->getDescription()) ?>
                </td>
                <td class="item-qty"><?= /* @escapeNotVerified */ $_item->getQty() * 1 ?></td>
                <td class="item-price">
                <?= /* @escapeNotVerified */ $block->getItemPrice($_item) ?>
                </td>
                </tr>





                share|improve this answer















                You need to override vendor/magento/module-sales/view/frontend/templates/email/items/invoice/default.phtml



                This is my registration.php file
                app/code/Amy/InvoiceEmailPcb/registration.php



                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
                </config>


                This is my module.xml file
                app/code/Amy/InvoiceEmailPcb/etc/module.xml



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                <module name="Amy_InvoiceEmailPcb" setup_version="1.0.0"/>
                </config>


                This is my sales_email_order_invoice_renderers.xml
                app/code/Amy/InvoiceEmailPcb/view/frontend/layout/sales_email_order_invoice_renderers.xml



                <?xml version="1.0"?>
                <!--
                /**
                * Copyright © Magento, Inc. All rights reserved.
                * See COPYING.txt for license details.
                */
                -->
                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Creditmemo Items List" design_abstraction="custom">
                <body>
                <referenceBlock name="sales.email.order.invoice.renderers">
                <block class="MagentoSalesBlockOrderEmailItemsDefaultItems" as="default" template="Amy_InvoiceEmailPcb::email/items/invoice/default.phtml"/>
                </referenceBlock>
                </body>
                </page>


                This is my default.phtml
                app/code/Amy/InvoiceEmailPcb/view/frontend/templates/email/items/invoice/default.phtml



                <?php
                /**
                * Copyright © Magento, Inc. All rights reserved.
                * See COPYING.txt for license details.
                */

                // @codingStandardsIgnoreFile

                ?>
                <?php $_item = $block->getItem() ?>
                <?php $_order = $block->getItem()->getOrder(); ?>

                <?php
                $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                $product = $objectManager->get('MagentoCatalogModelProductFactory')->create()->load($_item->getProductId());
                ?>

                <tr>
                <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">
                <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
                <p class="sku"><?= /* @escapeNotVerified */ __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
                <?php if ($block->getItemOptions()): ?>
                <dl>
                <?php foreach ($block->getItemOptions() as $option): ?>
                <dt><strong><em><?= /* @escapeNotVerified */ $option['label'] ?></em></strong></dt>
                <dd>
                <?= /* @escapeNotVerified */ nl2br($option['value']) ?>
                </dd>
                <?php endforeach; ?>
                </dl>
                <?php endif; ?>
                <?php $addInfoBlock = $block->getProductAdditionalInformationBlock(); ?>
                <?php if ($addInfoBlock) :?>
                <?= $addInfoBlock->setItem($_item->getOrderItem())->toHtml() ?>
                <?php endif; ?>

                <?php //Your code starts to show custom attribute value ?>
                <dl class="item-options">
                <dt><?= __('PCB Master') ?>:</dt>
                <dd><?php echo $product->getData('pcb_master'); ?></dd>
                </dl>
                <?php //Your code ends to show custom attribute value ?>

                <?= $block->escapeHtml($_item->getDescription()) ?>
                </td>
                <td class="item-qty"><?= /* @escapeNotVerified */ $_item->getQty() * 1 ?></td>
                <td class="item-price">
                <?= /* @escapeNotVerified */ $block->getItemPrice($_item) ?>
                </td>
                </tr>






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 3 mins ago









                Craig

                8031520




                8031520










                answered Dec 2 '18 at 9:25









                AmyAmy

                3179




                3179



























                    draft saved

                    draft discarded
















































                    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%2f252105%2fhow-to-show-product-custom-attribute-to-invoice-email-in-magento2-2-0%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

                    Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                    Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

                    Aasi (pallopeli) Navigointivalikko