Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Hiding Products with no images

Hiding Products with no images

Locked

Views: 1,014

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Sep 2007, 12:33 AM
#1
thehin avatar

thehin

New Zenner

Join Date:
May 2007
Posts:
17
Plugin Contributions:
0

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

19 Sep 2007, 1:05 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

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.

19 Sep 2007, 4:16 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.