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 (https://forum.x-cart.com/showthread.php?t=2574)

e1front 05-05-2003 09:19 PM

product options
 
I have a product for men's shirts
I added an option called "color"
and the option list is
- Select a Color
- Blue
- Red
-Yellow

then i tryed to add exception to disable first selection
if (product_option('color').selectedIndex == 1)
{ alert('You have not chosen a color'); return false; }

but nothing happens???
where did i go wrong?

e1front 05-08-2003 07:42 AM

How to do product exception
 
please can you help me there ...

shan 05-08-2003 08:08 AM

try it with the index as 0 (zero)

snorocket 05-09-2003 08:10 PM

needs work
 
the product exceptions need serious work to make it easier, i also don't like the part that it does'nt work untill you hit add to cart button, it would be nice if it worked when the customer choose the pull down menu

DeGrey 05-12-2003 07:18 AM

I agree that the product exceptions are a little funky. It would be nice that if a previous selection disallows something in the current selection, it wouldn't even show up as an option in the dropdown. Has anyone been able to achieve this? I know it's possible, just not sure about the x-cart integration.


All times are GMT -8. The time now is 05:59 AM.

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