WooCommerce Tools
WooCommerce Tools

Knowledge Base

In this section, you will find shortcodes for WooCommerce pages

Product Points Preview

Use this shortcode to show to your customers the points they will earn by purchasing the current product.

[wr_product_points]

Options

Here are the available options for this shortcode

  • system : The points and rewards system for which you want to display the points earned. You can find this value in WooRewards → Settings, in the Shortcode Attribute column. If left empty, only the first system is displayed
  • id : (Optional) The product id. If not specified, the shortcode will try to find the actual product from the page.
  • value : (Optional) Select what value you want to display
    • regular : Default value. Number of points earned for a regular product. Displays a points range for variable products
    • min : For variable products, displays the minimum of points that can be earned
    • max : For variable products, displays the maximum of points that can be earned
  • showcurrency : (Optional) Set if you want to display the points currency
    • true : Default value. Displays the points currency
    • false : Doesn’t display the points currency
  • force : (Optional) If set, elements are displayed even if users don’t have access to the points and rewards systems.

Order Points Preview

Use this shortcode to show to your customers the points they will earn by completing the current order.

[wr_order_points_preview]

Options

Here are the available options for this shortcode

  • system : The points and rewards system for which you want to display the points earned. You can find this value in WooRewards → Settings, in the Shortcode Attribute column. If left empty, all active systems are displayed
  • layout : (Optional) Select how elements are organized . 4 possible values
    • none : Simple text without stylable elements
    • grid : Elements are displayed in a responsive grid
    • horizontal : Elements are displayed in a row
    • vertical : Default value. Elements are displayed on top of another
  • element : (Optional) Select how an element is displayed. 3 possible values
    • none : Simple text without stylable elements
    • tile : Stylable tile with a background color
    • line : Default value. Horizontal display in stylable elements
  • display : (Optional) Select how the points are displayed. 2 possible values
    • formatted : Default value. Points are formatted with the points currency/name
    • simple : Only the points balance numeric value is displayed
  • showname : (Optional) If set, will display the points and rewards system name for each element
  • showdetail : (Optional) If set, for each system, a detailed list of actions that give points is displayed for each system
  • force : (Optional) If set, elements are displayed even if users don’t have access to the points and rewards systems.
  • showunlogged : (Optional) If set, elements are displayed even if users are not logged in.
  • totallabel : (Optional) Set the ‘Total’ label. Only displayed if showdetail is set to true

Points on Cart

Use this shortcode to let your customers use their points on the cart for immediate discount. This tool only works if your points and rewards system uses the points on cart reward mode.

[wr_points_on_cart]

Options

Here are the available options for this shortcode

  • system : The points and rewards system for which you want to display the tool. You can find this value in WooRewards → Settings, in the Shortcode Attribute column.If left empty, the first available system will be displayed
  • layout : (Optional) Select how the tool is diplayed . 3 possible values
    • horizontal : Default value. Elements are displayed in a row
    • vertical : Elements are displayed on top of another
    • half : If you present this tool next to the cart totals block, use this option to display the tool vertically with some spacing
  • reload : (Optional) Set it to true to force a page reload when customers modify the points they want to apply on the order
Was this article helpful?
Dislike 0
Views: 692

Continue reading

Previous: Rewards and Levels
Next: Referrals and Social Share