activities

This will pull back all loyalty activity data from the Control Panel.

The main use-case of this is to create a content page where members can see all loyalty activities and engage to complete them

<div data-pv-component="loyalty" data-pv-type="activities" data-pv-object="abc">
    // Some code
</div>

Common HAPI elements used within the <div>:

  • {@activity_graphic@} - this will return the activity graphic

  • {@activity_point@} - this will return the amount of points that can be earned by completing the activity

  • {@activity_summary@} - this will return the membership disclaimer

  • {@activity_summary@} - this will return the activity summary

  • {@activity_title@} - this will return the activity title

Common data-pv-parameters used within the <div>:

  • activity_status: 'active'

  • hasEarned: 'true/false' - use this to filter out earned activities vs not earned activities

Last updated