The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 01-31-2012, 10:06 PM
Telesport's Avatar
Telesport is offline
 
Join Date: Jan 2012
Posts: 15
Default

Field validation product option


Is there a way of field validation on production options e.g. a text field.
In sweden we use bithdate in variation with a personal 4 digit number.
This called personnummer ("person number" eq to american social security number).
10 digits
910129-3123
(born 1991 the first of january the 29th . 3123 are personal code from the gov.)
To order product we need to run a credit validation check on this number in order to place the order. We need it on each product the customer order.
  #2  
Old 02-01-2012, 12:44 PM
Eugene Rimmer's Avatar
Eugene Rimmer Eugene Rimmer is offline
Senior Member
 
Join Date: Jan 2011
Location: Ecwid headquarters
Posts: 7,765
Default

Unfortunately, there is no any kind of validation for user input in the product options in Ecwid, but you can achieve this with a custom script that finds the appropriate field in page, connects its listeners to appropriate events of that field, validates it according to your custom pattern and shows errors to customer if any.
  #3  
Old 02-01-2012, 02:26 PM
Telesport's Avatar
Telesport Telesport is offline
 
Join Date: Jan 2012
Posts: 15
Default

Thanks Eugene
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
field, product option, validation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:37 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.