Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default large image popup size and cutting image

    Hi

    I am having some trouble with the large image popup.

    On the template I am working on the popup opens at the small image size, and I need to enlarge the popup to see the image at the larger size.

    On the classic it opens almost correctly at the large size, saying almost as it cuts off few pixel from the bottom of the image, and here to I can enlarge the popup to see the whole image.

    I tried editing the modules/pages/product_info/jscript_main.php setting the width and height at slightly higher value, and while it fixes the new template issue, it keep cutting off the bottom on both classic, and new template.

    Sorry I can't give a link as it's on a local environment, but if it can help, I'll set up a live one.

    Thank you.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: large image popup size and cutting image

    On the template I am working on the popup opens at the small image size
    On the classic it opens almost correctly at the large size
    I tried editing the modules/pages/product_info/jscript_main.php
    The above file would be the same for both templates
    What file(s) are different for your template that you are working on?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: large image popup size and cutting image

    Thank you

    The relevant file is
    templates/CUSTOM/templates/tpl_product_info_display.php
    I have not touched the block conatining "<!--bof Main Product Image--> [code] <!--eof Main Product Image-->", and
    tpl_modules_main_product_image.php
    is not customized, hence it's the default one.

    Of course there are many other files, in case you think of some that might be relevant please let me know, and I'll check if it's been modified.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: large image popup size and cutting image

    is not customized, hence it's the default one
    Is there a file for the above in your template structure or just the file(s) in template_default?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: large image popup size and cutting image

    No, it's not on the CUSTOM directory, using the file in template_default.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: large image popup size and cutting image

    On the template I am working on the popup opens at the small image size
    On the classic it opens almost correctly at the large size
    No, it's not on the CUSTOM directory, using the file in template_default.
    Well there must be something different if you get different results
    Zen-Venom Get Bitten

  7. #7
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: large image popup size and cutting image

    Well there must be something different if you get different results
    Thanks.
    Yes, no kidding, being a custom template obviously there is something different!

    Anyhow I think I found the culprit, I created a new install with all default templates, save the common, and css, and it's the image style:

    img {
    display: block;
    height: auto;
    max-width: 100%;
    }

    When I remove the above the popup opens fine at the larger size.

    Any idea how to solve this conflict?

  8. #8
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: large image popup size and cutting image

    Quote Originally Posted by keneso View Post
    Thanks.
    Yes, no kidding, being a custom template obviously there is something different!

    Anyhow I think I found the culprit, I created a new install with all default templates, save the common, and css, and it's the image style:

    img {
    display: block;
    height: auto;
    max-width: 100%;
    }

    When I remove the above the popup opens fine at the larger size.

    Any idea how to solve this conflict?
    Recommend using a tool such as firebug for firefox or similar for other browsers (typically pressing F12 on a pc wll take you to a debugger that should allow active changes to the css to play/test). To get a specific solution from those of the forum (not guesses) it would be easiest if the "site" were available for others to provide input.

    As a side note, if the site is made accessible, understand that updates to css may not immediately become available depending on caching of the css as set by the server/site. Locally, may need to clear the browser cache to see the results of the hard work. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: large image popup size and cutting image

    Thank you.

    Yes I use the tools, but sometimes my head is just not able to see the solution; and do know a live site is much more helpful, so like sais in OP I've set up the live install if you please could take a look at it:
    nanayawdesigns dot com/index.php
    Please use index.php as w/o it you land on temporary page.

  10. #10
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: large image popup size and cutting image

    keneso,
    have you resolved this problem?

    when i look at the popup image, it DOES open the large image. the problem that i see is that the window my browser (Chrome) opens is small so that it looks like the image is a smaller size. but the image clearly is the larger image.

    i would look into the part of the template that indicates the size of the pop-up window as opposed to the image itself as that looks to be the problem to me.

    good luck!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Large Image popup limit size?
    By leon2lil in forum General Questions
    Replies: 0
    Last Post: 8 Feb 2012, 10:21 PM
  2. Larer image popup is medium image not large image
    By xtracool in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 13 Mar 2009, 10:21 AM
  3. fixed image size on view large image
    By peterj in forum General Questions
    Replies: 1
    Last Post: 20 Feb 2007, 11:54 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