sumitarora5 / thinkrepo1

For bug tracker
0 stars 0 forks source link

Leaving " Enter Coupon Code " at confirm booking page blank leads to error "404" whereas it should prompt for entering coupon code #39

Closed deeptichugh closed 10 years ago

deeptichugh commented 11 years ago

Steps to reproduce

1.) Login with your credentials 2.) Choose a cab and click on book 3.) Enter Valid address 4.) It will lead you to confirm booking page 5.) Leave Coupon code blank and click on apply for availing discount 6.) it leads to error " 404 "

Screen shot attached for reference.

image

sumitarora5 commented 11 years ago

Fixed. Click won't work if coupon text box is empty.

deeptichugh commented 11 years ago

It should give a prompt saying enter a valid coupon code. As of now, it is not taking any action after clicking on " Apply "

sumitarora5 commented 11 years ago

Error messages are shown to help users to quickly track the error (if they have missed any field) and are generally helpful in forms with multiple fields. In this case user is clearly aware that he is hitting "Apply" without entering coupon code. So no need to display error. Showing errors in obvious scenarios look immature.