Discussions

Change product reference by image?

Hi,

i would like to let the end-user change the product reference by images. so they can click on the color of a shirt.

Hope someone can help me.

Posted: Sep 2, 2011

Comments

neardark on September 12, 2011

Hi Maze -

I guess if I were to tackle this, I would begin by setting up your products and display product(s) as outlined in this post: http://www.drupalcommerce.org/node/791

Except, for the Display Product: Reference Field Widget Type, I would choose Radio Buttons (rather than a Select List).

I would then combine this with some JavaScript/jQuery to get the desired end result.

I'll try to find some time to provide a better step-by-step but for now I hope this gets you started...

John McCormick / NEAR DARK