From c756f8d58b95c3164f1eb75706c7952fbb7e9d6d Mon Sep 17 00:00:00 2001 From: Casey Grzecka Date: Wed, 4 May 2022 14:15:05 -0700 Subject: [PATCH] Adds how to allow customer price overrides ...on order item types --- .../04.displaying-products/02.add-to-cart-form/docs.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/user/pages/03.commerce2/02.developer-guide/03.products/04.displaying-products/02.add-to-cart-form/docs.md b/user/pages/03.commerce2/02.developer-guide/03.products/04.displaying-products/02.add-to-cart-form/docs.md index 43a78fceb..1bf89819d 100644 --- a/user/pages/03.commerce2/02.developer-guide/03.products/04.displaying-products/02.add-to-cart-form/docs.md +++ b/user/pages/03.commerce2/02.developer-guide/03.products/04.displaying-products/02.add-to-cart-form/docs.md @@ -85,6 +85,15 @@ You can add the Add to cart form to a custom content type by adding an *Entity r ![Rendered product with add to cart form](../../images/add-to-cart-ui-8.jpg) +### Allow Price Overrides + +It is possible to allow the customer to override the price of an item being added to the cart by enabling the "Unit Price" field on the "Add to cart" display mode of the Order item type used. + +This will result one of two outcomes based on the "Require confirmation before overriding the unit price" configuration of the "Unit Price" widget setting. + +1. When confirmation **is required**: an "Override the unit price" toggle will appear above the "Add to cart" button that will show an editable price field when toggled on. +2. When confirmation is **NOT** required: An editable price field will show above the "Add to cart" button + --- In the next section, we'll look at configuration options for displaying a product's attributes, such as *Color* and *Size*.