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

                    Disable / Remove link to Product Items in Cart 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?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

                    Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

                    Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko