1. Documentation
  2. Purchases
  3. [gamipress_achievement_purchase_form]

[gamipress_achievement_purchase_form]

Render an achievement purchase form.

Important: Remember that to work with a desired achievement, is required to configure the access price of the desired achievement.

Attributes:

  • id – The ID of the achievement to be purchased.
  • getaways – Choose the payment methods customer can use. Accepts: all, bank_transfer, paypal_standard Default: all
  • button_text – Purchase button text. Default: Purchase
  • thumbnail – Display the achievement featured image. Default: yes
  • excerpt – Display the achievement short description. Default: yes
  • steps – Display the achievement steps. Default: yes
  • toggle – Display the achievement steps toggle. Default: yes
  • earners – Display a list of users that has earned the achievement. Default: no

Example:
[gamipress_achievement_purchase_form id="123" getaways="all" button_text="Purchase" thumbnail="yes" excerpt="yes" steps="yes" toggle="yes" earners="no"]

Was this article helpful to you? Yes No

How can we help?