LoyaltyLion home page
Search...
⌘K
Status
Support
Dashboard
Dashboard
Search...
Navigation
Points components
Points for rule
Documentation
SDK
Admin API
Headless API
LoyaltyLion SDK
Overview
Installation
Configuration
Live updating
Workflow hooks
WebViews
Simple components
Customer referral URL
Points components
Customer points
Points for rule
Points for product
Points for cart
Embeddable components
Loyalty page
Standalone components
Legacy components
Modal components
History info modal
Referral modal
Redeem reward modal
Claimed reward modal
On this page
Explanation
Code
Points components
Points for rule
Available on the
Advanced plan
and above.
Display the number of points that would be earned for a particular rule using this component.
The
Points for rule
component is currently only applicable for the signup rule. It doesn’t work for all other rules.
Explanation
Whenever we find this component on the page, we’ll set its innerHTML to the requested value.
If you’re using Loyalty Tiers:
if no customer is logged in, the value we set is the points for the default tier
if a customer is logged in, this value reflects their current tier membership
Code
Copy
<
span
data-lion-points-for-rule
=
"signup"
></
span
>
Customer points
Points for product
Assistant
Responses are generated using AI and may contain mistakes.