Coupon Code Error Messages - Magento 2

$69.00
1 Reviews Add Your Review

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.
Compatibility (CE & EE) 2.3.x, 2.4.x
Composer Ready
Hyvä Ready
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 Coupon Error Messages Global Setting

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. Coupon Error Messages Cart Price Rule level setting

Reviews

Customer Reviews

Profile Picture of Rachael
By
Rating
Meet Expectations
Works as expected.

1 Item

Write Your Own Review
You're reviewing: Coupon Code Error Messages
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Change Log
Version v 1.0.3 - March 23, 2022
- [Bug Fix] Fixed problem with rule level coupon error messages for new rule
- [New] Compatibility with Mageside Coupon Error Message extension
Version v 1.0.2 - November 24, 2021
- [New] Compatibility with Hyva Themes
- [Bug Fix] Fixed problem with store level config fetch on storefront
Version v 1.0.1 - November 19, 2021
- Bug fix for store level admin config
Version v 1.0.0 - May 09, 2021
- initial version