Results 1 to 3 of 3
  1. #1

    Default Disabling Pop-Up Image

    Hey everyone,

    I've increased the image size when selecting an individual product within a category, but I'd like to disable the pop-up function when an image is selected.

    Is this possible? If so, where can I change this?

    Thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Disabling Pop-Up Image

    Do you mean the 'larger image' popup' If so:

    Find a file called tpl_modules_main_product_image.php. It is in includes/templates/yourtemplate/templates.

    Back it up somewhere safe

    Then edit it. You are looking for a line that reads:
    Code:
    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 /><span class="imgLink">' .
     TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
    This will take out the popup function, remove the larger image link etc

    Take out bits to leave:
    Code:
    document.write('<?php echo  
    zen_image($products_image_medium, 
    addslashes($products_name), MEDIUM_IMAGE_WIDTH, 
    MEDIUM_IMAGE_HEIGHT); ?>');
    If this isn't what you meant then my apologies!

  3. #3

    Default Re: Disabling Pop-Up Image

    Hi niccol,

    That's exactly what I'm looking for. I'll play with it a bit to get it right.

    Thanks for this.

    Dave

 

 

Similar Threads

  1. v150 Disabling product image popup link
    By markboardman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Apr 2012, 02:03 PM
  2. Attribute image replaces main image but only pop up larger image
    By welchyboy in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 26 Nov 2010, 11:56 PM
  3. Disabling Image Pop Ups.
    By wmorris in forum General Questions
    Replies: 2
    Last Post: 1 Nov 2008, 07:17 AM
  4. Disabling the Pop Up Images
    By wmorris in forum General Questions
    Replies: 12
    Last Post: 19 Feb 2008, 10:41 PM
  5. Disabling the Category Image in Product View
    By brad512 in forum General Questions
    Replies: 1
    Last Post: 17 Sep 2006, 01:54 AM

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