- Merchant API
- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Abandoned Carts
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
- Partner Apps APIs
- Shipping and Fulfilment API
- Twilight Themes
- Getting Started
- Requirements & Review
- Files and Folders Structure
- Twig Template Engine
- Theme Architecture
- Layouts
- Pages
- Componenets
- Overview
- Home Components
- Youtube
- Fixed banner
- Testimonials
- Parallax background
- Photos slider
- Store features
- Square photos
- Fixed products
- Products slider
- Featured products - Style 1
- Featured Products - Style 2
- Featured Products - Style 3
- Brands
- Enhanced Square Banners
- Main Links
- Enhanced Slider
- Slider Products with Headers
- Latest Products
- Vertical Menu with Slider
- Product Components
- Common Components
- Change Log
- Twilight JS SDK
- Twilight Web Components
- Salla CLI
Loyalty
<salla-loyalty>
web component is used to display a popup that represents the Loyalty program. This program enables the store's customers to benefit from collecting the points for vouchers and offers provided by the store. Once they have collected enough points, the customers will be eligible to redeem them for exciting gifts or products.Note
Example#

Usage#
HTML
Properties#
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Customer Points | customer-points | Available customer points with which they can exchange. | number | undefined |
Guest Message | guest-message | Message to show for guest users. | string | undefined |
Prize Points | prize-points | The exchanged prize point. | number | string | undefined |
Prize Title | prize-title | The exchangable prize title. | string | undefined |
Methods#
methods
allow for calling functions built by Salla to carry out certain actvities, such as open
and close
the Loyalty modal.Method | Description | Return Type |
---|---|---|
open() | Shows loyalty modal | Promise<any> |
close() | Hides loyalty modal | Promise<HTMLElement> |
exchangeLoyaltyPoint() | Exchanges loyalty points with the selected prize item | Promise<any> |
resetExchange() | Cancels exchanged prizes | Promise<any> |

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

