Results 1 to 4 of 4

differnt sizes images

This is a discussion on differnt sizes images within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Is there a way so that I can have just the image of the product larger just on the product ...

      
  1. #1
    New Member
    Join Date
    Apr 2008
    Posts
    23
    Rep Power
    0


    Default differnt sizes images

    Is there a way so that I can have just the image of the product larger just on the product description page? (product_list i think)

  2. #2
    osCMax Testing Team typhus's Avatar
    Join Date
    Aug 2005
    Location
    Midlands, UK
    Posts
    28
    Rep Power
    0


    Default Re: differnt sizes images

    Hi there, look for this code around line 90:

    Code:
    document.write('<a href="javascript:popupImage(\'<?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&type=' . $lg_image_ext); ?>\',\'<?php echo ((int)$image_size[1] + 30); ?>\',\'<?php echo ((int)$image_size[0] + 5); ?>\');"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), (SMALL_IMAGE_WIDTH*2), SMALL_IMAGE_HEIGHT); ?><br /><span class="smallText"><?php echo TEXT_CLICK_TO_ENLARGE; ?></span></a>');
    Notice the SMALL_IMAGE_WIDTH, this relates to what you set in the admin config. You can change 'SMALL_IMAGE_WIDTH' to a fixed value eg '300' but I found if I had different aspect ratio images some went out of proportion. So I added the ( ) and the *2 to the small image width. This will show the main image as what you set as small image width times two.

    Hope that helps, J.

    Edit: You were right about the file, it's in /templates/yourtemplate/content/product_info.tpl.php
    Last edited by typhus; 06-12-2008 at 08:30 AM. Reason: Forgot file name.

  3. #3
    New Member
    Join Date
    Apr 2008
    Posts
    23
    Rep Power
    0


    Default Re: differnt sizes images

    Will give it a shot now, thanks for the help, will report back

  4. #4
    New Member
    Join Date
    Apr 2008
    Posts
    23
    Rep Power
    0


    Default Re: differnt sizes images

    Tried this, but couldn't get it to work.

    SMALL_IMAGE_WIDTH*2), SMALL_IMAGE_HEIGHT)
    Was the only bit changed yes?

    when I changed it to that, the page failed so i removed the ) after the 2, and it worked again, but no images changed size

Similar Threads

  1. Sizes
    By justedee in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 07-21-2007, 12:50 PM
  2. Garment Sizes
    By driwashsolutions in forum osCMax v2 Features Discussion
    Replies: 6
    Last Post: 12-03-2006, 10:15 AM
  3. Thumbnail sizes to use?
    By PurdiceLTD in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 11-08-2005, 03:19 PM
  4. Image sizes
    By cygnus in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 04-01-2005, 09:31 PM
  5. how can i set different images sizes?
    By greg_r in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 12-08-2002, 12:06 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
  •