Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    17
    Plugin Contributions
    0

    Default Hiding Products with no images

    Hello,

    I was wondering if there was a way to not display a product on the main page under new products if there is no image associated with it.

    Thanks,
    thehin

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

    Default Re: Hiding Products with no images

    If you want nothing to show for a particular product while you are awaiting a picture, you can click on the green dot next to the product in the admin. The dot will turn to red and nothing about that product will show up in the cart. When you get the photo, just edit the product, add the image, and click on the red dot to turn it green.
    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
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Hiding Products with no images

    Since the listing code normally displays a picture, it has access to the filename. You can test for whether there is a filename and whether the filename actually points to a file with the PHP function file_exists(), and reject the product for display if it fails.

 

 

Similar Threads

  1. v151 2 problems, one with URL, another with hiding text on page
    By Ridgh in forum General Questions
    Replies: 7
    Last Post: 2 Apr 2014, 05:24 PM
  2. Hiding New Products/All Products pages...
    By bubblegumgoods in forum General Questions
    Replies: 3
    Last Post: 6 Aug 2009, 03:31 AM
  3. hiding images
    By cynchan in forum General Questions
    Replies: 0
    Last Post: 21 Oct 2008, 11:12 PM
  4. Hiding categories/subcategories with no products
    By 456Qwer12345 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 9 Sep 2007, 04:36 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