Allow customers to enter promotional codes. Validates and applies discounts in real-time with clear feedback.
The Discount Code Input widget renders a text input and apply button that lets customers enter a Goose Commerce discount code on the Cart or Checkout page. When a valid code is submitted, the discount is applied to the cart session.
| Setting | Description | Default |
|---|---|---|
| Placeholder Text | Hint text displayed inside the empty input field | Enter discount code |
| Button Text | Label on the apply button | Apply |
| Error Message | Text shown when an invalid or expired code is entered | Invalid or expired discount code. |
| Success Message | Text shown when a valid code is applied | Discount applied! |
| Show Applied Discount | Automatically show the Applied Discount widget below on success | Enabled |
Place the Discount Code Input on the Cart page so customers can apply their code before reviewing the final total. Include it on the Checkout page for stores where customers may not visit the cart page separately. Hide it on the Checkout page if it is already available on the Cart page to avoid duplicate entry points.