I'd like to see a CSS class added to coupon-message when a message is displayed indicating that a coupon is expired or invalid so that I can theme those messages in a different way than those which indicate a coupon has been added or removed from the cart. Currently, the coupon-message ID is always used regardless of whether the message is considered to be a successful addition or subtraction of a coupon, or an "error" (invalid or expired coupon).

CommentFileSizeAuthor
#1 1315372-coupon-message-class.patch969 byteswodenx

Comments

wodenx’s picture

Status: Active » Needs review
StatusFileSize
new969 bytes

Makes sense. Attached patch adds class="coupon-error" if coupon is not valid. Let me know if it works for you and I'll commit to DEV.