Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Click to enlarge" Box


Silverado05

Recommended Posts

Posted

Hello, Can someone remind me where to set the size of the pop up box for the click to enlarge on the product listing page. It's been a while since I have used this and need to make a few tweaks.

 

-Thanks

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Posted

Nevermind, I found it

 

popup_image.php

 

-Thanks

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Posted
Hello, Can someone remind me where to set the size of the pop up box for the click to enlarge on the product listing page. It's been a while since I have used this and need to make a few tweaks.

 

-Thanks

 

 

See in admin configuration/Images and try setting the Smal Image height & Width and I think OS calculates it if you have Calculate Image size set to true but I am only guessing as I cannot find the setting either

Posted
Nevermind, I found it

 

popup_image.php

 

-Thanks

 

Have just looked in popup_image.php and cannot see the code. thinking about it from memory I think it is set by the file you upload but bear in mind that it must be in proportion to the small image size

Posted

No I was looking for the size of the actually pop up box. Reason being is the enlarged image inside the pop up box was larger then the actually box making it to where you had to scroll in order to see the image. So I just need to make the actually pop up box bigger not the actually image. I found it though in popup_image.php

 

Here is the actually code to set, just change the number till your happy with the size of your box.

 

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

 

I have got it all figured out now, Thanks though,

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...