I know there has been a lot of discussion surrounding uc_option_image lately, and I just wanted to take a second to collect our thoughts. This can help to prioritize features beyond bug fixes. In this case, if you speak up (I know someone has offered a bounty) you have the ability to shape future development.

I'm really interested in how everyone plans to use this module - that can give us a few use cases to build, and help us write documentation.

An obvious use case is wanting to switch photos to show different colors, like a t-shirt, shoe, or other garment. I'm sure there are others.

In the case I had, there was a base model with slightly different configuration. (think 3-legged table vs. 4 legged, square vs. round) We ended up splitting everything into different products, except where there was a simple question of style (different trim and paint).

What is your use case for this module?

Comments

SchwebDesign’s picture

I believe your above initial examples are certainly the basic use cases and are "good enough" to make many people very happy and make this module the valuable addition to Ubercart it should be, however another use case would be:

  1. Displaying a different image not only for each attribute option, but somehow the combination of attribute options currently selected.
    • I say "somehow" because i can see how, depending on the number of attributes with options, this would cascade into a very long list of attribute option combinations. Thus perhaps this would certainly be functionality to add down the road. One step at a time :)
    • I think this may have been mentioned in another thread with respect to having option images per SKU adjustment, rather than per attribute option
  2. For Example:

    A handmade sign having these attributes each with a few different options...
    • Sign Saying
    • Color Scheme
    • Sizes with different proportions

    ...would result in a unique product image for each attribute option variation combination. In other words, almost a "build your own product" format.

Thanks for your work on this. I hope the above is a valuable contribution.

cybis’s picture

@liberatr,

First, thank you for volunteering your time and energy with this important module.

I’m using ucoi here. It’s being used together with Ubercart Ajax Attribute Calculations and Ubercart Dependent Attributes. I think using those three modules together is pretty typical.

I currently have a patch for ucio to work with uc_aac which is required by uc_da.

Here are some thoughts for the future of the module

  • Currently ucoi loads all images on initial page load which can be slow and inefficient when products have many attributes and options. Maybe an Ajax approach would be better: option images would only be loaded as needed. A spinner could be displayed while an image loads.
  • It would be nice if images could be displayed for an option combination (as SchwebDesign mentioned) and/or for each selected options. For example, if one chooses a red (aid 1, oid 2) t-shirt with a picture of a green frog (aid 2 oid 5), the following images would be displayed:
    1. oid 2+5: an image of a red shirt with a green frog
    2. oid 2: a close-up picture of red fabric
    3. oid 5: a close-up picture of a green frog
  • It would be nice if the image for the selected option combination was displayed in the cart

I'll be glad to help with whatever tasks fall within my skill set (i.e. probably not much;).

Mixologic’s picture

+1 on Ajax and SKU images(combination of attributes) - as I think thats probably the only way it'll work. I recently submitted a patch for the attribute calculation page and it can get really complex really fast - i.e. 3 attributes with 4 options = 64 images - so the UI for assigning those images could be a little challenging as well, but this would absolutely rock.

mobonobomo’s picture

Now I am wondering if it would be possible to associate images with 'Adjustments', instead of the Attribute/Options approach. It seems like one of the problems with the UI with Option Images anyway is that the default 'editing' display usually breaks the layout, because the thumbnails are so big. #Mixologic seems to be onto something though... Granted, more than a dozen or two images on one editing page is kind of a nightmare. But, in reality, you could really have as many images on the product itself as you wanted.

I have not looked at the code very closely, but would piggy-backing on the adjusted SKUs for a given product with one or more attributes be the way to go? I guess one of my main issues is that this module seems so far removed from Ubercart's default image handling.

In terms of features that would be awesome to achieve (towards Uberproducts!):

  • Colors, definitely. Including the "color of t-shirt, with selected logo" scenario
    • Where the t-shirt product has two Attributes, each with several Options, one Attribute for t-shirt fabric color and another for design/logo screenprinting, +1 @ Mixologic and Cybis for describing this.
    • It has applications across the board (even though not exactly specific to my current project), and would be great to see. If this can work, then pretty much anything is possible. Like, fabric color, logo/design, color of logo/design.
  • Integration with AJAX Attribute Calculations and Dependent Attributes
  • Compatibility with required Attributes - most Attributes are required
  • Better integration with Ubercart default images - though this does seem like a long shot for some reason. By this, I mean, after installing UC Option Images:
    • the default image on the product page switches when the option is selected (instead of having another element of the layout to deal with)
    • the selected option image shows up in the cart next to the line item
    • the module gracefully regresses to Ubercart default images if the particular product does not have Attributes/Options or the product does have Attributes/Options but no option images set (think stores with a variety of products where it doesn't make sense to have to override the images for the product page itself)
    • and even switching of the image on catalog pages when selecting options from the product grid.

AJAX? ImageCache?

Here is a pretty good example of the problems faced (I am loathe to create four different products for the same thing, only in different colors): http://store.erisafiber.com/product/large-plastic-doorscope

SchwebDesign’s picture

+1 on Ajax and SKU images(combination of attributes) - as I think thats probably the only way it'll work. I recently submitted a patch for the attribute calculation page and it can get really complex really fast - i.e. 3 attributes with 4 options = 64 images - so the UI for assigning those images could be a little challenging as well, but this would absolutely rock.




I agree- I know this is the built in Ubercart functionality for adjustments, but it seems the UI page for product SKU adjustments gets unwieldy very fast. With the above example of 64 images resulting from combination of attribute options, the page only lists 20 combination (Alternate SKU fields) per page thus paginating across 4 pages; this isn't too much of a problem until you have even MORE attributes and options- I've had a few products with dozens of paginated adjustment pages. This makes the task of modifying/adding a picture (let along sku) for a given combination quite tedious, requiring you to guess which page the given combination is on, or to go through each page one by one.



I'm not sure if messing with the Ubercart code for this page is a good idea; regardless, I'm wondering if there may be a completely better way to approach this page with focus on usability even with many combination.


One idea:

    Use AJAX for editing and submitting Option Images:
  • Provide select fields for each attribute with relevant options allowing the admin to filter the list of combinations shown on the Adjustments or Option Images page using AJAX to update the list of option combos and their respective Alt. SKU & Option Images fields.

Just some thoughts. Thanks for this discussion.

Anonymous’s picture

I'd be grateful to know why my default option image on mysite does not appear but shows a no "image text" and the source code shows the following path: mysite.com/sites/default/files/imagecache/product_full/sites/all/modules/uc_option_image/noimage.png?? Not sure if this an imagecache issue or a file system issue or a bug in option_image module. i have radio options installed as well and on clicking on the radio button, the option image swap out works fine. Any pointers most grateful.

daedalo’s picture

Hi liberatr , thanks in advance :)

Im trying to use this module as part of a Product Configurator (im not sure about this term in English), im creating products as options, then i add an atribute to each producte and use the module to provide a image switcher for each option/product , allowing the user to see a different image for each option.

That's the idea, i haven't been able to get this working.

Greetings from Mexico

Cesar

clusterpod’s picture

I am experiencing the same issue as #6 porker. After an upgrade from D5/U1 to D6/U2, Option Images calls "mysite.com/sites/default/files/imagecache/product_full/sites/all/modules/uc_option_image/noimage.png"

I use the module to display the various colour options for clothing and textiles within a single model product node. This saves the customer from leaving the site to view the manufacturer's colour charts.

Thanks very much,

Andrei

summit’s picture

Hi, My use case is the following.
I am designing a fashion webshop with attributes color and measure.
The product-class images show the default color dress from every angel.
When somebody clicks that he wants to see the red dress, it should show the dress in red from every angel.
So all product-class imagers should be replaced by option images.
I think the easiest way in logic is that product-class image 1 replaced option image image 1, image 2 replaces image 2 etc...

Next to this views support would be great, to be able 1) set all option-images related to the product in a gallery, 2) to use option-images fields throughout reports.

See for specific feature request: http://drupal.org/node/1026702

EDIT: I went to Drupal Commerce. This sort of module is missing there, but other requirements are much easier to implement with Drupal Commerce (D7). May be this module should be less Ubercart and more Drupal Generic, so that Ubercart and Drupal Commerce can use it in the future?

greetings, Martijn

alice-kahn’s picture

Hi,

I'm looking for a solution to add images as option values to cck fields. Just like Yes/No options, I want Image1/Image2 as optional checkboxes.

Can someone please tell me if this modules can help me with this or any other module?

Thanks

Alice