Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

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:

ParameterTypeReq?Description
purchaseOrderNumberstring | numberYes
routePurchaseOrderDetailsfunctionYesFunction 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);