Active
Project:
Ubercart Option Images
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 May 2008 at 12:44 UTC
Updated:
7 Oct 2013 at 20:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
tjholowaychuk commentedThank you, I like the suggestion I will certainly add this to the todo list :)
Comment #2
jhebel commentedThat's great! Thank you.
Comment #3
tjholowaychuk commentedComment #4
ablewave commentedAny progress on this feature? I am having other problems with this module as well, but if this isn't active I won't use it anyway. Having the wrong color item shown in the cart creates a major uncertainty in the buyer's mind and can prevent checkouts.
Comment #5
tjholowaychuk commentedUnfortunately I have had no time to work on this one as I have been working on a bunch of other projects. For a quick-fix you may want to simply override the theme in order to make the picture switch appropriately.
Comment #6
scottrigbyHi tjholowaychuk, I just found this module - thank you!
+1 for this feature :)
In the meantime, can you give any tips about how to override the theme function?
Comment #7
Poieo commentedGreat module...add one more to the request above. Any insight on how to accomplish this through a theme override would be great.
Comment #8
mattcoady commentedAlso looking for a fix as well. If it helps, in "uc_cart.module" on line 1271, you'll find the line:
$data['image'][] = array('data' => drupal_render($form['items'][$i]['image']), 'class' => 'image');
Which appears to be the code to present the image in the cart. Anyone know what to do with this?
Comment #9
pillarsdotnet commentedWill be adding a "default image" feature in version 6. The support code is already there; just need to add the UI. Once it's working, I'd appreciate any assistance in backporting to 5.x as I no longer have access to a 5.x server.
Comment #10
tjmoyer commentedFor what it's worth, I just hacked the UC Cart module to show the option image. I'm using UC Cart 6.x-2.0-beta5 and options images 6.x-1.4. Here's my code (may be a bit simple, but it works).
I haven't fully tested this, but seems to work so far.
Added the following function, which mimics the output of uc_product_get_picture() in UC Product module, at the end of the file:
Then I replaced this line:
with this:
Now my cart pulls in the selected option image rather than the default product image. I'll attach my hacked copy of uc_cart.module, as well. Hope this helps!
Comment #11
pillarsdotnet commentedIt should be possible for uc_option_image to do the swap via javascript without hacking the cart module.
Comment #12
acdtrp commentedIt would be great if the modules does that by itself but for now the tjmoyer's hack works for me.
Comment #13
zapscribbles commented+1 for this feature, would be very very handy as customers would probably get confused otherwise
Will use tjmoyers hack until this feature is implemented. Love ya work
Comment #14
Militopedia commentedHello,
Has there been any update on this feature request?
I don't like to hack the cart module, but if the option image module has not yet been updated, that appears to be the only option (for me without in depth programming knowledge).
Thanks.
Roger
Comment #15
Militopedia commentedHello again,
Just some helpful comments for the hack in #10:
- I had to replace "Thumbnail" in the first code line of the first code block in #10 with my actual imagecache preset. In my case it was "Cart". Otherwise the file is not found.
- The second code block replacement has to be done in uc_cart.module whereas the first one is done in uc_product.module.
Great code, it worked perfectly for me. Thank you very much tjmoyer!
Cheers,
Roger
Comment #16
marcoBauli commented+1 for this feature request and for quick fix at #10, thanks!
i agree is pretty indispensable to prevent confusion in customers. Any committent would expect this feature, critical IMO.
Comment #17
verta commentedsubscribing
Comment #18
guypaddock commentedI would also like to see this feature...
Comment #19
guypaddock commentedSee comment #50 in #550344: Option Images Bug Fixes and Enhancements for a patch that adds this functionality without hacking UC. It will require the version of the module from comment #49 in the same post.
Comment #20
Bryan T commentedThank you GuyPaddock! The patches work perfectly and no issues as of yet. Hopefully it will get added to the module's next release.
For those unsure about using patch files, below is a zip of the module already patched.
Comment #21
summit commentedHi, I use the .zip in this latest post #20; I use Acquia_prosper. And still using this advanced version of the module (the #20), I still see my product image, and underneath the selection, the option_image image? Do I need to change node-product.tpl.php still? Is this related to http://drupal.org/node/803712?
greetings,
Martijn
Comment #22
summit commentedHi,
Wouldn't it be great to have not only the cart main picture be changed using option image. But to be able to change all product pictures by the option pictures? See request: http://drupal.org/node/1022638.
Greetings, Martijn
Comment #23
pillarsdotnet commentedThere's no patch here to review.
Comment #24
yannickooNo activity here? This is bad.
Going to checkout the uc_cart_foo...
Comment #25
yannickooYEAH! Finally it works <3
I just removed all other attributes except my option images attribute and damdamdamdam all is working fine.
Comment #26
cybis commentedThis is working fine with the latest dev.
Comment #27
khakistocracy commentedHope nobody minds me re-opening this, but I am having a problem getting my option images to appear in the cart view for D7.. Images appear nicely in the product view, although I have no idea how to translate the patches and fixes for D6 above to help me in D7.
If anybody has got option images to appear in the cart view in D7 please give me a clue! Thank you.
Comment #28
fineartist99 commentedAny options out there for Ubercart and Drupal 7???