cart_addresses

Generates a list of addresses from the customer's address book

Example

[%cart_addresses ship_mode:'[@ship_mode@]'%]
    [%param *header%]
        <h4>Cart Addresses</h4>
    [%/param%]
    [%param *body%]
        <p>
            [@ship_street1@],
            [%if [@ship_street2@] ne ''%][@ship_street2@], [%/if%]
            [@ship_city@] [@ship_state@] [@ship_zip@]
        </p>
    [%/param%]
    [%param *footer%]
    [%/param%]
[%/cart_addresses%]

Usage

Used on the checkout page, the cart_addresses tag queries a list of addresses from any customers address book. It returns the entered or selected address(es).

Note: This function is designed to be used on the checkout page. Since the change to shared Managed Checkout templates, this function is not needed.

Parameters

Name Options Description
ship_mode:'' b, m, s, p Determines the results, b is billing address, m displays multiple addresses, s is different address and p is pickup address
*header HTML & b@se tags Renders a single usable space above the body
*body HTML & b@se tags Runs an array for result
*footer HTML & b@se tags Renders a single usable space below the body
Name Customer Field Example Description
[@ship_mode@] b Type of address. b is billing address, m displays multiple addresses, s is different address and p is pickup address

Data Tags (body)

Name Customer Field Example Description
[@ship_city@] Suburb / City SOUTHPORT City name of the billing/shipping address
[@ship_comment@] Default Customer Instructions Leave at front door The comment / shipping instructions for the address
[@ship_company@] Company Name Acme Inc. Company name for the shipping address
[@ship_country@] AU Two letter ISO 3166-1 code for the country.
[@ship_country_full@] Country Australia Shipping country name
[@ship_fax@] Fax 07 5555 5556 Fax number for the billing/shipping address
[@ship_first_name@] First Name Ronald First name of the recipient for the billing/shipping address
[@ship_last_name@] Last Name Jones Surname name of the recipient for the billing/shipping address
[@ship_mode@] b Type of address. b is billing address, m is multiple addresses, s is different address and p is pickup address
[@ship_phone@] Phone 07 5555 5555 Phone number for the billing/shipping address
[@ship_state@] State QLD State name of the billing/shipping address
[@ship_street1@], [@ship_street2@] Street address 12 Smith Street Street name and details of the billing/shipping address
[@ship_title@] Address Title Billing Address Billing/shipping address title for the address book. The billing address returns Billing Address
[@ship_zip@] Postal code 4215 Postcode / zip code of the billing/shipping address
[@shipping_method_id@] 17 Current shipping method ID
[@shipping_status@] free Type of shipping. Options: free, normal

Was this article useful?

Be notified when this page is updated. Optional.