Closed (fixed)
Project:
UC Upsell
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2009 at 17:11 UTC
Updated:
3 May 2011 at 11:15 UTC
I'm only seeing the default image for my related products. The normal image isn't being loaded.
Here's what is outputted on the page:
<img src="/sites/default/files/imagecache/uc_category/files/default_product.jpg" alt="test product" title="test product" class="buy-related-item" />
The product image is shown everywhere else normally.
any ideas are appreciated.
Comments
Comment #1
walden commentedI solved my own problem. If you use a cck field besides the default "field_image_cache" then upsell can't find your image.
Possible this could be a setting like it is in the product content type?
Comment #2
firfin commentedThank you for posting back your solution. I was experiencing the same problem and this also solved it for me.
Comment #3
torgospizzaInteresting, I'll take a look and see if I can hook into CCK for the product image.
Comment #4
walden commentedcool. I have a hunch that this installation doesn't use the default field name because I didn't have all of the image handling modules enabled when I installed Ubercart.
Comment #5
torgospizzaYeah, that's most likely the case. But it makes sense to either a) use the same product field that the main "product" type uses, or b) allow users to select which imagefield they are using. Either one should be fairly straight forward to do.
Comment #6
torgospizzaMarking this as postponed so that I know to revisit it.
Comment #7
anative commentedI'm having this same issue. How do I switch the product image to a non-cck version that will work with Upsell?
Comment #8
torgospizzaWhat's the field_name of your product image?
Comment #9
anative commentedIt is "field_image"
Comment #10
torgospizzaAh, interesting. Thanks. I still need to dig into this code to find a suitable fix. I think I'll look at how uc_product handles... and it'll be in the next release. Thanks for the push :)
Comment #11
torgospizzaJust committed a new version to Dev that addresses this issue. Basically it looks for a configured setting from within Upsell config for a specific field to use (so the default can be overridden). Otherwise, it uses the uc_product image that was configured automatically for that particular node type.
If neither are found then it uses the old default, which was field_image_cache.
Please test and let me know if this works for you.
Comment #12
torgospizzaHaven't heard anything so I'll assume it's fixed. If this breaks again in the new stable release please re-open this issue or start a new one.
Comment #14
j0rd commentedNot fixed in what ever version I'm using. Also the hard coded path doesn't exist in my install. Instead of made the code use the default image associated with the imagefield, which seems like a better option. Personally, I'd just take out this option all together in the config and if the user has the default image set on their imagecache field, just use it.
Here's my theme change
--
Drupal Commerce