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

Select Product Option Display New Image?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-06-2004, 07:50 PM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default Select Product Option Display New Image?

Hi guys,

what would be the code to do this, say you had a t-shirt for sale and 3 colors as product options :red, green, and blue. By default, the product detail page shows the red shirt, but what code would you have to implement so that when the customer chose green or blue in the dropdown box, the image would change to the respective colors?

thanks.
Reply With Quote
  #2  
Old 05-06-2004, 08:10 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Basically requires some hefty javascript coding, as well as php and smarty implementation. Drop down selector would need to check if a particular option name exists to add an onChange javascript event to the select drop downs. You would then need to create a javascript function to pass the values to and then inturn interrupt the values to swap out the current image with a new one.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 05:25 PM.

   

 
X-Cart forums © 2001-2020