Zen Cart Logo

larger image popup

Views: 1,425

Results 1 to 7 of 7
23 Feb 2011, 7:05 AM
#1
510ego avatar

510ego

New Zenner

Join Date:
Feb 2011
Posts:
100
Plugin Contributions:
0

larger image popup

want to know if the file i need to edit is

popup_image.php

and the line...

function resize() {
if (navigator.appName == 'Netscape') i = 40;
window.resizeTo(document.images[0].width + 30, document.images[0].height + 60 - i);

for a larger image do i add to the 30 and 60 and make them say 60 and 120\

any other code that i may need?

i would like to make the popup image size about 2x or 3x what it is now.

making progress..have not crashed my server....yet

24 Feb 2011, 12:40 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: larger image popup

Where is that file located???

Not in the includes dir in a fresh 1.3.9h

Zen-Venom Get Bitten

24 Feb 2011, 12:49 AM
#3
510ego avatar

510ego

New Zenner

Join Date:
Feb 2011
Posts:
100
Plugin Contributions:
0

Re: larger image popup

public_html/zc_admin/popup_image.php

i believe that it is the correct file. it is where i found the code.

am i going to stump you? (doubtful)

24 Feb 2011, 1:07 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: larger image popup

That file only affects pop ups while in the admin

Is that what you are concerned with??

Zen-Venom Get Bitten

24 Feb 2011, 2:16 AM
#5
510ego avatar

510ego

New Zenner

Join Date:
Feb 2011
Posts:
100
Plugin Contributions:
0

Re: larger image popup

let me say exactly what i did.

i took some pics with my digital camara at 3.1 mp. then i used windows image resizer power toy and saved them at 300 x 300. it brought the file size down to about 8kb so that they would be easy to upload and show up quickly on my site.

when i click them to show on the single product they are perfect in size. when i click larger image the size is about the same as the single pic. i have not lost any quality. all my pics look good.

i was reading though some posts and thought that the correct file to edit would be the popup_image.php file.

what happens is a small window comes in then loads the pic, resizes itself to a full screen, put the picture is still small.

i have read some on the images through post and what dr.byte has to say about handling images. i want to keep my site as fast and as clean as possible. other sites i am competing with are very content rich and take a while to load. i am on dial up and for me my site loads about 3 seconds longer than google's home page.

if i load them to their original size, i feel my site will suffer when someone click larger image.

thanks for your help and input.

ps i read one post also talking about as js file that might be the right one to play with.

24 Feb 2011, 5:10 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: larger image popup

ZenCart will handle sanely file sized images based upon your admin > images > settings

It does display the large at whatever size you have it created as

See this example **HERE** that uses only stock default code

Zen-Venom Get Bitten

25 Feb 2011, 12:27 AM
#7
510ego avatar

510ego

New Zenner

Join Date:
Feb 2011
Posts:
100
Plugin Contributions:
0

Re: larger image popup

i sent my $10 in, back order it for me!! (nice car)

yes, that is what i want, and you say it is the "stock" image setting. ok. i will play with it as the stock settings.

it did take a little time to load over dial up, however the effect was correct for me.

i will review the image posts and the write-up by dr.byte on images again.

i find most of all my answers from your comments, the FAQ's, a few post and the youtube tutorials.

thanks for your time.