salla-order-shipments
The salla-order-shipments component renders a per-shipment tracking breakdown on the thank-you page for orders fulfilled as split shipments (2+ shipments).
The salla-order-shipments component renders a per-shipment tracking breakdown
on the thank-you page for orders fulfilled as split shipments (2+ shipments).
It renders nothing for single-shipment orders, or when the store does not have the
thankyou-page-multi-shipments feature enabled.
Each shipment card shows the carrier logo, the tracking number with a copy button (or a placeholder text
until a number is assigned) and the product images.
Use it
In HTML or JSX, use the tag <salla-order-shipments> with the Attribute names below. In React, the wrapper takes the Property names (camelCase).
import { SallaOrderShipments } from '@salla.sa/twilight-components-react/order-shipments';Example
import { SallaOrderShipments } from '@salla.sa/twilight-components-react/order-shipments';
export function Example() {
return (
<>
<SallaOrderShipments />
<SallaOrderShipments orderId="123456" />
</>
);
}Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
orderId | order-id | Id of the order to load shipments for. Defaults to the current page's id (page.id in the Salla config). Changing it clears the list and loads the shipments again. | number | string |
salla-order-options-modal
Imperative modal that collects a product's order options (the store-level options a shopper must pick before checkout) and, when an offer grants free products, the options of each free product.
salla-order-summary
Lists the digital items of an order on a thank-you page: gift card codes with a copy button, and downloadable files with a download link.