Reputation: 21
I want to change email invoice template.
Where do I change the orders list and total amount?
What's the correct path?
I used the below path, but its not working. email/order/invoice/items.phtml
Upvotes: 1
Views: 4996
Reputation: 1587
If you want to change template (structure), you need to do next:
If you need to change totals, you should find correct template. As it shown in layout:
<sales_email_order_invoice_items>
<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>
</block>
<block type="core/text_list" name="additional.product.info" />
</sales_email_order_invoice_items>
invoice totals placed in sales/order/totals.phtml so you need to change this file or define own custom file instead this.
Upvotes: 3