Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    83
    Plugin Contributions
    0

    Default Fitting window to larger image size.. How?

    I've tried looking around but couldn't find any advice on this one...

    When you click a product to get a larger image it opens in a new window.. That's just fine, but could the new window be fitted around the image so it isn't a full screen that pops up? (all my images are 600x600px)

    I've downloaded the lightbox mod cause I thought that might be another idea instead of resizing the larger image, but th install makes no sence to me what so ever.. A step by step walktrough for dummies maybe? ;)
    Hugs..
    Sine
    My store-to-be..

  2. #2
    Join Date
    May 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Fitting window to larger image size.. How?

    I think the file you need to edit to change the size of the pop-up window is:
    /includes/modules/pages/product_info/jscript_main.php

    The function is called "popupWindow(url)". Just change width= and height= to the dimensions you want to use.

    I haven't tried the lightbox yet, so I can't help you with that one.

  3. #3
    Join Date
    Apr 2008
    Posts
    83
    Plugin Contributions
    0

    Default Re: Fitting window to larger image size.. How?

    Changed it to this..


    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=600,height=600,screen X=0,screenY=0,top=0,left=0')
    }

    Nothing happened..
    Hugs..
    Sine
    My store-to-be..

  4. #4
    Join Date
    May 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Fitting window to larger image size.. How?

    The first thing I'd do is look at the source code of the page in question and verify that your change is actually present in the javascript the page is loading.

    If not, then you may have a jscript_main.php specific to your template; for example, if you aren't using the default template. If that's the case, take a look in:
    includes/modules/<your template>/pages/product_info/
    and see if there is a copy of jscript_main.php there. If there is, make the change in that file and re-test.

 

 

Similar Threads

  1. Pop up image size.. image right size, window too small
    By grayceworks in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 18 Dec 2011, 06:25 AM
  2. How to: Larger Image Pop-up Size for Product Info
    By robu in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Sep 2007, 04:13 PM
  3. Correct pop up window size in Safari: larger image
    By dharma in forum Basic Configuration
    Replies: 0
    Last Post: 29 Dec 2006, 08:22 PM
  4. How to Customize Larger Image Pop-Up Window?
    By peptogirl in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 1 Sep 2006, 06:28 AM
  5. 'Larger Image' Window Size & Background
    By zlagdash in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Jul 2006, 05:44 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