Page 31 of 39 FirstFirst ... 212930313233 ... LastLast
Results 301 to 310 of 385
  1. #301
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    Assuming that you don't have a large image on this one, this one appears to be working my end and its a single image one..

    http://96. 30. 58.67/index.php?main_page=product_info&cPath=6_110&products_id=464
    Phil Rogers
    A problem shared is a problem solved.

  2. #302
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    Quote Originally Posted by philip937 View Post
    When I'm looking its really hard to see if its working. Can you set your product info image size in the admin to say 50 wide 50 high?
    done as requested: 50!

  3. #303
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    Quote Originally Posted by chadderuski View Post
    done as requested: 50!
    Hmm Grrr something defo not working. I'm seeing the main Image diffent sizes on each product and most are more 500-600 :-(

    Less on your working than were on mine :-(
    Phil Rogers
    A problem shared is a problem solved.

  4. #304
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    just done some more tests my end.

    I actually think a safer way of coding it would be to just have this:

    function func (img) {
    if(img.height >= img.width) {
    img.style.height = "<?php echo $iheight ?>";
    } else {
    img.style.width = "<?php echo $iwidth ?>";
    }
    }

    I am seeing similar results with the additional images vs only oine image however its like it resets it.. if i use the next product link on my site ones that work work, then i'll hit one that has one image and it doesnt then I go previous, then forward and the image is then re-sized..

    its very strange...
    Phil Rogers
    A problem shared is a problem solved.

  5. #305
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    can't suss your though.. I cant get any to display 50 x 50..

    for example, this page, your html source code is showing:
    http://96. 30. 58.67/index.php?main_page=product_info&cPath=6_148&products_id=1151&zenid=d0d30ebcd1e6 4c6234e12a368f3d9e36

    <script language="javascript" type="text/javascript"><!--

    function func (img) {
    if(img.height >= img.width) {
    img.style.height = "50px";
    img.style.width = "auto";
    } else {
    img.style.width = "50px";
    img.style.height = "auto";
    }
    }


    document.write('<a href="images/barsupply/roy-112.jpg" class="bonzer_zoom" rel="product_info"><img src="images/barsupply/roy-112.jpg" onload="func(this);" /></a>');
    //--></script>

    and this is the image..
    Name:  Screen shot 2013-02-07 at 20.18.24.jpg
Views: 82
Size:  62.1 KB

    REALLY.. REALLY.. WEIRD!
    Phil Rogers
    A problem shared is a problem solved.

  6. #306
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    Philip:

    What is weird is when you click back and forth with PREV <> NEXT, the image scales to 50 x 50 and zoom works correctly, but if you REFRESH the page, the image is show FULL size!

    It HAS to be because somewhere your variables are not being reset. So the LAST value (for one of the dimensions) is being retained... this is my thought on what's happening...

  7. #307
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    I'm stumped.. We need a java/jquery guru to help implant the size switch better.
    Phil Rogers
    A problem shared is a problem solved.

  8. #308
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    or simply a break ...

    Either way, you've made some really great progress!

  9. #309
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    EUREKA... I think!

    use this in your
    includes/templates/YOUR/TEMPLATE/templates/tpl_modules_main_product_image.php

    works perfect on my site even and tested also with images of different sizes too.

    PHP Code:
    <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2011 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_main_product_image.php 18698 2011-05-04 14:50:06Z wilt $
     */
    ?>
    <?php 
    require(DIR_WS_MODULES zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
    <div id="productMainImage" class="centeredContent back">

    <style>
    .mainImage {
      max-width: <?php echo MEDIUM_IMAGE_WIDTH ?>px;
      max-height: <?php echo MEDIUM_IMAGE_HEIGHT ?>px;
      height:auto;
      width:auto;
    }
    </style>


    <script language="javascript" type="text/javascript"><!--
    document.write('<?php echo '<a href="' $products_image_large '" class="bonzer_zoom" rel="product_info">' zen_image(addslashes($products_image_medium), addslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT'class="mainImage"') . '</a>'?>');
    //--></script>



    <noscript>
    <?php
      
    echo '<a href="' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '" target="_blank">' zen_image($products_image_medium$products_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';
    ?>
    </noscript>
    </div>
    enjoy..
    Phil Rogers
    A problem shared is a problem solved.

  10. #310
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    Philip!

    That my friend is working PERFECTLY!! Pages are surviving manual refreshing, and Next/Prev are working fine also. Of note, is the GIANT image also behaves as it should. All the picture swapping is working, even with different sizes.

    AWESOME!

    PS: Have you tested with Image Handler 4 yet?
    Last edited by chadderuski; 8 Feb 2013 at 02:19 PM. Reason: PS

 

 
Page 31 of 39 FirstFirst ... 212930313233 ... LastLast

Similar Threads

  1. v153 jQuery Scrolling Sideboxes [Support Thread]
    By lat9 in forum Addon Sideboxes
    Replies: 79
    Last Post: 15 Apr 2024, 10:20 PM
  2. v152 Down for Maintenance jQuery Countdown (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Nov 2015, 03:04 PM
  3. v152 jQuery Banners (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 30 Sep 2015, 02:07 AM
  4. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  5. Is there an add-on combine the functions of AJAX_image_swapper and Jquery Zoom?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jul 2010, 01:57 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