PurchaseOrderConfirmation Container
Displays confirmation details after a purchase order is successfully created or approved.
Version: 1.0.0-beta3
Configuration
The PurchaseOrderConfirmation container provides the following configuration options:
| Parameter | Type | Req? | Description |
|---|---|---|---|
purchaseOrderNumber | string | number | Yes | |
routePurchaseOrderDetails | function | Yes | Function to generate the URL for navigating to the purchase order details. Use to implement custom routing logic or add query parameters. |
Slots
This container does not expose any customizable slots.
Usage
The following example demonstrates how to use the PurchaseOrderConfirmation container:
import { render as provider } from '@dropins/storefront-purchase-order/render.js';import { PurchaseOrderConfirmation } from '@dropins/storefront-purchase-order/containers/PurchaseOrderConfirmation.js';
await provider.render(PurchaseOrderConfirmation, { purchaseOrderNumber: "example", routePurchaseOrderDetails: routePurchaseOrderDetails,})(block);