My account profile
This view contains the information of a user in 4 sections profile information, order list, saved cards and user API keys
Controllers
orderCtrl
: controller for the order sectioncardCtrl
: controller for the card sectionkeyCtrl
: controller for the API keys section
Main Models
- curTab: Useful model to section
- User Profile
- `checkoutfields: It contains all the fields to compare if they are activated and are required.
updateUser.name
: User nameupdateUser.lastname
: User LastnameupdateUser.email
: User EmailupdateUser.password
: User passwordupdateUser.cellphone
: User CellphoneupdateUser.city
: User cityupdateUser.dropdown_option_id
: User dropdownupdateUser.address
: User AddressupdateUser.zipcode
: User ZipcodeupdateUser.address_notes
: User address notescities
: It contains in an array all the citiesdropdownoptions
: It contains the delivery areas of the selected city
- Orders:
orders
: It contains an array of this user's orders
- Cards:
cards
: Contains this user's cards in an array
- API keys
keys
: contains in this array the API key of this user, only for administrators
Utility Functions
- Profile:
resetDropdownoption()
: Updates dropdownoptions ddepending on the city that is selectedupdateProfile()
: update user profile data
- orders:
orderViewMore(order)
: See the details of the orderopenModalReview(order, $event)
: Open A modal to add a review to the business to which the order was made.
- Tarjetas:
deleteCard(card)
: delete a card associated with the useraddNewCard()
: Open a modal to add a new credit card
- keys:
add()
; Create a new API keydelete(key)
: Delete an API key
Example of base theme
Updated almost 6 years ago