I would like to have the functionality for image to change when the user selects a different variation.
ie, If I’m selling a T-shirt and have create two variations (Red and White). I would like for the main product image box to the image when the user selects a color. The Red shirt image should be displayed when the Red “Color” variation is selected. On the backend there is an area to add product thumbnails for each variation but that does not correspond with any change to the product image on the frontend.
I hope this isn’t too late..
I was also looking for this a bit back and found the following on the internet, can’t remember where…
I have purchased the gold cart option, but I’m not sure if it’s a prereq for this to work..
in your theme header file, add the following:
then in the store->presentation screen, choose to copy the wpsc-single-product-page to your theme.
Edit the file and add the following block of code which should give an image for each variation:
Finally, at the bottom of wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js I updated the JQuery so it displayed the full pic ont he main product picture.
I think this is already in the wpsc-single-product-page page, but for completeness, it will give you the select dropdown..
That should be it – the pictures aren’t being controlled by stock so lookout for that It should be easy enough to add in though.
I was unable to get the proposed solution to work (maybe doesn’t work with the latest).
There is a plugin called SP WPEC Variation Image Swap . It works well with WP E Commerce 3.8.7.6.2 (but not 3.8.8 beta).
Note: to set the variation pics, edit the main product and once you make variation/sets available by checking them and hitting the update button, you will see each variation listed below, with a link to EDIT each variation. The part that took me a while to figure out is that for the variation image it is not enough to simply select the image by clicking ‘manage product images’, but you must go there to choose your image (click ‘show’ next to the image if already in the media library), THEN you must click the ‘use as product thumbnail’ link, save, save all changes, and hit ‘publish’ which will bring you back to the main product EDIT screen.
One pain is you have to do this for every combination of variations. For example, on a t-shirt site with sizes and colors, each color variation pic must be added for every size variation (S blue, M blue, L blue, XL blue, etc etc), but all-in-all a very handy solution