Disabling product image popup link
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
Re: Disabling product image popup link
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>
Re: Disabling product image popup link
Quote:
Originally Posted 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>
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.