customer_address
The customer_address
contains information of addresses tied to a Customer Account.
In this article
- customer_address.first_name
- customer_address.last_name
- customer_address.address1
- customer_address.address2
- customer_address.street
- customer_address.company
- customer_address.city
- customer_address.province
- customer_address.province_code
- customer_address.zip
- customer_address.country
- customer_address.country_code
- customer_address.phone
- customer_address.id
customer_address.first_name
Returns the value of the First Name field of the address.
customer_address.last_name
Returns the value of the Last Name field of the address.
customer_address.address1
Returns the value of the Address1 field of the address.
customer_address.address2
Returns the value of the Address2 field of the address.
customer_address.street
Returns the combined values of the Address1 and Address2 fields of the address.
Input
{{ shipping_address.street }}
Output
56 Vân côi, Phường 7, Quận Tân Bình, Tp. Hồ Chí Minh
customer_address.company
Returns the value of the Company field of the address.
customer_address.city
Returns the value of the City field of the address.
customer_address.province
Returns the value of the Province/State field of the address.
Input
{{ customer_address.province }}
Output
Hồ Chí Minh
customer_address.province_code
Returns the abbreviated value of the Province/State field of the address.
Input
{{ billing_address.province_code }}
Output
ON
customer_address.zip
Returns the value of the Postal/Zip field of the address.
customer_address.country
Returns the value of the Country field of the address.
Input
{{ customer_address.country }}
Output
Vietnam
customer_address.country_code
Returns the value of the Country field of the address in ISO 3166-2 standard format.
Input
{{ customer_address.country_code }}
Output
vn
customer_address.phone
Returns the value of the Phone field of the address.
customer_address.id
Returns the id of customer address.