| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Validate Product options?? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() So i have about 20 product options and will have 500 - 600 products.
how can I validate them all using one script? don't want to have to put each product number and value in teh validation script.
__________________
xcart 5.1.2 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() ummmm... why is the value a number?
<option value="5908"> New Measurements </option> this seems crazy. How am I going to validate all these product options? Am i going to have to know the value and product option number of 20 different options for 500 products?
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Anyone? Was very doable in previous versions.
__________________
xcart 5.1.2 |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Used this. Also put it in a separate JS file so it would be global.
Code:
__________________
xcart 5.1.2 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() did you figure this out?
__________________
CottonAge.com - v4.4.4 - Gold Mirko.com - v4.1.12 - Gold We sell Bathrobes, Slippers, Towels & more at wholesale prices... |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() yes used the above code to make all select boxes with a selected index of 0 alert please choose options.
you will probably have to revise.
__________________
xcart 5.1.2 |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() Ok, I was looking for something like this too. where i want my customers, If they select one option other will become mandatory
__________________
CottonAge.com - v4.4.4 - Gold Mirko.com - v4.1.12 - Gold We sell Bathrobes, Slippers, Towels & more at wholesale prices... |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() but the way want is if the first option value is 1 then other option will be mandatory.
__________________
CottonAge.com - v4.4.4 - Gold Mirko.com - v4.1.12 - Gold We sell Bathrobes, Slippers, Towels & more at wholesale prices... |
|||||||||
|
|||
X-Cart forums © 2001-2020
|