2 replies [Last post]
Miso's picture
Offline
Joined: 08/10/2007
Juice: 134
Was this information Helpful?

Ok, I've got CCK Image module on, Thickbox (on and off doesn't make a difference with this issue), and for some reason I still get displayed the large (original) image along with the thickbox thumb (if thickbox module is enabled).

Looking into the source code I've narrowed it down to this class:

<div class="field field-type-image field-field-image-cache">
<div class="field-items">
<div class="field-item">
<div class="field-label-inline-first">Image:</div>
<img src="http://website.com/files/image.jpg" alt="" title="" width="1485" height="1500" />
</div>
</div>
</div>

and I am trying to figure out how to DISABLE that image from being displayed at all... I mean, thickbox thumb is being shown already, and I am trying to NOT show the original big sized image.

Any ideas where to look for this code, what to modify, how, where?

Thanks!

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Oh that's the problem people

Oh that's the problem people have been having with the duplicate images. I had completely forgotten about this.

What you need to do is edit the "Product" content types and go to the "Display fields" tab. For your image field, set both Teaser and Full to "<Hidden>". Übercart displays that particular field separately from CCK, so only one of them should get that job.

If you'd rather keep the image under CCK's control, you can turn off the Übercart image under Store administration > Configuration > Product settings > Product fields.

Miso's picture
Offline
Joined: 08/10/2007
Juice: 134
Re: Oh that's the problem people

Yep, that first tip did it. Didn't even know I had those options available.

The only other question I have now, and it's probably not Ubercart related... on that Display Fields page, I have this error popping up (about 12 times, same error in the error box):

warning: Invalid argument supplied for foreach() in /home/website/public_html/sites/all/modules/cck/content_admin.inc on line 418.

and it relates to this line in the content_admin.inc:

foreach ($field_type['formatters'] as $name => $formatter_info) {

what does that mean?

I have 9 custom fields defined there, but 12 errors on that page... no idea what it means.