Product SKUs in
Magento Order Emails

Category: Magento
Product SKUs in Magento Order Emails
Product SKUs in Magento Order Emails

By default, the product SKU in Magento order emails is shown by following snippet of code:

<p class="sku"> <?= /* @escapeNotVerified */  __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?> </p>

in following files:

Magento_Sales/templates/email/items/order/default.phtml
Magento_Sales/templates/email/items/invoice/default.phtml
Magento_Sales/templates/email/items/shipment/default.phtml

To get rid of SKUs, we recommend editing the source/_email-extend.less file for your custom theme and adding the display none parameter. For example,

.sku { 
display: none;
}

Tutorials

Purchase Email Templates

Each purchase of MET comes with 20 different styles —
and a lifetime of free fresh designs & bug-fix updates.

One purchase for all your future projects.