Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Popup Window with Large Image not working Properly

Popup Window with Large Image not working Properly

Locked

Views: 2,767

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Jun 2008, 3:31 PM
#1
swelter83 avatar

swelter83

Zen Follower

Join Date:
Mar 2008
Posts:
98
Plugin Contributions:
0

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/index.php?main_page=product_info&products_id=15

9 Jun 2008, 1:01 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

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...

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. :smartalec:

HTH

Rob

9 Jun 2008, 1:13 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

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

11 Jun 2008, 4:03 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,778
Plugin Contributions:
11

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.