[comment]
ui_template: Yes
ui_template_name: leftonly
[/comment]
[tmp page_title]__COMPANY__ -- Shipping Address Added[/tmp]
@_LEFTONLY_TOP_@
[if !scratch current_code]
[set new_code]1[/set]
[else]
[seti new_code][calc][scratch current_code] + 1[/calc][/seti]
[/else]
[/if]
[if !scratch current_entry]
[set new_entry]1[/set]
[else]
[seti new_entry][calc][scratch current_entry] + 1[/calc][/seti]
[/else]
[/if]
[seti add_address]
[tag flag write]ship_addresses[/tag]
[try]
[import table=ship_addresses type=LINE continue=NOTES]
code: [scratch new_code]
username: [data session username]
entry: [scratch new_entry]
addr_nick: [value addrnick]
company: [value sa_company]
fname: [value sa_fname]
lname: [value sa_lname]
address_1: [value sa_address1]
address_2: [value sa_address2]
city: [value sa_city]
state: [value sa_state]
zip: [value sa_zip]
country: [value sa_country]
[/import]
[/try]
[catch] There was an error adding the new address entry. [/catch]
[/seti]
You may now use the added shipping address by selecting it on the
shopping cart or recurring orders page.
BACK @_LEFTONLY_BOTTOM_@