2

I am completely new to magento & using version 1.7. I want to remove sku number from the order email when customer place an order. After lot of R&D I noticed that, the template used is from app/design/frontend/base/default/template/email/order/items.phtml and product name, sku number, quantity and price comes from echo $this->getItemHtml($_item) this line. I am not exactly figure out, how should I remove sku number column from this single line? Or is there any other way to do so?

Any help appreciated. Thanks.

1 Answer 1

5

You need to remove this line from email/order/items.phtml.

<th align="left" bgcolor="#EAEAEA" style="font-size:13px; padding:3px 9px"><?php echo $this->__('Sku') ?></th>

This will remove the column header.
Then remove this

 <td align="left" valign="top" style="font-size:11px; padding:3px 9px; border-bottom:1px dotted #CCCCCC;"><?php echo $this->htmlEscape($this->getSku($_item)) ?></td>

from

  1. email/order/items/order/default.phtml.
  2. downloadable/email/order/items/order/downloadable.phtml
  3. bundle/email/order/items/order/default.phtml

This will remove the sku. column for each row.
But don't edit the core files. Copy the files to your theme first.

3
  • thanks for reply. I new to magento and using the default theme. Can u please elaborate, where should I need to copy these files?
    – SandyK
    Jan 22, 2014 at 6:14
  • @SandyK. I think this will explain better than I can ever do it. magentocommerce.com/design_guide/articles/…
    – Marius
    Jan 22, 2014 at 7:23
  • In case you're using an extension that overrides emails, as in my case, I'm using Delivery Time extension. So the file I need to edit is at: app/design/frontend/base/default/template/magecheckout/deliverytime/order/email.‌​phtml May 30, 2016 at 7:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.