You are here:  » Broken image links

Support Forum



Broken image links

Submitted by mikecdprice on Tue, 2011-09-20 18:02 in

Hello,

I am noticing there is one merchant (who is to remain nameless hehe ) who has a lot of broken images and most are working.

How do I show an alternate image not available image when this happens so it does not look so broken.

Thank you,
Michael

Submitted by support on Wed, 2011-09-21 08:32

Hi Michael,

My personal opinion is that if a merchant has too many broken images then I don't register the image URL field at all (but also ask yourself if the majority of images don't work then what else isn't reliable - like their tracking?).

What you can then do is add a global override into includes/admin.php to enter the URL of a default "no image" image served from your site where the image_url field is empty. To do this, look for the following code around line 342:

    if (!$importRecord["merchant"]) return;

...and REPLACE with:

    if (!$importRecord["merchant"]) return;
    if (!$importRecord["image_url"])
    {
      $importRecord["image_url"] = "/images/noimage.jpg";
    }

Cheers,
David.
--
PriceTapestry.com