| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Select Product Option Display New Image? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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. |
|||||||
#2
|
|||||||||
|
|||||||||
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. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|