Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Plugin Contributions
    0

    link problem 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

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,141
    Plugin Contributions
    0

    Default 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>

  3. #3
    Join Date
    Jan 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Disabling product image popup link

    Quote Originally Posted by dgent View Post
    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.

 

 

Similar Threads

  1. Popup Window Via Text Link (Instead Of Image Link)
    By CelticKatt in forum Templates, Stylesheets, Page Layout
    Replies: 57
    Last Post: 30 Jan 2011, 11:29 AM
  2. Change popup large image link
    By BrotherLove in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jul 2008, 05:29 AM
  3. set link popup on the swap image
    By draude in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 30 May 2008, 05:28 AM
  4. Popup Window Via Text Link (Instead Of Image Link)
    By CelticKatt in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Apr 2008, 05:09 PM
  5. How to have product image popup instead of link?
    By drmike in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Oct 2007, 05:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •