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.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | uc_option_image.zip | 8.64 KB | BrisCoder |
| #15 | uc_option_image.JPG | 40.66 KB | BrisCoder |
Comments
Comment #1
tchurch commented+1
Comment #2
acouch commentedthanks for posting this. will try to add this next time im hacking on this module.
Comment #3
LiveWire commented+1 and willing to pay for services.
Comment #4
summit commentedSubscribing, this would be a valuable asset to UC.
greetings, Martijn
Comment #5
BrisCoder commentedThis issue has been around for a while, has anybody made any progress on it?
Comment #6
brunorios1 commentedsub
Comment #7
dorys commentedsubscribing also. Could use this function big time.
Comment #8
dorys commentedWhat is the status of this? My client wants this for her store.
Comment #9
acouch commentedI'm sorry I haven't gotten to work on this. Will probably not get to it for a while unless there is a sponsor.
Comment #10
dorys commentedacouch... see http://drupal.org/node/1292278
Let me know how much and I'll see if my client will approve it.
Comment #11
dorys commentedAcouch-please see my request above. We are willing to pay a bounty.
Thanks
Comment #12
dorys commentedWhat is the status of getting this feature added. My client needs this function urgently. She is willing to pay a bounty.
Comment #13
tlogan commentedSubscribing. I'd like this option as well.
Comment #14
BrisCoder commentedThis 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))Comment #15
BrisCoder commentedForgot 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.
Comment #16
tlogan commentedCode 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.
Comment #17
tlogan commentedUsing 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?