address_book

Generates a list of data for each address in a customer address book

Example

[%address_book%]
  [%param *header%]
    <ul>
  [%/param%]
  [%param *body%]
    <li>[@id@] - [@ship_title@]</li>
  [%/param%]
  [%param *footer%]
    </ul>
  [%/param%]
[%/address_book%]

Usage

Every customer in Neto by Maropost can have multiple addresses stored against them. The address book tag loads each of these addresses in the body param alongside supporting additional tags such as [@id@] & [@ship_title@] to label each address.

Parameters

Name Options Description
`*header` HTML & b@se tags Renders a single usable space above the body
`*body` HTML & b@se tags Runs an array for each option in the tag
`*footer` HTML & b@se tags Renders a single usable space below the body

Data tags (body)

Name Customer Field Example Description
`[@count@]` 0 Counts for every time the body parameter is run as a whole number integer
`[@id@]` b The unique for each address. **b** for the billing address and an integer for the shipping addresses
`[@ship_city@]` Suburb / City Southport The city name for the billing/shipping address
`[@ship_company@]` Company Name Acme Coffee The company name for the billing/shipping address
`[@ship_country@]` Country AU The country name for the billing/shipping address
`[@ship_fax@]` Fax 07 5555 4444 The fax number for the billing/shipping address
`[@ship_first_name@]` First Name Steve The first name for the billing/shipping address
`[@ship_last_name@]` Last Name Westwood The last name for the billing/shipping address
`[@ship_phone@]` Phone 07 5555 5555 The phone number for the billing/shipping address
`[@ship_state@]` State QLD The state name for the billing/shipping address
`[@ship_street1@]` Street address Level 1 The first street address field for the billing/shipping address
`[@ship_street2@]` Street address 12 Smith Street The second street address field for the billing/shipping address
`[@ship_title@]` Shipping Address Title Billing Address The title for the address in the address book
`[@ship_zip@]` Postal Code 4215 The zip/postcode for the billing/shipping address

Was this article useful?

Be notified when this page is updated. Optional.