CartMinimumOrderNotice
Says how much a business cart still lacks to reach the company's minimum order value, and that a quote can still be requested. Both amounts are before tax and exclude shipping, as the server checks them.
import { CartMinimumOrderNotice } from "@evolve-storefront/feature-cart/cart-minimum-order-notice";Renders inside CartProvider.
Preview
Usage
€120 short of a €500 minimum.
const { data: minimumOrder } = useCartMinimumOrder();
// On the cart page, above the order button.<CartMinimumOrderNotice minimumOrder={minimumOrder} />;Props
| Prop | Type | Description |
|---|---|---|
minimumOrder | CartMinimumOrder | null | undefined | From |
headingLevel? | HeadingLevel |
Any other props go to the root element, like on a plain HTML element.
Change the layout
Pass children to CartMinimumOrderNotice to arrange its parts yourself. Every part is exported from @evolve-storefront/feature-cart/cart-minimum-order-notice.
CartMinimumOrderReasonWhy the order button is off below the minimum, in one line, for its blockedReason: "Add €120.00 more to place an order."
| Prop | Type | Description |
|---|---|---|
minimumOrder | CartMinimumOrder |

