Skip to main content

Date of Birth has no validation

12 years 1 month ago #176878 by cberry1971
-- url of the page with the problem -- : wodrocket.com
-- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred.
DateTime::__construct() [datetime.--construct]: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character

As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).

However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.

The validation must be in place to address this as the "allow" field is "Only Past Dates" but a inproper format is in fact not a past or future date.. it is not a date at all.

Any advice? Thanks.

Please Log in or Create an account to join the conversation.

12 years 1 month ago #176901 by nicolas
Hi,

Please use the advanced date picker instead of the simple date picker.

Please Log in or Create an account to join the conversation.

12 years 1 month ago #176943 by cberry1971
Ok. now it will not validate... it will simply ignore. Example:

1. go here: www.wodrocket.com/index.php?option=com_h...ct&task=show&cid=535

2. click "add to cart"

3. awesomescreenshot.com/0693q779dd

Please Log in or Create an account to join the conversation.

12 years 3 weeks ago #177929 by Jerome
Hi,

Your field is not required ; so if the user put something non valid, it will empty the field and if the field is not required, it will continue.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum