Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Change validation according to new Datatype

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-24-2022, 11:40 PM
 
Chinki Chinki is offline
 

Newbie
  
Join Date: Jun 2010
Posts: 9
 

Default Change validation according to new Datatype

Hi,

I need to change data type of product quantity in stock field from unsinged to signed.

I have done this by creating new module but problem is the validation. Still it is not accepting value less than 0.
Reply With Quote
  #2  
Old 03-25-2022, 03:46 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Change validation according to new Datatype

The validation id done through "jquery.validationEngine.js" - look for it in the files. You will need to modify the template that shows quantity and set its min/max/validation properties to ones supported by validationEngine
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Ed B. (04-04-2022)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:06 PM.

   

 
X-Cart forums © 2001-2020