This is a usability problem reported by my client. When the credit card start date field is enabled, it defaults to January 1999. However, not all cards have a start date, and the checkout page itself even says "if present" next to the field. This can confuse customers as they cannot select a blank value here; some customers have called the store at this point as they are led to believe they must select a value here.
The attached patch fixes this by adding a blank row to the top of both the month and year start date dropdowns, and updates the start date validation function to succeed if both values are blank.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_credit-empty-start-date.patch | 4.57 KB | longwave |
Comments
Comment #1
rszrama commentedTagging.
Comment #2
cedarm commentedTested. Works.
The only think I would change is the return value comment:
Comment #3
Island Usurper commentedGood deal. Committed with Cedar's suggestion about the comment.
Comment #4
cnolle commentedThis patch also works in Ubercart for D5, though by manually applying it.
Good work. Saved my day.
- Christian
Comment #5
Island Usurper commentedOK, cool. Committed to 5.x-1.x as well.
Comment #7
greg.harveyIs there a patch for 5.x-1.x or will the D6 patch apply?
Comment #8
greg.harveyNever mind, I just tried it - for the reference of others, the D6 patch applies to UC 5.x-1.x too.