cancel
Showing results for 
Search instead for 
Did you mean: 

Can you hide the product SKU or Item # from emails, thank you pages etc?

Can you hide the product SKU or Item # from emails, thank you pages etc?

Found this below but it is super old. Does anyone know how to hide the SKU/Item # from all of the confirmation emails, thank you pages etc? 

 

https://magento.stackexchange.com/questions/13547/remove-sku-number-from-order-email

1 REPLY 1

Re: Can you hide the product SKU or Item # from emails, thank you pages etc?

Hello @nickwhawkr4637 

 

Please follow the steps below to hide/remove SKU from email:

1) Open default.phtml file. (Path: /vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml)

2) Please comment or remove the following code:

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

3) Same as step #2, please open the following files and comment or remove the code:

  • /vendor/magento/module-sales/view/frontend/templates/email/items/shipment/default.phtml
  • /vendor/magento/module-sales/view/frontend/templates/email/items/invoice/default.phtml
  • /vendor/magento/module-sales/view/frontend/templates/email/items/creditmemo/default.phtml

4) If you are using any theme then please follow the below mentioned steps:

  • Open default.phtml file. (Path: /app/design/frontend/{Vendor Name}/{Theme Name}/Magento_Sales/templates/email/items/order/default.phtml)
  • Please comment or remove the following code:
    <p class="sku"><?= $block->escapeHtml(__('SKU')) ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
    3. Same as step #2, please open the following files and comment or remove the code:
  • /app/design/frontend/{Vendor Name}/{Theme Name}/Magento_Sales/templates/email/items/shipment/default.phtml
  • /app/design/frontend/{Vendor Name}/{Theme Name}/Magento_Sales/templates/email/items/invoice/default.phtml
  • /app/design/frontend/{Vendor Name}/{Theme Name}/Magento_Sales/templates/email/items/creditmemo/default.phtml

Please follow the steps below to hide or remove Item # from an email:

  1. Open success.phtml file. (Path: /vendor/magento/module-checkout/view/frontend/templates/success.phtml)
  2. You can remove the Item # code from this file.

If you are using any theme then please follow the steps below:

  1. Open success.phtml file. (Path: /app/design/frontend/{Vendor Name}/{Theme Name}/Magento_Checkout/templates/success.phtml)
  2. You can remove the Item # code from this file.

 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9