I'd like to be able to use a generic image like "No Picture Available" instead of a text string when ZenCart can't load a image, like you see in the admin when you miss type the image name. Is there anyway to do this?
I'd like to be able to use a generic image like "No Picture Available" instead of a text string when ZenCart can't load a image, like you see in the admin when you miss type the image name. Is there anyway to do this?
Beau
In Admin >> Configuration >> Images, the Product Image - No Image Status should be 1 and the image set to no_picture.gif
You can, of course create your own gif.
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
That is what I have setup, but I still get the default Alt. text if the image is set in the product but is not found or loaded. What is in the Admin->Image seems to deal with having no image file defined when the product is first created. I need something if the file is incorrectly defined.
Beau
That function adds the no_image.gif only when you don't specify an image for a product. If the image is specified, but missing, you'll get the name and alt text in Firefox, and the dreaded red 'X' and alt text in IE.
There's no way I know to change that in admin, so I guess the best solution would be to make sure all your images that are associated with a product exist.
The "No Image" gif will show, ONLY if there is no reference in the database to a pic.
So, lets say product ABC has an image abc.jpg ... but after adding the product and the image, you decide that abc.jpg is awful and you delete it from the server.
The reference to abc.jpg STILL EXISTS in the database, so the php will assemble the <img src> using that reference. as the image itself no longer exists on the server (in the images folder), it displays the alt text.
Either the database field MUST be empty (null), OR you should deliberately state that the image is no_image.gif by associating that image with the product data.
20 years a Zencart User
Sounds like I need to change the PHP code. Can anyone point me to the file(s) that need to be changed. Help with how to change the code will also be cheerfully accepted.
Beau