Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default How to have product image popup instead of link?

    I am trying to cause the product image on the Product listing page to trigger a popup (of the LRG image) instead of linking to the product description page. I have an OSC cart that I modded to do this, but can't figure it out in Zen. I really just need the product image on the Listing page to act like the image on the Description page. I tried just cutting and pasting the code, but I could not get it to work. Please help. Here is the OSC code that does this on the Product listing page (www.store.drstadtmauer.com):

    case 'PRODUCT_LIST_IMAGE':
    $lc_align = 'center';
    if (isset($_GET['manufacturers_id'])) {
    $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $_GET['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
    } else {
    $lc_text = '

    <script language="javascript"><!--

    document.write(\'<a href="javascriptopupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], addslashes($listing['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>Click for Label</a>\');

    //--></script>

    <noscript>

    <a href="' . tep_href_link(DIR_WS_IMAGES . $listing['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>

    </noscript>';

    }
    break;

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How to have product image popup instead of link?

    Try installing Image Handler 2. You can see it in action on the Holzheimer's site in my sig.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: How to have product image popup instead of link?

    Thank you for your suggestion. It might be a work around - but it still does not seem to let you change what happens when you click on the image. The above mod offers a definable popup as a hover, but I want it to be a popup window that opens.

    Anyone have any ideas? Thanks.

    I should say that there is very similar code to the OSC code above in tpl_modules_main_product_image.php, I just can't get it to work in the Product Listing module.

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How to have product image popup instead of link?

    Perhaps if you download IH2 and look at how it's structured, you might get an idea of how to make it work the way you want. It could be a neat addition to the available downloads.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

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. 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
  3. 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
  4. Make Help link lightbox instead of popup window
    By dreamz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Feb 2008, 04:31 AM
  5. Basic Stuff: How do I make a text link have an image instead?
    By Kayla in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 May 2007, 09:54 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR