Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    443
    Plugin Contributions
    0

    Default How can I remove the 'Larger Image' Link?

    I have little need for the larger image link, partly because the images are all small at the moment, and partly because when I have fixed the images they will be as big as is needed in the product page.

    Is there a switch that I can't find? Or will I have to find the code?

    thanks
    :)
    Sometimes the best advice is to tell me I'm not thinking about the problem enough.
    FleshMetal.com.au

  2. #2
    Join Date
    Apr 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    This thread may help you remove the larger image link:

    http://www.zen-cart.com/forum/showthread.php?p=54893

  3. #3
    Join Date
    Aug 2004
    Posts
    443
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    Thanks :)

    unfortunately thats 3 years old and that file doesn't exist anymore!! LOL

    but I have a function to look for now

    Thanks
    Sometimes the best advice is to tell me I'm not thinking about the problem enough.
    FleshMetal.com.au

  4. #4
    Join Date
    Aug 2004
    Posts
    443
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    Ok

    I found that the function is now called from : \includes\templates\template_default\templates\tpl_modules_main_product_image.ph p

    Which I have edited as below, this removed the textual link, but I can not figure out how to drop the link/script from the displayed image; whenever I try I lose the image also

    Code:
    <?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">
    
    <script language="javascript" type="text/javascript"><!--
    document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /></a>'; ?>');
    //--></script>
    
    <noscript>
    <?php
      echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /></a>';
    ?>
    </noscript>
    
    </div>
    Sometimes the best advice is to tell me I'm not thinking about the problem enough.
    FleshMetal.com.au

  5. #5
    Join Date
    Aug 2004
    Posts
    443
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    sorted, not elegant.. but its done:

    Code:
    <?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">
    
    <script language="javascript" type="text/javascript"><!--
    document.write('<?php echo ' ' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /></a>'; ?>');
    //--></script>
    
    <!--<noscript>
    <?php
      echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /></a>';
    ?>
    </noscript>
    -->
    
    </div>
    Sometimes the best advice is to tell me I'm not thinking about the problem enough.
    FleshMetal.com.au

  6. #6
    Join Date
    Apr 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    That is the file that I altered:

    [FONT=Verdana]includes/templates/template_default/templates/tpl_modules_main_product_image.php [/FONT]
    [FONT=Verdana]and then I removed the [/FONT][FONT='Times New Roman']TEXT_CLICK_TO_ENLARGE and link is now gone from beneath the picture[/FONT]

 

 

Similar Threads

  1. v150 remove the “Larger image" Link.
    By Bob_L in forum Customization from the Admin
    Replies: 1
    Last Post: 30 Jul 2012, 07:54 AM
  2. How can I disable the "Larger Image" link on SOME products?
    By btolly in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Aug 2009, 02:39 PM
  3. How can I get Larger Image link only on some products?
    By khopek in forum Basic Configuration
    Replies: 1
    Last Post: 30 Jun 2007, 08:25 PM

Posting Permissions

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