I would like to have an individual image for each option. What's the best way to go about this?

Comments

tjholowaychuk’s picture

node/xxx/edit/options
there are image fields to do this.

tjholowaychuk’s picture

Status: Active » Closed (fixed)
steveoliver’s picture

Title: Multiple Images - Separate Images per Option » Display Multiple Option Images
Status: Closed (fixed) » Active

I should have said "attribute". I would like to have an individual image for each attribute. I have three attributes each with 6 options; I want to have 3 different attribute images displaying whichever of the 6 options is selected for that attribute. Does this make sense?

tjholowaychuk’s picture

I think I understand what you are saying. It does not currently allow for 'default' attribute images. In most cases the images will be on a per-product basis so that was not an area I choose to cover with the module.

steveoliver’s picture

I don't think we're understanding eachother yet... I have Size, Color, and Extras - these three attributes don't need default images, they just need their own place to display their selected option images. So changing the option of Size would update a "size" image, Color would update "color" and Extras would update "extras". So Size would not overwrite the Color image, for example (as is the case now). Know what I mean?

steveoliver’s picture

Title: Display Multiple Option Images » Option Images per Attribute
StatusFileSize
new16.46 KB

(Attached image should illustrate what I'm after)

tjholowaychuk’s picture

Right I see, that was not the intension of this module unfortunately so you may have to expand upon it yourself, although that change would not very terribly hard

tjholowaychuk’s picture

Status: Active » Postponed
timfong’s picture

Do you have any hits for making this kind of stuff?

tjholowaychuk’s picture

Learn to program lol

mikeurturn’s picture

If he knew how to program he would a) most likely not be using Druapl and b) not be asking in here.

tjholowaychuk’s picture

c) pay people

mikeurturn’s picture

you mad?

tjholowaychuk’s picture

nope lol im just an asshole when it comes to open source. I only help other developers, not just random people who dont want to pay for things. I have over 60 open source projects on github so I cant really support old Drupal stuff for randoms

Poieo’s picture

StatusFileSize
new34.71 KB

Better late than never I guess, but here is a 5.x version of the module that displays multiple images side by side.

Edit: You can see it in action here.

porto88’s picture

+1 for Feature Request,
I am going to try and convert the 5.x version to work with 6.x

----------------
Porto88 - Andrew
http://remotefavs.com

Poieo’s picture

That would be great porto88. Just a heads up, there are some issues with the install file in the version I posted. We never updated it as we just added the tables manually...

idealform01’s picture

can you please expand on this? I want to get this to work but am not sure how.

thanks

Poieo’s picture

You need to add two tables to the DB:

attribute_X_option_image_default
product_X_attribute_option_image_default

Also, you need to edit two tables:

ALTER TABLE uc_attribute_options ADD COLUMN fid int(10) AFTER ordering;
ALTER TABLE uc_class_attribute_options ADD COLUMN fid int(10) AFTER ordering;

This is a pretty thorough re-write of the original D5 version so I wouldn't mess with this on a live site.

You're not going to be able to keep any attribute images you currently have...they will all need re-uploaded.

Your best bet is probably the following:

1. Install the original D5 version.
2. Delete the module folder and upload this one.
3. Add the above mentioned tables to the DB.
4. Cross your fingers...

If you get that far and still no luck, please post again. My developer is out of touch for a couple days so I can't offer much help beyond this right now.

acouch’s picture

Status: Postponed » Closed (won't fix)

The 5.x version is no longer being supported for this module. We are cleaning up the 6.x version and preparing for the 7.x version.