X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Change validation according to new Datatype (https://forum.x-cart.com/showthread.php?t=78391)

Chinki 03-24-2022 11:40 PM

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.

cflsystems 03-25-2022 03:46 AM

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


All times are GMT -8. The time now is 12:58 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.