The Promotions
plugin includes a CouponEditor
UI component that:
Provides a coupon code entry field.
Displays the promotions that have been applied to the order.
Provides a Remove button that allows a customer to remove a coupon-based promotion.
The CouponEditor
UI component is rendered as part of the shopping cart (CommerceAccelerator/Plugins/ShoppingCart/src/main/web-app/CartEditor.js
) and checkout (CommerceAccelerator/Plugins/Checkout/src/main/web-app/Checkout.js
) pages.
The view model (JavaScript file) and HTML renderer for the CouponEditor
UI component is defined in the CommerceAccelerator/Plugins/Promotions/src/main/web-app
directory. This UI component is not associated with an Experience Manager cartridge.