Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Fitting window to larger image size.. How?

Fitting window to larger image size.. How?

Locked

Views: 1,583

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 May 2008, 7:10 PM
#1
azeela avatar

azeela

New Zenner

Join Date:
Apr 2008
Posts:
79
Plugin Contributions:
0

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? ;)

4 May 2008, 8:20 PM
#2
itwasntme avatar

itwasntme

New Zenner

Join Date:
May 2008
Posts:
12
Plugin Contributions:
0

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.

4 May 2008, 8:40 PM
#3
azeela avatar

azeela

New Zenner

Join Date:
Apr 2008
Posts:
79
Plugin Contributions:
0

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,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=600,height=600,screenX=0,screenY=0,top=0,left=0')
}

Nothing happened.. :no:

4 May 2008, 8:49 PM
#4
itwasntme avatar

itwasntme

New Zenner

Join Date:
May 2008
Posts:
12
Plugin Contributions:
0

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.