I've got a product line that has exterior and interior color options. But, when I apply images to the options, only one option image window shows up (and it reflects the last color chosen of either attribute).

As a feature for the next version, it would be great if there was a display window for each attribute and therefore each option image on the product node page. For example, there would be a select box and image example for Exterior color, and a separate select box and image window for interior color choice as well.

I'm not a coder or I'd take a shot at it myself. If anyone has any ideas on how this could be easily done, that would be great. I saw this was feature requested a couple years back for version 5, but thought I'd re-request it.

CommentFileSizeAuthor
#14 uc_option_image.zip8.64 KBBrisCoder
#15 uc_option_image.JPG40.66 KBBrisCoder

Comments

tchurch’s picture

+1

acouch’s picture

thanks for posting this. will try to add this next time im hacking on this module.

LiveWire’s picture

+1 and willing to pay for services.

summit’s picture

Subscribing, this would be a valuable asset to UC.
greetings, Martijn

BrisCoder’s picture

This issue has been around for a while, has anybody made any progress on it?

brunorios1’s picture

sub

dorys’s picture

subscribing also. Could use this function big time.

dorys’s picture

What is the status of this? My client wants this for her store.

acouch’s picture

I'm sorry I haven't gotten to work on this. Will probably not get to it for a while unless there is a sponsor.

dorys’s picture

acouch... see http://drupal.org/node/1292278

Let me know how much and I'll see if my client will approve it.

dorys’s picture

Acouch-please see my request above. We are willing to pay a bounty.

Thanks

dorys’s picture

What is the status of getting this feature added. My client needs this function urgently. She is willing to pay a bounty.

tlogan’s picture

Subscribing. I'd like this option as well.

BrisCoder’s picture

StatusFileSize
new8.64 KB

This is a pretty quick hack job, but enables uc_option_image to handle multiple changing image blocks for as many attributes as is required per product.

To get it to work, go to store admin -> configuration -> attribute settings. Select which attributes need an option image block. From there, it's same as usual - go into your product, edit, and add images to your attributes.

At this point, you cannot use different imagecache settings for different attributes, however you can hack that easily enough by simply modifying img size in css for each option image block.

Both uc_option_image.module and uc_option_image.js have been modified (based off a May 2011 dev release of uc_option_image). If someone is able to make a proper patch file, that'd be swell :)

UPDATE: On about line 88 of uc_option_image.module in this zip file, change the following line, otherwise products with just 1 OCOI block won't show the block
Change:
if ($attribArray[$aid] == 0)
to
if ($attribArray[$aid] == 0 || empty($attributes[$aid]->aid))

BrisCoder’s picture

StatusFileSize
new40.66 KB

Forgot to add a screenshot, and can't edit the previous post to add one.

I've attached an image that shows it working based on each colour (yes, Aussie spelling) attribute.

tlogan’s picture

Code from #14 works great. Thank you!

How can I theme this now? What I'm envisioning is for each picture to be displayed above each attribute. Any help would be appreciated.

tlogan’s picture

Using CSS to get close to the layout I'm after but the attribute images are not displaying in the same order as the attributes. Is there a way to sort the attribute images according to the weight of the attribute?