Forums / Setting Up Categories, Products, Attributes / Removing "larger image" hyperlink when no image present

Removing "larger image" hyperlink when no image present

Views: 864

Results 1 to 5 of 5
13 Jun 2011, 5:25 AM
#1
husefool avatar

husefool

New Zenner

Join Date:
Jun 2011
Posts:
5
Plugin Contributions:
0

Removing "larger image" hyperlink when no image present

Hi guys
I have disabled images for my product listing "detail" page (the one you get when you click on a product for "more info" or click the product name from the product listing).

Currently "display product image" is set to "0" in admin.

What I'd like it that products with NO image specified have NEITHER the "no image" placeholder NOR the empty hyperlink saying "larger image" when there is no image.

Is there a way to change Zen Cart behavior so that products with no image specified simply show NO IMAGE and NO HYPERLINK (i.e. no images, nothing except the product name etc.)?

Thanks!
Husefool

13 Jun 2011, 10:45 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Removing "larger image" hyperlink when no image present

By default if no specific image exists the /images/no_picture.gif is displayed
One can edit this image to be what they prefer - - just maintain the file name and file type as the easiest route versus altering the code for some other image name/type

Zen-Venom Get Bitten

13 Jun 2011, 10:08 PM
#3
husefool avatar

husefool

New Zenner

Join Date:
Jun 2011
Posts:
5
Plugin Contributions:
0

Re: Removing "larger image" hyperlink when no image present

Thanks for the reply! Actually what I am looking for is a way to remove any image from a product with no image (I have thousands of products, most with no image, so if I relied on the default "noimage.gif", my shop would be filled with the same gif)

I'd like to have no image or hyperlink at all, for products with no image. Is it possible?

Thanks! :-)

13 Jun 2011, 11:04 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Removing "larger image" hyperlink when no image present

Admin >> Configuration >> Product Listing -- Set Display Product Image -- change 1 to 0

This WILL effect ALL product images.

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

13 Jun 2011, 11:35 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Removing "larger image" hyperlink when no image present

I'd like to have no image or hyperlink at all, for products with no image. Is it possible?
You will have to custom code the check for an image along with what to do in an if>else

Zen-Venom Get Bitten