Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2008
    Posts
    100
    Plugin Contributions
    0

    Default Popup Window with Large Image not working Properly

    I am having some problems with the popup window when I click on a products picture to "view larger image" from the products main page... the page with the products description...

    When the window pops up the product does not appear in the the "pre-sized" window, but rather it is centered and the window has to be resized manually to view the large image.

    Can someone tell me whats causing this problem?
    I JUST installed Image Handler, but just so you know this was happening before I installed it, I installed the mod thinking it might correct it.

    Thanks for any help you can give me! :)

    Here is a link to a product so you can see what I am talking about.
    http://lifewaynutrition.com/shop/ind...products_id=15
    _/\_/\_Swelter

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Popup Window with Large Image not working Properly

    Find and edit the javascript function named popupWindow so it looks more or less like this...

    Code:
    function popupWindow(url) {
      window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=480,screenX=150,screenY=150,top=150,left=150')
    }
    Adjust the width and height to suit.

    The default ZC installation uses 100 and 100 for those two settings. Of course, that's reasonable for a default install, but could maybe be bumped up a bit so fewer ZC sites would have invisible larger images.

    HTH

    Rob

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Popup Window with Large Image not working Properly

    I should add, since there are lots of javascripts in ZC, that the ones you want are in the includes/modules/pages folder, in the various product_whatever folders there.

    Rob

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Popup Window with Large Image not working Properly

    I think you would be benefited by using the Fual Slimbox mod. Not only will it automatically center your product images but, it will be a better presentation for the customer.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Popup window not opening properly
    By ekon79 in forum General Questions
    Replies: 1
    Last Post: 31 Mar 2011, 11:03 PM
  2. popup image as an overlay not working properly in IE
    By gems14k in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Oct 2006, 11:01 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