How to change Customer Address Template in Invoices, Shipments, Credit Memo PDF in Magento 2
Vinh Jacker | 06-14-2016
Follow this post to learn how to change Customer Address Template in Invoices, Shipments, credit memo PDF in Magento 2. The address template will determine the format of customer address including billing address, shipping address and customer address information that are shown in customer accounts.
The simple way here will introduce to you:
Impress your customers with professional PDF invoices that match your store's branding
Check it out!How to change Customer Address Template in Invoices, Shipments, Credit Memo PDF in Magento 2
- Example 1: Text Templates For text, text one line, HTML, and PDF address Templates
{{depend address attribute code}} a space, a character, or UI label
{{/depend}};
{{if address attribute code}}{{var address attribute code}} a space,
a character, or UI label
{{/if}}
- Example 2: JavaScript Template For JavaScript address template
#{address attribute code} or User Interface label #{address
attribute code}
If it’s hard to customize the invoice template, we recommend the best PDF Invoice solution here
.