list

This will pull back all membership types from the Control Panel.

The main use-case of the data-pv-type is to recreate the memberships page and display all membership options.

<div data-pv-component="membership" data-pv-type="list" data-pv-object="abc">
    // Some code
</div>

Common HAPI elements used within the <div>:

  • {@backgroundColor@} - this will return the background color associated with the membership

  • {@membership_details@} - this will return the membership details

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

  • {@membership_graphic@} - this will return the url of the membership graphic

  • {@membership_name@} - this will return the membership name

  • {@membership_no@} - this will return the membership no

  • {@membership_summary@} - this will return the membership summary

  • {@membership_type@} - this will return the membership type (id, add-on, subscription)

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

  • sortby: price_monthly asc/desc, atoz, created_on asc/desc

  • hideAddons: true

Last updated