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
我使用了以下路径,但它不起作用。电子邮件/订单/发票/ items.phtml
1 个解决方案
#1
If you want to change template (structure), you need to do next:
如果要更改模板(结构),则需要执行下一步:
- Go to System > Transaction Emails and click on "Add New Template" button
- Set options "Template"="New Invoice", "Locale"=your default locale, and click on "Load Template" button
- Set "Template Name" as "My New template for invoices"
- Change whatever you want in Template Content section. You can check your changes before saving by clicking in "Preview Template" button. Click "Save Template" button for savinf changes.
- Check what your new template selected in System > Configuration > Sales Emails > Invoice > Invoice Email Template.
- Repeat steps 1-5 for guest invoices.
- Clear the cache.
转到系统>交易电子邮件,然后单击“添加新模板”按钮
设置选项“模板”=“新发票”,“区域设置”=您的默认区域设置,然后单击“加载模板”按钮
将“模板名称”设置为“我的新发票模板”
在“模板内容”部分中更改所需内容。您可以通过单击“预览模板”按钮在保存之前检查更改。单击“保存模板”按钮进行savinf更改。
检查在“系统”>“配置”>“销售电子邮件”>“发票”>“发票电子邮件模板”中选择的新模板。
对于客人发票,请重复步骤1-5。
清除缓存。
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.
发票总额放在sales / order / totals.phtml中,因此您需要更改此文件或定义自己的自定义文件。
#1
If you want to change template (structure), you need to do next:
如果要更改模板(结构),则需要执行下一步:
- Go to System > Transaction Emails and click on "Add New Template" button
- Set options "Template"="New Invoice", "Locale"=your default locale, and click on "Load Template" button
- Set "Template Name" as "My New template for invoices"
- Change whatever you want in Template Content section. You can check your changes before saving by clicking in "Preview Template" button. Click "Save Template" button for savinf changes.
- Check what your new template selected in System > Configuration > Sales Emails > Invoice > Invoice Email Template.
- Repeat steps 1-5 for guest invoices.
- Clear the cache.
转到系统>交易电子邮件,然后单击“添加新模板”按钮
设置选项“模板”=“新发票”,“区域设置”=您的默认区域设置,然后单击“加载模板”按钮
将“模板名称”设置为“我的新发票模板”
在“模板内容”部分中更改所需内容。您可以通过单击“预览模板”按钮在保存之前检查更改。单击“保存模板”按钮进行savinf更改。
检查在“系统”>“配置”>“销售电子邮件”>“发票”>“发票电子邮件模板”中选择的新模板。
对于客人发票,请重复步骤1-5。
清除缓存。
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.
发票总额放在sales / order / totals.phtml中,因此您需要更改此文件或定义自己的自定义文件。