Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Aug 2004
    Posts
    444
    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
    444
    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
    444
    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
    444
    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
    444
    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
    78
    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
    444
    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
    78
    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. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7078
    Last Post: 6 May 2013, 02:18 AM
  2. remove Larger Image link under additional images
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Sep 2010, 07:01 PM
  3. _LRG image displaying at Small Image size
    By sopretty in forum General Questions
    Replies: 11
    Last Post: 1 Oct 2006, 09:28 PM
  4. 'Larger Image' Window Size & Background
    By zlagdash in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Jul 2006, 05:44 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
  •