Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  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]

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

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

    Hi :)

    Yeh that was the first bit, but I didn't want the image clickable either, which the second part solved for me :)
    Sometimes the best advice is to tell me I'm not thinking about the problem enough.
    FleshMetal.com.au

  8. #8
    Join Date
    Jan 2007
    Location
    Florida/Missouri
    Posts
    77
    Plugin Contributions
    0

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

    I too am looking for information on this. I have seen nothing recently posted within the last couple of years. This is what im trying to do.

    When I add a new product I am using a large image in the "Product Description". I do want to use the small image under the catagory listing with the other products. I do not want the thumbnail or link to larger image on the actual individual product page.

    Any help would be great!

    Example: http://securitybycamera.com/index.ph...products_id=35

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

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

    Quote Originally Posted by garyclemens View Post
    When I add a new product I am using a large image in the "Product Description". I do want to use the small image under the catagory listing with the other products. I do not want the thumbnail or link to larger image on the actual individual product page.
    Example: http://securitybycamera.com/index.ph...products_id=35
    From your example, it looks as though the image ia hardcoded into the product description. I'm not exactly highly knowledgeable... but I'm not aware of anything other than 'by hand' to assist with doing this.

    As for removing the thumbnail all together, the code I posted above is a good start. But, just block the include for the image also.

    :)
    Last edited by ghostcorps; 10 Apr 2007 at 01:24 AM.
    Sometimes the best advice is to tell me I'm not thinking about the problem enough.
    FleshMetal.com.au

  10. #10
    Join Date
    Jan 2007
    Location
    Florida/Missouri
    Posts
    77
    Plugin Contributions
    0

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

    Thank you for the response-it worked

 

 
Page 1 of 2 12 LastLast

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