I am trying to setup a Invoice email template in Magento, and I see that the most of the informations I want is displayed.

However, I would like to display the shopping cart content with only the item's name and summary of the cart. I have some kind of product description added in the cart with every product, I don't want that part to be displayed in the email template.

I see that the cart is displayed in email template with:

{{layout area="frontend" handle="sales_email_order_invoice_items" invoice=$invoice order=$order}}

Is there a way to display only items, and without the description for every product?

1 Answer 1


You are heading in the right direction. Since you found the handle, a little search and you can find that the sales_email_order_invoice_items handle is in the sales.xml file.

    <block type="sales/order_email_invoice_items" name="items" template="email/order/invoice/items.phtml">
        <action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/invoice/default.phtml</template></action>
        <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/invoice/default.phtml</template></action>
        <block type="sales/order_invoice_totals" name="invoice_totals" template="sales/order/totals.phtml">
            <action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
            <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
            <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
    <block type="core/text_list" name="additional.product.info" />
  • The email/order/invoice/items.phtml file is responsible for main template of the invoice.
  • The email/order/items/invoice/default.phtml is most probably what you are looking for, it will be used for each product to display its info.

Thus just copy the email/order/items/invoice/default.phtml into your own template folder and change whatever you need changed in that file.

  • As @Dan correctly mentions, you will need some form of code customization, you cannot do what you want without copying the template or create your own. Apr 2, 2013 at 13:51
  • Ok, but I dont need to copy the file, I can also edit the existing one, right? And also, it wont take affect to the orders email templates if I got this right, thats in different folder and phtml file? Apr 2, 2013 at 15:36
  • @JosipGvozdic You don't HAVE to per se, but it is bad practice to edit core files. It will be very hard to track changes later on as when you upgrade your magento installation, your changes will be lost.
    – Dan
    Apr 2, 2013 at 17:34
  • @PetarDzhambazov, Good explanation. can you tell me how to pass weight attribute to invoice email to the customer at this exactly path? Oct 25, 2016 at 9:18

Your Answer

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

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