Product Availability
<salla-product-availability>
web component is to show the "Notify availability" option as a button for the registered customer, while prompting unregistered merchants to input their phone number/email to be added to the notification list. It consists of a Modal activated by the Button component and that can be customized using the properties' parameters available.Note
Example

Usage
HTML
SASS
Tip
is-subscribed
boolean variable manipulates the status of the Product Availability Component.Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Channels | channels | Available notification channels | "email" | "sms" | "sms,email" | undefined |
Is Subscribed | is-subscribed | Whether or not the current user subscribed to the notification channel | boolean | 'false' |
Product ID | product-id | Product ID under which the merchant can sign up for an availability notice | number | salla.config.get('page.id') |
Modified at 2025-03-04 12:54:02