Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2010
    Posts
    1
    Plugin Contributions
    0

    Default "Larger Image" link not working correctly

    Using Version: Zen Cart 1.3.8a
    using template: http://www.zen-cart.com/index.php?ma...roducts_id=148 with slight customizations to remove some of the footer and change up the header size and background image/s.

    Problem: my "larger image" link on products doesn't function appropriately. At first, it simply didn't do anything when clicked... no matter what browser was used, clicking the thumbnail or the "larger image" text link didn't do anything. In hopes of resolving the issue, I installed the Lightbox module (http://www.zen-cart.com/index.php?ma...roducts_id=273), and now the links work, but in an incorrect fashion... instead of loading the larger image in a new pop-up window or in proper lightbox fashion, they follow the link into the next page and the user must hit the back button to return to the store. When I was trying to install Lightbox I got some database errors, so I used the workaround I found on the forums ("countrycharm"s post at the top of this link http://www.zen-cart.com/forum/showth...198#post512198)... I am unsure of when exactly the "larger image" links stopped working, but I know it is tied to something template specific because the links work fine if I switch to the default Zen Cart template.

    Store with issue/s: http://www.rygaardlogging.com/rygaardstore/

    Any assistance in regards to shining some light on what may be the cause of my frustrations would be greatly appreciated. Thank you in advance!

  2. #2
    Join Date
    Jul 2008
    Location
    london
    Posts
    169
    Plugin Contributions
    0

    Default Re: "Larger Image" link not working correctly

    Hi, mack2D2,
    you need to set the size that you want the large image to display, like so

    may have to tweak the javascript file for the pop-up window to open at the size you want. The file you need to edit is /includes/modules/pages/product_info/jscript_main.php. In the function popupWindow(url) change width= and height= to your sizes. (You can also decide whether or not you want scrollbars by setting scrollbars=no or scrollbars=yes.) Then save the file to includes/modules/YOUR_TEMPLATE/pages/product_info/

    Let us know how you get on

    Soul

  3. #3
    Join Date
    Nov 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: "Larger Image" link not working correctly

    function popupWindow(url) {
    window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screen X=150,screenY=150,top=150,left=150')

    I'm confused on the exact changes to make to this last sectin of this line for my 3 different size images: small image are 150 width, _MED 150 width, _LRG 475 width.

    Version 1.3.8a

    Thank you.

 

 

Similar Threads

  1. HOw to move "larger image" link to different page?
    By jessica721 in forum General Questions
    Replies: 2
    Last Post: 22 Jun 2011, 12:59 AM
  2. Image link "open in new window" not working
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Mar 2008, 02:57 AM
  3. "larger image" link & thumbnail link not working
    By tracyselena in forum General Questions
    Replies: 1
    Last Post: 7 Nov 2007, 08:03 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR