Coupon Code Error Messages - Magento 2
This Magento 2 extension will allow you to customize error messages produced on coupon failure (when applied by the customer on the cart or checkout page).
These error messages are editable/configurable at two admin paths:
- At global settings at path Store -> Configuration -> RedChamps -> Coupon Error Messages
- At a specific cart price rule level, open the required cart price rule from path Marketing -> Cart Price Rules & specify the error message under the "Error Messages" section.
Description
Overview - Coupon Code Error Messages Magento-2 Extension
Magento natively produces the error message
"The coupon code "{coupon-code}" is not valid."
whenever a requested coupon code by a customer can't be applied. This error message is generic & doesn’t provide a clear understandable reason. Hence, this will lead the customer to a confused state & he may just leave the store without making a purchase or contact the customer service team.
To avoid this situation, we created this Magento 2 extension which will replace the generic error message with a real error message & you can customize that message from the admin panel as well.
For example, if a coupon code is allowed for a shopping cart with a subtotal greater than $200 & the customer has less than it then the error message can be
"This coupon code can be applied when the cart subtotal is greater than $200."
You can have a different error message for different situations like:
- Coupon doesn't exist or the cart rule is inactive.
- The coupon/Cart rule is expired.
- The coupon is not allowed for customer group to which customer belongs: For example, the coupon is allowed for logged in customers & the customer doesn't have an account or not logged-in then you can have a message like "This coupon code is only allowed for logged in customers. Please login to your account & retry."
- The coupon is allowed for current website/store: This can be the case when you are having a multi-store environment .
- The allowed usages for the coupon are exhausted.
- The customer cart doesn't qualify for coupon/cart rule conditions.
This messages are editable at global settings at path Store -> Configuration -> RedChamps -> Coupon Error Messages
OR you can override/configure these for specific cart price rules. In order to do this, just open the required cart price rule from path Marketing -> Cart Price Rules & specify the error message under the "Error Messages" section.
Reviews
Customer Reviews
- Rating
-
5
Change Log
- [New] Compatibility with Mageside Coupon Error Message extension
- [Bug Fix] Fixed problem with store level config fetch on storefront