X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product options validation -> ????? (https://forum.x-cart.com/showthread.php?t=2171)

guytje 04-05-2003 10:57 AM

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

funkydunk 04-06-2003 11:19 PM

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.


All times are GMT -8. The time now is 05:45 PM.

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