Results 1 to 9 of 9

Hybrid View

  1. #1

    Default Image not found change

    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

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Image not found change

    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.

  3. #3

    Default Re: Image not found change

    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

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Image not found change

    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.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Image not found change

    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

  6. #6

    Default Re: Image not found change

    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

 

 

Similar Threads

  1. No indication of image src not found
    By philip937 in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 14 Feb 2013, 09:21 AM
  2. Admin 404 Not Found The requested URL was not found on this server
    By L.a.Willman in forum Installing on a Windows Server
    Replies: 23
    Last Post: 10 Jan 2012, 02:26 AM
  3. Sub-category image not found issue
    By HelenC13 in forum Customization from the Admin
    Replies: 3
    Last Post: 19 Oct 2009, 12:08 PM
  4. If Image is not Found Display no_image.gif
    By prosam in forum General Questions
    Replies: 2
    Last Post: 7 Nov 2008, 09:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg