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

Disabling product image popup link

Started by markboardman on 26 Apr 2012, 10:48 AM · Views: 973

Results 1 to 3 of 3
26 Apr 2012, 10:48 AM
#1
markboardman avatar

markboardman

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Post #1 by markboardman

Hi everyone.

I've done extensive searching in these forums, and can't find an answer to this.

Is there a way to disable the popup image link on a product info page? To be more specific, I'd simply like to stop the product image on a product info page from being a link, so that if you click on the image it does nothing.

I'm using version 1.50.

Many thanks.

Mark

26 Apr 2012, 11:44 AM
#2
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Post #2 by dgent

Look in the file /includes/templates/your_template/tpl_modules_main_product_image.php

This works if you change the file contents to this.

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $ */ ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> <div id="productMainImage" class="centeredContent back"> <?php echo zen_image($products_image_medium, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br />'; ?> </div>
26 Apr 2012, 1:03 PM
#3
markboardman avatar

markboardman

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Post #3 by markboardman

dgent:

Look in the file /includes/templates/your_template/tpl_modules_main_product_image.php

This works if you change the file contents to this.

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $ */ ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> <div id="productMainImage" class="centeredContent back"> <?php echo zen_image($products_image_medium, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br />'; ?> </div>

It does indeed work. Many thanks. My template did not have this file, so I copied it from includes/template/template_default, edited it as you suggest and copied it to my template folder.

Your help is appreciated.