The <salla-add-product-button>
web component allows controllability over button text labels and behaviours based on the product-status
and product-type
properties. It consists of Product Availability component and Button component.Available API Endpoints for the Add Product component are: Example#
Usage#
Properties#
Property | Attribute | Description | Type | Default |
---|
Channels | channels | Available notification channels | string | null |
Donating Amount | donating-amount | Donation amount value | number | '0' |
Notify Options Availability | notify-options-availability | Listen to Product Options availability. | boolean | |
Product ID | product-id | Product ID under which the merchant can sign up for an availability notice | any | undefined |
Product Status | product-status | Product status based on the allowed type values. | "out" | "out-and-notify" | "sale" | 'sale' |
Product Type | product-type | Product type based on the allowed type values. | "codes" | "digital" | "donating" | "food" | "group_products" | "product" | "service" | 'product' |
Quantity | quantity | Passing custom quantity number to be injected within the component, which affects sale product statuses as the Quantity Input component will be customized with the number passed. | number | '0' |
Quick Buy | quick-buy | Support for the Quick Pay Button | boolean | undefined |
Subscribed Options | subscribed-options | Shows the Subscribed Options ex: "[[139487,2394739],[1212,1544]]" | string | undefined |
Support Sticky Bar | support-sticky-bar | Support for themes that have a sticky bar | boolean | undefined |
The Product Status out
refers to the product being out of sale where a disabled button is labeled as "Sold Out". The out-and-notify
type is where the Product Availbility component takes place as Merchants are allowed to subscribe when the specific product becomes available. The Product Status sale
is where the specified product is currently under sale which will allow for a Button component to appear and be labeled as "Add to Cart". Each Product Type customizes how certain button labels appearance. For instance, if product-type
is set to donating
, then the label Donate
will appear when product-status
is set to sale
.
Events#
Event | Description | Type |
---|
failed | This event will be fired when the Add Product to the cart fails | CustomEvent<any> |
success | This event will be fired when the Add Product to the cart succeeds | CustomEvent<any> |
Salla has made buying easier by adding several payment options directly to the product details page.
Now, customers can complete their transactions using most common payment methods without needing to go to a different page. This approach aims to provide a seamless and convenient shopping experience in Salla Merchants’ stores for their customers.The payment interface is displayed in a pop-up modal, enabling customers to:View cart summary, price details, including discounts, shipping costs, and more.
Apply / remove discount coupons.
Select an existing delivery address or add a new one.
Choose a preferred shipping company.
Pay using one of four different payment methods, which are:
• Apple Pay
• Credit cards (Visa, MasterCard, or Mada)
• Installment plans (Tabby and Tamara)
• Cash on delivery
This component is not allowed to be customized by the developer and can only be called to the Theme. Only three properties can be customized using their CSS variables, height, width, border-radius:salla-mini-checkout-widget {
--salla-fast-checkout-button-height: 2.5rem;
--salla-fast-checkout-button-width: 100%;
--salla-fast-checkout-button-border-radius: 0.375rem;
}

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

扫码加入交流群Modified at 2025-02-20 07:53:20