ms.userAddresses

This widget manages addresses of the logged in user.


Variables

addresses
Array containing addresses of the logged in user.
addressReturns main address from the address.
cityReturns city from the address.
countryReturns country from the address.
full_nameReturns the name of user whose name is save against the correspoding user address.
phoneReturns the phone from the address (if available).
stateReturns state from the address.
zipReturns zip from the address.

Methods

remove_address(address)Used to delete an address from an array.
add_address(newAddress)Used to add a new address to the user addresses.
save_address(address)Used to update an existing address from the user addresses.
listAddresses()List all the addresses of the logged in user.