Skip to content

WooRewards

  1. Home
  2. Docs
  3. WooRewards
  4. Legacy
  5. Shortcodes
  6. Widget Shortcodes

Widget Shortcodes

This documentation is for the WooRewards plugin

In this section, you will find shortcodes that also exist as widgets.
In some cases, shortcodes provide extra options that aren’t available in widgets.

Summary

Display Points

This shortcode shows to customers the points they have on a points and rewards system.
[wr_show_points system="system_name" force="true" title="your title" more_details_url="more details button url"]

  • Attribute : Description
  • system : The points and rewards system you want to display. You can find this value in WooRewards → Points and Rewards, in the Shortcode Attribute column. If you don’t set this value, nothing will be displayed.
  • force : (Optional) If set, the points will be shown even if the user currently doesn’t have access to the points and rewards system.
  • title : (Optional) The text displayed before the points.
  • more_details_url : (Optional) An url linking to a page with more details on the points and rewards systems.
  • show_currency : (Optional) If set, the number of points displayed will show the points currency.

 

Owned Coupons

This shortcode shows to customers the woocommerce coupons they currently have.
[wr_shop_coupons header=”Here is a list of your coupons”]

  • Attribute : Description
  • header : The text displayed before the coupons.

 

Rewards

This shortcode shows to customers rewards from a points and rewards system.
[wr_show_rewards system="system_name" shared="true" force="true" title="your title" granted="all|only|excluded"]

  • Attribute : Description
  • system : The points and rewards system you want to display. You can find this value in WooRewards → Points and Rewards, in the Shortcode Attribute column. If you don’t set this value, nothing will be displayed.
  • title : The text displayed before the rewards.
  • shared : If systems share the same points pool, you can show the rewards of all shared systems together. Warning → This only works if systems use the same type (Standard or Leveling).
  • force : (Optional) If set, the points will be shown even if the user currently doesn’t have access to the points and rewards system.
  • granted : (Optional) Select the rewards you want to show to customers :
    • all : All rewards of the selected points and rewards system
    • only : Only for logged users – Show rewards they can unlock with their points
    • excluded : Only for logged users – Show rewards for which users don’t have enough points

 

Actions to earn points

This shortcode shows to customers the actions to perform in order to earn points.
[wr_events system="system_name" shared="true" force="true" header="your header" text="your custom text"]

  • Attribute : Description
  • system : The points and rewards system you want to display. You can find this value in WooRewards → Points and Rewards, in the Shortcode Attribute column. If you don’t set this value, nothing will be displayed.
  • shared : If systems share the same points pool, you can show the rewards of all shared systems together. Warning → This only works if systems use the same type (Standard or Leveling).
  • force : (Optional) If set, the points will be shown even if the user currently doesn’t have access to the points and rewards system.
  • header : (Optional) The text displayed over the earning methods list.
  • text : (Optional) This text is set to explain to customers what the information displayed is about.

 

Badges

This shortcode shows badges to customers.
[lws_badges header=”your header” display=”all|owned”]

  • Attribute : Description
  • header : The text displayed before the badges.
  • display : Select badges to display
    • all : if you want to show all existing badges.
    • owned : only the ones owned by the customer.

 

Achievements

This shortcode shows existing achievements.
[lws_achievements header=”your header” display=”all|owned”]

  • Attribute : Description
  • header : The text displayed before the achievements.
  • display : Select achievements to display
    • all : if you want to show all existing achievements.
    • owned : only the ones unlocked by the customer.
Scroll To Top