0
我想添加我的客戶的電子郵件地址帳單和送貨地址。Magento添加電子郵件帳單和送貨地址
爲此,我試圖將var order.getCustomerEmail()
,var email
添加到html地址模板中。但它不填寫好
代碼示例:
{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}<br/>
{{depend company}}{{var company}}<br />{{/depend}}
{{if street1}}{{var street1}}<br />{{/if}}
{{depend street2}}{{var street2}}<br />{{/depend}}
{{depend street3}}{{var street3}}<br />{{/depend}}
{{depend street4}}{{var street4}}<br />{{/depend}}
{{if city}}{{var city}}, {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}<br/>
{{var country}}<br/>
{{depend telephone}}T: {{var telephone}}{{/depend}}
{{depend fax}}<br/>F: {{var fax}}{{/depend}}
**<br/>Email: {{var order.getCustomerEmail()}}**
{{depend vat_id}}<br/>VAT: {{var vat_id}}{{/depend}}
難道是因爲not registered users
?但他們也需要輸入一個電子郵件地址。
你想要銷售訂單電子郵件嗎? –
是的我想添加客戶的電子郵件到'銷售訂單電子郵件' – ayto