Is there anyone out there that has managed to get this module to work?

I think this site has got it working http://www.chapinfurniture.com/products/sofas/fabric-leather/brendon-sofa

Im a designer and I've been trying to resolve it for almost 6 months!!!

Basically I'm building a friends Tee Shirt website and need the smaller thumbnail version (which is a different colour) to switch the main image.

I had similar issues to previous users, Ive tried everything from patches to cross referencing different modules to clean installs and updates and no luck yet!
If there is a genius out that and doesn't mind enlightening me and possibly many others as to how its done and sharing your knowledge with us that would be much appreciated.

Who knows we may find the much updated version to this module!

I thank you all for your time!

Sav

Comments

SeanK’s picture

I installed the recent patch on the other thread. No change.
To get even the No Image image to show, the name had to be changes from no_image.png to noimage.png, and it had to be placed in /sites/all/modules/uc_option_image/images/ directory I had to create.

This is a fresh Drupal 6.14 with UC2-RC7 installed Thursday. I was trying with TopNotchThemes Acquia Prosper theme, and with Thickbox, but have tried other themes and with Thickbox off....no luck other than now seeing that No Image image 100% of the time.

I was able to verify that images are added to the /sites/default/files/option-images/ directory.

Help? Anyone? I have a feeling that there is just something obvious we are missing here that could help out a whole lot of us. My site isn't live (although I wish it could be...I need this functionality) so I'm willing to allow my site to be a guinea pig if need be. Just let me know.

TrickerTreater’s picture

I have not. I tried and tried but couldn't get past the dreaded "No Image." I still don't think this module should be a release as it doesn't even install.

I abandoned it for this module: http://www.ubercart.org/contrib/8824 There is even a working example. It take a little tweaking, but it does work and well. If you use it, please consider making a donation to the guy who built it.

SchwebDesign’s picture

It IS very frustrating indeed that this module is posted/listed on the project page as recommended & working while it is neither (doesn't install, doesn't function)... even while having a nice screencast that makes us all drool, showing it working perfectly.

I have gotten this to work, but then I installed the Attribute Stock Filter (6.x-1.0-beta12) module and it stopped working- i can't prove that it was BECAUSE of the Attribute Stock Filter module that it stopped working, but it's possible. It could've also been some weird caching issue or lack of cron run issue or lack of update.php run issue (although i don't have caching on and don't think the latter two should effect whether or not this module works once installed). Either way, i can tell you that at one point i did have it working PERFECTLY- but it was short-lived and i haven't been able to get it to work since.

...so since then i have been doing my best to piece together the contributed snippets/revisions/patches, etc from http://drupal.org/node/550344#comment-2004092 and http://drupal.org/node/507426 for example. I have done my best to be through...

You can see what i have working so far here: http://www.schwebdesign.com/countryinspirationsdrupal/content/womans-shoe
Althougth the "no image" placeholder does show by default, upon selecting the different color options the option images do fade in and out respective to your selection. So it seems this is working- the only problem seems to be the lack of a DEFAULT IMAGE assigned/displayed for the product node. Also, i have not managed to get the No Image IMAGE to show yet, i'LL have to try what SeanK mentioned above.

I have attached the combination of files i'm using that gives me the almost working example i have explained above. ..I wouldn't recommend using this unless trying to help get this think working... i also believe what's posted at http://drupal.org/node/550344 is more complete than what i'm attaching here, however it doesn't even work for me.

@aaronghawkins yes perhaps it would be ideal to switch to the module you mentioned.... although i agree with SeanK that this module seems very close to working- there just is something we're missing- be it in the code or not- this module can't be far from functional- it'd be nice to have someone who "knows what they're doing" take a look at this.

Lets keep talking about this until
- this module gets a project maintainer who knows what they're doing & can make progress
- we figure out the problem(s) and post the fixed version to the PROJECT PAGE!
- this module becomes obsolete because of or is combined with or is replaced by the attribute images contrib mentioned by aaronghawkins (thanks) here http://www.ubercart.org/contrib/8824

OH and i'm using Drupal 6.14 and Ubercart 2.0 rc7

any thoughts?

tjholowaychuk’s picture

It worked perfectly for all of my environments when I wrote it. However of course there will be issues when using alternate themes etc. This is where the community comes into play. It is not my fault that the Drupal community is relatively useless and unknowledgeable.

TrickerTreater’s picture

Yowch. I wasn't intending to say anything negative. I don't think anyone is/was trying to blame anyone or trying to imply fault. We all appreciate your work (because we know you don't work for us). But I think it speaks volumes that the original module will not even install (how did it work perfectly when you wrote it if it won't even install?), let alone work. I do think that saying blanketly that the nice unpaid willing volunteers who do put in their time into other people's projects are far from "useless and unknowledgable." Seriously, I appreciate you work and if I could pay you, I would.

This line of conversation has nothing do do with the module. I think this module is a great idea and while it may have worked, it doesn't now. I lost numerous hours troubleshooting it (path issues, other module conflicts, filter conflicts) and I'd hate for other folks to lose hours when there is a viable alternative. Just trying to help.

SchwebDesign’s picture

tjholowaychuk, i apologize if i sounded harsh and unappreciative. I do very much appreciate the work you did to write this and you have a very good point. I certainly didn't intend to be negative either, but now reading over my last post i can see how it appeared that way. I just wish it was possible to use this module that you spent so much time creating- and i very much appreciate that you have shared it with us. All issues aside, your module would be extremely useful and i believe widely used and regarded as one of the best Ubercart contributions- if we could get it to work. If this indeed defines me and the rest of us who can't figure this out as "relatively useless and unknowledgeable" then we need your help- as you are the expert on this module. Everyone has a path they move along as their collective knowledge increases- everyone has their areas of expertise - everyone can contribute in their own way - we are trying (I am, as someone with enough moderate knowledge & experience to give specific feedback on my progess trying to get this module to work and other specifics). I have put at least 6 hours into trying to get this to work, looking in to the code, tweaking things- it's true i don't KNOW enough to solve it myself... so that's why we (I am) are coming to you- you are the best resource we have. How can the community function if the maintainer(s) are not willing to work with the community (diverse in their knowledge and experience as they are) simply because the community is "relatively useless and unknowledgeable"? Indeed there is a hierarchy of within this community, and indeed i may be closer to the bottom with respect to knowledge, influence, contributions, etc... but i'm spending time just the same doing "my part" to contribute and send the information to you who are at the top of the hierarchy- you who are the experts and "know what you're doing." I admire your place in the hierarchy and all you've done for the rest of us, and i'm progressing upwards as best i can as i learn and experience and communicate with you.

You mentioned the reality of issues occuring when using alternate themes, etc... i amusing garland, a fresh install of drupal 6.14, ubercart 2.0 rc7... this i would consider the "default environment" except for the fact that yes you probably created this module to function with an earlier version of ubercart/imagecache, etc... although i don't see the successive versions of these required modules causing problems... but then again i obviously don't know enough to help you or pillarsdotnet fix the issues with this module- although trust me i wish i did and am trying.

Im' in the same boat as you TrickerTreater (good points). It would be nice to have the few issues for this module packed together/fixed- lest all the good, hard work that tjholowaychuk, pillarsdotnet , gtin, and all others have put into this module go to waste because we can't get it to work.

Tell me what i can do to help and i will! I'm (we're) simply looking for guidance.

gtin’s picture

Hi SchwebDesign

I think it would help if you describe what it is not working for you. This was the first time I made changes to a drupal module. It is working fine for the website I created for my wife. you can check it out at liascrafts.com.

SeanK’s picture

Hey tjholowaychuk, aren't you a part of the Drupal community?

I program in fourteen languages, and have been writing code since I got my brand new TI-99/4A. Just because someone a) doesn't know the specifics of PHP b) doesn't have the time to dig in and solve all the code's issues, and c) doesn't offer all the details you need to correct the problem on the first post, doesn't mean they are useless and not knowledgeable (unknowledgeable is not a word). Perhaps some of the users are not coders? With no responses back on what to check, or for more information on what yo may need, we are left out to dry in the wind.

This didn't work for me on a mostly clean install, even with a standard theme. So what do you need to know so that we can get this working as a team?

I wonder, does Vision Media still support this development like the first page says? I'd gladly donate if I knew that a version that worked on multiple setups was forthcoming.

gtin’s picture

Hey, I am just a user of this module as you are. I actually downloaded the module went through all the threads, made fixes, and enhancements to get it working for my needs. I posted the fixed in this thread http://drupal.org/node/550344#comment-2004092 (Option Images Bug Fixes and Enhancements). So when I ask what is not working, I would assume that you tried the post from my thread, this is working for other people. I do not know the particularities of your problem if you do not describe it.

SchwebDesign’s picture

gtin, thanks for your advice.

I did explain a lot of what i'm experiencing above in post 3 (http://drupal.org/node/589476#comment-2091302) but it was not specific to the latest (yours at http://drupal.org/node/550344#comment-2004092) compilation of fixes- which was awesome and i did appreciate. The reason for this was that i had tried what you have at http://drupal.org/node/550344#comment-2004092 but it didn't work for me (perhaps I did something wrong -or there were other factors) so i moved on to trying to incorporate other fixes i found... but i'm going to start over and simply move forward from your latest fixes update and give feedback...

I'm going to do a clean install of Drupal 6.14, ubercart 2.0 rc7, imagecache, etc and your zipped up package at http://drupal.org/node/550344#comment-2004092 and let you know any specifics. I see it is working for you at liascrafts.com. which is awesome.

I'll get back to you and let you know what happens asap- thanks again for your advice... :)

SeanK’s picture

gtin,

/sites/liascrafts.com/files/imagecache/attribute_preview/option-images/HappyHolidays.jpg

Is there some configuration you had to do to get this URL? I looked into my imagecache directory and the directory attribute-preview isn't there. Could this be a key to what is wrong?

gtin’s picture

Attribute preview is a configuration I created in imagecache for dispalying the attribute images. the option image module will allow you to select existing image cache presets. If none of the existing preset works for you then you would have to create your own and that is why my images are in attribute_preview. Attribute preview is not hard coded in the module. For the images to show up for anonymous users you have to set the permissions correctly in your user permissions page.

SchwebDesign’s picture

Alright, I have installed everything fresh with default theme Garland.
I installed UC Option Images from http://drupal.org/node/550344#comment-2004092, (I downloaded and installed uc_option_image_0.zip 20.04 KB)
Here are the details. See http://www.schwebdesign.com/countryinspirationsdrupal3/drupal-6.14/node/1

log in with "admin" and "test" as password as i haven't configured any permissions yet.

everything looks like it should work except for two things:

1.) when going to http://www.schwebdesign.com/countryinspirationsdrupal3/drupal-6.14/node/1 of course "no image" is displayed as default, and upon selecting options, the JS doesn't seem to work and it throws this error:

Error: imageproperty is undefined
Source File: http://www.schwebdesign.com/countryinspirationsdrupal3/drupal-6.14/sites...
Line: 94

2.) When editing product option images at http://www.schwebdesign.com/countryinspirationsdrupal3/drupal-6.14/node/... the table is maligned but still seems to work fine- has anyone else noticed this?

and at: http://www.schwebdesign.com/countryinspirationsdrupal3/drupal-6.14/admin... everything looks fine.

feel free to look around:

SchwebDesign’s picture

Okay i have some good news: I did another fresh install (of the uc_option_image_0.zip at http://drupal.org/node/550344#comment-2004092). and this time it is working BUT:

it stops working upon selecting "required" for the Color attribute i added to the "Shoe" Product at http://www.schwebdesign.com/countryinspirationsdrupal5/node/1/edit/attri...

to test this out log in with "admin" and password "test" at http://www.schwebdesign.com/countryinspirationsdrupal5/node/1 where you can also see this module working!

PROGRESS!!
Perhaps this is the same problem everyone else is having?

gtin’s picture

Here is what I noticed. It seems that the javascript is not being executed. When you extracted the module did you extract with the right user? when using firebug, I can not debug the javascript file. It seems the webserver is not finding the file probably due to permissions on the folder where the module resides. what did you do different from the first install to the second install?

gtin’s picture

I see you got it working. It seems that the attributes do not work on the front page but once you click in the product page then it is working fine. In my website I do not have attributes in the front catalog page that is why I do not have any problems.

SchwebDesign’s picture

Thanks for your response gtin - with respect to my comment #13 above and http://www.schwebdesign.com/countryinspirationsdrupal3/drupal-6.14/node/1:

I believe the cause of the javascript issue was this:
upon enabling/installing the ubercart modules my server returned an out of memory error- ( i guess i enabled too many modules at once). I believe this is the most likely cause for what you are describing above... and since i now got it basically working (see post #14) i'm even more sure because i didn't do anything else different between the two installs...

so... the install at http://www.schwebdesign.com/countryinspirationsdrupal5/node/2 which you'll notice is working ( i increased the php memory limit with php.ini and enabled the modules you see enabled (if you log in) in smaller groups so there were no out of memory issues upon install). That javascript error now does not show up. A apologize for that digression from the issue at hand.

SchwebDesign’s picture

Indeed, i raelized from some other threads that the attribute selections and hopeful image switch does not occur on catalog pages... that's fine with me. I've only been trying to get it to work on the product node.

Once again for everyone...
what seems to cause this problem for me is this:
selecting "required" for THE FIRST OPTION under the "attributes" menu while editing a product.
As long as the first option in that list is not "required" this module works.

peanutbutterdesign’s picture

Just like to say how amazed I am to see how many people responded to this query and I would like to thank everyone for their help, Which ever side of the fence your comment has been on, its has been positive and constructive for the progress of this module to survive and evolve.

I'll try the same as SchwebDesign, with clean installs and uploads of relevant modules and I'll let you know how I get on.

One thing that I was thinking whilst reading all your comments is that we are all experiencing certains issues to the way we configure this module (and others for that matter), so I think the next stage for (all) drupal modules would be to have a basic setup guide to configuration (so standard things you need to get it going) I know you usually get a txt file or module tells you what else needs activating but I think a step by step pdf guide would be nice.

So once I have this up and running, I'll put one together and we can take it from there.

Once again I like to thank you all for your time and hardwork.

Sav

tjholowaychuk’s picture

I have not had time to read all the feedback here. I no longer work with Drupal (I check back from time to time), however I may be working with it again soon due to new employment. We will see how things go! thanks for the support, any donations are certainly welcome and much appreciated. It is tough to make everyone happy of course, but perhaps if / when I have some more time things can be dealt with.

One issue is that Drupal needs a CSS selector API, allowing administrators to tweak the location of dom elements via a GUI. So that JS does not need to be changed depending on specific themes. etc.

acouch’s picture

Status: Active » Closed (cannot reproduce)

Closing this as it is a support request that is over a year old.