Skip to content

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

OrderHeader Container

Version: 3.2.0

The OrderHeader container provides the following configuration options:

ParameterTypeReq?Description
handleEmailAvailabilityfunctionNoCallback to check whether a given email is available (not yet registered). Used to conditionally offer sign-up during guest order lookup.
handleSignUpClickfunctionNoCallback invoked when the sign-up action is triggered from the order header.
orderDataOrderDataModelNoA structured object containing order data used to pre-populate the header.

This container does not expose any customizable slots.

The following example demonstrates how to use the OrderHeader container:

import { render as provider } from '@dropins/storefront-order/render.js';
import { OrderHeader } from '@dropins/storefront-order/containers/OrderHeader.js';
await provider.render(OrderHeader, {
handleEmailAvailability: handleEmailAvailability,
handleSignUpClick: handleSignUpClick,
orderData: orderData,
})(block);