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

product options

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-05-2003, 09:19 PM
 
e1front e1front is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 179
 

Default 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?
Reply With Quote
  #2  
Old 05-08-2003, 07:42 AM
 
e1front e1front is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 179
 

Default How to do product exception

please can you help me there ...
Reply With Quote
  #3  
Old 05-08-2003, 08:08 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

try it with the index as 0 (zero)
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 05-09-2003, 08:10 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default 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
Reply With Quote
  #5  
Old 05-12-2003, 07:18 AM
 
DeGrey DeGrey is offline
 

Member
  
Join Date: Sep 2002
Posts: 19
 

Default

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.
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 09:45 AM.

   

 
X-Cart forums © 2001-2020