Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default change size of photos on PRODUCT IN FO page

    I have enlarged the high and width of photos, to 350(weight) x 300(high) but all images look to be different, why?
    What I must to to publish bigger images also first of zoom?
    example:
    http://www.estufe.com/index.php?main...roducts_id=595

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: change size of photos on PRODUCT IN FO page

    Where did you change the image dimensions? Your javascript (which is the only way you allow us to see the image) says

    <img src="images/grande.jpg" alt="07469" title=" 07469 " width="200" height="133" />

    You need to change the settings in Configuration > Images >
    Product Info - Image Width
    and
    Product Info - Image Height.

    If you set them to 0, the actual pixel size of the image file will be used.
    Your medium image file (at least for this product - 69k) is way too big - it should not be much more than 10k, maybe 20k for even this size of image.

    You are using your large images for medium and small, and you can see the loss of quality when for instance Barbecue in Ghisa 07471 (490x312px, 32k) is reduced to 200x133px, still 32k. Make a smaller image in Photoshop or whatever and save it for web, and you will get better display and smaller, faster-loading files.

    Also, your image filenames mean you will never be able to use additional images for a product without getting unwanted images showing up seemingly at random.
    Read the FAQ on multiple images for a lot of good information.

  3. #3
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default Re: change size of photos on PRODUCT IN FO page

    I was needing to show IMAGE CENTERED and DESCRIPTION UNDER IMAGE, so my developer have changed script from this original:

    <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>

    <div id="productMainImage" class="centeredContent back">

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

    document.write('<?php echo '<a href="javascriptopupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></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_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';

    ?>

    </noscript>

    </div>

    ----------------------
    to this:

    <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>

    <div id="productMainImage" class="" align="center" >

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

    document.write('<?php echo '<a href="javascriptopupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), 200, 250) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></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_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';

    ?>

    </noscript>

    </div>

    -------------------

    About images, often we directly copy tfrom producers, to do a more quick work, bcause we are publishing more of 2000 stoves, and working with lcients we'll do a better work step by step, now I go to read about multiple images, his is a nice idea!

  4. #4
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default Re: change size of photos on PRODUCT IN FO page

    i'm speaking about this file:
    includes\templates\template_default\templates\tpl_modules_main_product_image.php

    I hav try to replace the older, but again now I don't have control of size of this image..

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: change size of photos on PRODUCT IN FO page

    How do you not have control of the main image size? You can set that in admin > Configuration > Images > Product Info - Image Width and
    Product Info - Image Height.

  6. #6
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default Re: change size of photos on PRODUCT IN FO page

    I was not knowin that I was free to do thsi so easily from admin yet, and I was giving to do this enalrgement of images to a developer, not expert in zen-cart, anche he have changed the code, but also when I put the old code, I can't change the image, so it is possible that control of image depend also from other files?

 

 

Similar Threads

  1. Full size attribute photos no longer an option?
    By jgold723 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Dec 2011, 03:32 PM
  2. change image size on product page
    By zmtak in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Nov 2011, 06:38 PM
  3. Change Layout of Additional Product Photos??
    By yeah! in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Oct 2010, 02:42 AM
  4. photos all the same size in image handler 2
    By windwoman in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Dec 2009, 09:54 PM
  5. how do i change product image size on multi product display page?
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Nov 2007, 04:51 AM

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