Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28
  1. #11
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,525
    Plugin Contributions
    9

    Default Re: Enlarge product picture is cutoff

    what I meant is that the window that encapsulates the picture cuts off the shoe. But the image itself is fine.
    Yes, I know...

    The fix is easy: just remove the size adjustment value
    Worked like a charm, thanks!
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

  2. #12
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Enlarge product picture is cutoff

    Quote Originally Posted by paulm View Post
    The code has changed over the years it seems....

    But the popup height adjustment is in this part of the code:
    (includes\modules\pages\popup_image\jscript_main.php)
    Code:
      if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) {
          i=30; //This browser is Internet Explorer 6.x on Windows XP SP2
      } else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) {
          i=0; //This browser is Internet Explorer 6.x
      } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=25; //This browser is Firefox on Windows
      } else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=45; //This browser is Mozilla on Windows
      } else {
          i=80; //This is all other browsers including Mozilla on Linux
      }
    Adjustment for FF colored red, and 45 seems to be a better value than the current 25.

    Not sure about IE 8 though, probaly it also depends on the users browser (compatibility) settings?

    (In FF it also depends if the user settings allow javascript to resize the window. If resizing is disallowed the image will fit)

    Thanks for identifying the where the problem was coming from and what file needed to be modified. Changing it to i=45 made negligible difference in Firefox. I had to change it to i=80 and the popup re-sizes perfectly in Firefox showing the entire image (same as in IE and Chrome now).
    Last edited by Crunch; 18 Aug 2011 at 04:50 AM.

  3. #13
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Enlarge product picture is cutoff

    crunch are you saying it fixes it in IE as well? the line in red says specifically firefox on windows. can you clarify?

  4. #14
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Enlarge product picture is cutoff

    Here is an update to my testing using the stock Classic Contemporary Green template.

    Issues:

    • IE 8: Popup re-size window does not open vertically enough to show the bottom of an image (it's cut off)
    • IE 9: Popup re-size window opens a bit too much so it shows extra white space below the image
    • Firefox 6 and prior versions: Popup re-size window does not open vertically enough to show the bottom of an image (it's cut off)


    I updated the \includes\modules\pages\popup_image\jscript_main.php file to add IE 8 and IE 9 agents and changed the Firefox value.

    Here is how that whole section of the file looks now:

    Code:
      if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) {
          i=30; //This browser is Internet Explorer 6.x on Windows XP SP2
      } else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) {
          i=0; //This browser is Internet Explorer 6.x
      } else if (window.navigator.userAgent.indexOf('MSIE 8.0') != -1) {
          i=55; //This browser is Internet Explorer 8.x
      } else if (window.navigator.userAgent.indexOf('MSIE 9.0') != -1) {
          i=30; //This browser is Internet Explorer 9.x
      } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=60; //This browser is Firefox on Windows
      } else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=45; //This browser is Mozilla on Windows
      } else {
          i=80; //This is all other browsers including Mozilla on Linux
      }

    These updates above fix these issues with the popup re-size box in IE8, IE9 and Firefox.


    NOTE: If your template modifies the behavior of the box somehow you may need to tweak these values a bit. The reason I say this is that the custom template I use (cherry zen) has something screwy in it that pushes the image down in the box leaving white space above the image. So, I have to tweak these values a bit to compensate for that template behavior.
    Last edited by Crunch; 21 Aug 2011 at 03:53 AM.

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Enlarge product picture is cutoff

    Do you have a demo of where you are using these settings?

    I am not so sure about the FireFox setting, FireFox 6 is going to have issues with that being so large ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #16
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Enlarge product picture is cutoff

    I PM'd you.

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Enlarge product picture is cutoff

    What operating system do you have on your computer?

    I am using Windows 7 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #18
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Enlarge product picture is cutoff

    Windows 7 Ultimate 64-bit

  9. #19
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Enlarge product picture is cutoff

    See how these settings work for you:
    Code:
    //  if (navigator.appName == 'Netscape') i=20;
      if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) {
          i=30; //This browser is Internet Explorer 6.x on Windows XP SP2
      } else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) {
          i=0; //This browser is Internet Explorer 6.x
      } else if (window.navigator.userAgent.indexOf('MSIE 8.0') != -1) {
          i=55; //This browser is Internet Explorer 8.x
      } else if (window.navigator.userAgent.indexOf('MSIE 9.0') != -1) {
          i=30; //This browser is Internet Explorer 9.x
      } else if (window.navigator.userAgent.indexOf('SeaMonkey') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=0; //This browser is SeaMonkey on Windows
      } else if (window.navigator.userAgent.indexOf('Chrome') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=27; //This browser is Chrome on Windows
      } else if (window.navigator.userAgent.indexOf('Safari') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=3; //This browser is Safari on Windows
      } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=38; //This browser is Firefox on Windows
      } else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=45; //This browser is Mozilla on Windows
      } else if (window.navigator.userAgent.indexOf('Opera') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
          i=25; //This browser is Opera on Windows
      } else if (window.navigator.userAgent.indexOf('Safari') != -1 && window.navigator.userAgent.indexOf("Macintosh") != -1) {
          i=0; //This browser is Safari on Mac
      } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Macintosh") != -1) {
          i=35; //This browser is Firefox on Intel Mac
      } else if (window.navigator.userAgent.indexOf('Opera') != -1 && window.navigator.userAgent.indexOf("Macintosh") != -1) {
          i=13; //This browser is Opera on Intel Mac
    
      } else {
          i=80; //This is all other browsers including Mozilla on Linux
      }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #20
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Enlarge product picture is cutoff

    Everything looks good, but the image in Firefox 6 is still cutoff. Setting it from 38 to 60 makes it work.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. product - enlarge pictures
    By slater555 in forum General Questions
    Replies: 7
    Last Post: 19 Feb 2012, 06:47 PM
  2. How can I change number of products display in a row and enlarge the picture?
    By sgspeer in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Aug 2010, 08:52 AM
  3. click to enlarge category picture
    By creff in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Oct 2009, 06:31 PM
  4. How to remove Additional Images Enlarge Link from the picture
    By XxDrAg0nxX in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 May 2009, 08:41 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR