Thank you for great module.

How can i show error message in discount code pane if user entered a random discount code?

for example: if i enter random strings in the discount code box and click 'click to calculate discounts' button, it doesn't show any messages. I'd like to show message like "wrong code"

Can somebody lead me to the right directions please? thank you.

CommentFileSizeAuthor
#2 warning.png7.6 KBbellagio

Comments

jrust’s picture

Status: Active » Fixed

It now shows a warning message if the code didn't produce any discounts.

bellagio’s picture

StatusFileSize
new7.6 KB

It does show the message 'Warning:Coupon does not exist or is not valid.' but this message shows automatically in checkout page without entering any codes (screenshot attached).

Any other workaround so that message shows only when wrong code is entered?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

darkodev’s picture

Having the same issue today after our client tested with no discounted items in cart. Agree that it shouldn't throw a scary warning if no discount code was entered.

We actually hid the discount text box because we never want users to enter a discount code (discounts don't work without this pane enabled).

+1 for feature request to only show error on incorrect discount code.

abemonkey’s picture

Status: Closed (fixed) » Active

Bellagio is right. This is stupid to present the user with a warning that indicates and invalid code has been entered when now code was entered at all. Please fix!