Customer Account Page API

Froonze

Last Update 2 个月前


For every element and page change we trigger a JS event. So if you want to modify an object you just need to listen to the event and modify it.

Here's an example:


This is our list of events:

  • frcp.mainApp.mounted
  • frcp.navigation.mounted

  • frcp.addresses.addressMounted -- params { address:, el: }
  • frcp.addresses.formMounted
  • frcp.addresses.mounted
  • frcp.contact.mounted
  • frcp.customPage.mounted -- params { pageData:, el: }
  • frcp.emptyView.mounted

  • frcp.loyalty.mounted

  • frcp.loyalty.walletMounted

  • frcp.loyalty.earningRulesMounted

  • frcp.loyalty.spendingRulesMounted

  • frcp.loyalty.activitiesMounted

  • frcp.orders.mounted

  • frcp.orders.orderMounted -- params { order:, el: }
  • frcp.profile.editFormMounted -- params { el: }
  • frcp.profile.mounted
  • frcp.recentlyViewed.mainMounted
  • frcp.recentlyViewed.productMounted -- params { product:, el: }
  • frcp.wishlist.mainMounted
  • frcp.wishlist.productMounted -- params { product: , el: }