Skip to content

Documentation

WooRewards

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

Widget Shortcodes

 

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.

1 – 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.

 

2 – 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.

 

3 – Rewards

This shortcode shows to customers the points they have on 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

 

4 – 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 actions 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.

 

5 – 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 if you want to show all existing badges (all) or only the ones owned by the customer (owned)

 

6 – 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 if you want to show all existing achievements (all) or only the ones unlocked by the customer (owned)

 

7 – Social Share

This shortcode shows to customers the woocommerce coupons they currently have.
[lws_social_share header=“your header” text=”your text” url=“specific url”]

Attribute Description
header The text displayed before the social shares.
text The text displayed before the share buttons.
url By default, the widget shares the url of the page it’s displayed on. You can override that setting by setting an url in this option.
Was this article helpful to you? Yes No
Scroll To Top