Closed (fixed)
Project:
Ubercart Option Images
Version:
5.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2008 at 01:11 UTC
Updated:
23 Nov 2008 at 03:01 UTC
I have two attributes for an item. One is size and the other is color. Size has no images associated with it. Color does have images. When i enable both attributes for an item Option Images does not show the default image for that product. When i remove one of the attributes (size) and only leave color then the default image for that item shows.
Oddly enough whenever i switch from one option to another in the select box (i.e. from blue to yellow) nothing happens. The image does not change. this is the case with only one attribute enabled.
Comments
Comment #1
tjholowaychuk commentedHmm, the issue with the images not changing may be due to the markup since it relies on specific classes/id's in order to figure out what node/attribute/option it is switching etc. As for the other issue that sounds strange I cannot seem to replicate it though. Both the option_image_no_image and option_image_no_image_path are themeable so you may want to take a look at that.
Comment #2
tjholowaychuk commentedAny luck resolving this issue? I will be marking this as fixed
Comment #3
tjholowaychuk commentedComment #4
scottrigbyakolahi, I ran into this issue too -- the way I solved it was to change the weight for the attributes. So in your case, give your Color attribute a weight of 1, and Size a weight of 2. If the attribute with images is first, the default image displays :)
This may not be an ideal solution for people who want their non-image attributes first, but it does solve the problem so marking as fixed.