osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-12-2008, 04:12 AM
New Member
 
Join Date: Apr 2008
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Phixon is on a distinguished road
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 06-12-2008, 06:46 AM
typhus's Avatar
osCMax Testing Team
 
Join Date: Aug 2005
Location: Midlands, UK
Posts: 28
Thanks: 15
Thanked 5 Times in 3 Posts
Rep Power: 0
typhus is on a distinguished road
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 07:30 AM. Reason: Forgot file name.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-16-2008, 05:44 AM
New Member
 
Join Date: Apr 2008
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Phixon is on a distinguished road
Default Re: differnt sizes images

Will give it a shot now, thanks for the help, will report back
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-16-2008, 08:30 AM
New Member
 
Join Date: Apr 2008
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Phixon is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Sizes justedee osCMax v2 Features Discussion 1 07-21-2007 11:50 AM
Garment Sizes driwashsolutions osCMax v2 Features Discussion 6 12-03-2006 09:15 AM
Thumbnail sizes to use? PurdiceLTD osCMax v2 Features Discussion 1 11-08-2005 02:19 PM
Image sizes cygnus osCMax v1.7 General Mods Discussion 2 04-01-2005 08:31 PM
how can i set different images sizes? greg_r osCommerce 2.2 Modification Help 3 12-08-2002 11:06 AM


All times are GMT -8. The time now is 11:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax