Widgets & Shortcodes

Widgets

YITH WooCommerce Points and Rewards offers three widgets: two for the back end, and one for the front end.
The first two are displayed in the Dashboard and show the list of the users that have respectively collected more points and earned the highest discounts using the points earned.

Dashboard widgets

The only widget you can add in the sidebar of your site is YITH WooCommerce Points And Rewards – Balance: with it, you can show the current points balance to your logged-in users.

Widget

 

Shortcodes

There are four available shortcodes:

  • [yith_ywpar_points]: shows remaining points to logged-in users;
    shortcode-balance
  • [yith_ywpar_points_list]: shows point history to logged-in users.
    shortcode-points-history
  • [yith_points_product_message]: shows points that will be earned.

Product points shortcode

  • [yith_checkout_thresholds_message]: shows the number of assigned points based on the checkout total threshold.

Checkout shortcode