format_ address
address | format_address
returns string
Generates an HTML address display, with each address component ordered according to the address's locale.
{{ shop.address | format_address }}
{{ shop.address | format_address }}
{
"shop": {
"address": {}
}
}
Output
<p>Polina's Potions, LLC<br>150 Elgin Street<br>8th floor<br>Ottawa ON K2P 1L4<br>Canada</p>
Rendered output
{{ customer.default_address | format_address }}
{{ customer.default_address | format_address }}
{
"customer": {
"default_address": {}
}
}
Output
<p>Cornelius Potionmaker<br>12 Phoenix Feather Alley<br>1<br>Calgary AB T1X 0L4<br>Canada</p>
Rendered output
Was this page helpful?