If this is your first visit, check our documentation. To post, register or login.

Hiding Products with no images

Locked

Started by thehin on 19 Sep 2007, 12:33 AM · 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

Post #1 by thehin

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,913
Plugin Contributions:
23

Post #2 by dbltoe

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

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

gjh42

Black Belt

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

Post #3 by gjh42

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.