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
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