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

Product options validation -> ?????

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-05-2003, 10:57 AM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default Product options validation -> ?????

How the #$#@$% do I use the product option validation? The given example is sooooo clear...

...NOT!

Maybe I shouldn't work on saturday evening
Hope someone has some reference material.

Cheers,
Guy
Reply With Quote
  #2  
Old 04-06-2003, 11:19 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

From my understanding of it - you eneter javascript in here.

Code:
if (product_option('Cover').selectedIndex == 1) { alert('You have chosen Hard cover for this product'); return true; }

The code that they have added in as an example is related to a product option that is named 'Cover' and if the customer selected the first in the list it will bring up an alert box saying "You have chosen Hard cover for this product".

Never used it myself and would certainly not try to explain it to a client using xcart, but can be useful sometimes I am sure.
__________________
ex x-cart guru
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 02:28 AM.

   

 
X-Cart forums © 2001-2020