PurchaseOrderApprovalFlow Container
The PurchaseOrderApprovalFlow container displays approval rules that apply to the currently selected purchase order. The container requires no props. It listens for the purchase-order/data event emitted by the purchase order initializer, using the event payload to render its content.
After receiving the event, it shows approval rules affecting the current purchase order and users whose approval is required. This container is view-only and provides no interactive actions.

PurchaseOrderApprovalFlow container
Displayed information
- Approval rules affecting the current purchase order
- Users whose approval is required
ACL permissions
| Parameter | Type | Req? | Description |
|---|---|---|---|
className | string | No | Adds custom CSS classes to the container element. Use to override default styles, integrate with existing design systems, or apply conditional styling based on application state. |
withHeader | boolean | No | Controls whether to render the container header section. Set to false when embedding the container within a layout that already provides its own header to avoid duplicate navigation elements. |
withWrapper | boolean | No | Controls whether to wrap the container in a styled wrapper element. Set to false when integrating with existing design systems or when the container is embedded within another styled component that provides its own layout structure. |
Magento_PurchaseOrder::view_purchase_orders
Integration example
Basic
import { PurchaseOrderApprovalFlow } from '@dropins/storefront-purchase-order/containers/PurchaseOrderApprovalFlow.js';import { render as provider } from '@dropins/storefront-purchase-order/render.js';
await provider.render(PurchaseOrderApprovalFlow, { withHeader: true, withWrapper: true,})(element);Minimal
await provider.render(PurchaseOrderApprovalFlow, { withHeader: false, withWrapper: false, className: 'custom-approval-flow',})(element);Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
className | string | No | Additional CSS classes for custom styling. Use to add custom spacing or styling when integrating into specific layouts, or apply theme-specific styles. |
withHeader | boolean | No | Shows or hides the section header. Use true (default) when displaying as a standalone section on the purchase order details page. Use false when integrating into another component that already has its own header. |
withWrapper | boolean | No | Wraps content in a Card component with secondary styling. Use true (default) for standard page layout with visual separation. Use false when embedding inside another card or container to avoid nested cards. |
Admin panel configuration
The Purchase Order (B2B) feature must be enabled at both the store and company levels:
- Store level: Stores > Settings > Configuration > General > B2B Features > Order Approval Configuration > Enable Purchase Orders
- Company level: Customers > Companies > Edit Company > Advanced Settings > Enable Purchase Orders