You are here:  » Images not displaying on search results but do disdplay on products

Support Forum



Images not displaying on search results but do disdplay on products

Submitted by Alastair on Mon, 2008-03-10 22:26 in

Images are not disaplying on the search results screen but appear fine if you click on the image placeholder and go to the product / prices screen.

In the database the image URLs look fine

Looking at the source on the search results screen, for some reason an extra set of double quotes appears round the img src:

SONY VGN-AR61S.CEK

on the product / prices screen the images appear fine and, on viewing the source, there's no double quotes round the image URL, just the single ones.

Does anyone have any ideas please?

Thanks

Submitted by support on Tue, 2008-03-11 09:15

Hi Alastair,

The normal reason that this occurs is where a feed has not been registered with Quoted Text; so the " that are part of each field are imported along with the image URL; resulting in the double-quotes that you describe - however if this was the case it should affect both search results and product page!

I couldn't find an example where I can see this on your site - could you drop me an example URL? I'll take a look and try and figure it out for you!

Cheers,
David.

Submitted by Alastair on Tue, 2008-03-11 13:36

Hi David

Thank you for your help. The problem was caused by registering the feed with the wrong type. In my testing data, I have two nearly identical feeds. One was registered correctly and the other one not. While the products screen displays the image of the cheapest product, is it possible that trhe search screen just displays the image of the first match it comes across, not necessarily the cheapest? If this is the case it might explain it. Anyway, it seems fine now!

Thank you

Alastair

Submitted by support on Tue, 2008-03-11 15:17

Hi Alastair,

Yes - that would explain it. The image selected for the search results is not necessarily from the cheapest product record. This is because the search results are generated using what's called a "Summary Query", so you can't actually instruct MySQL which record to pull that field from!

Cheers,
David.