keziah49 Posted November 17, 2006 Posted November 17, 2006 Hi, I'm new to osCommerce and wondered if there is any way to change the thumbnail pics to keep the aspect ratio instead of fixed pixel?
Daemonj Posted November 17, 2006 Posted November 17, 2006 Set either the width or the height to a value of 0. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
keziah49 Posted November 18, 2006 Author Posted November 18, 2006 Thanks Jim, That helped! Now if you have time can you tell me how to get the 'click to enlarge' off of the product info page? I want my enlarged pics to show up under 'more information' webpage. I've got that to working but can't seem to figure out how to get 'click to enlarge' off. PS. I was just figuring out html now I have to learn php! ugh!
Daemonj Posted November 18, 2006 Posted November 18, 2006 Edit your product_info.php file and around line 107 you will find: <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> change that code to be: <td align="center" class="smallText"> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ?> </td> "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Recommended Posts
Archived
This topic is now archived and is closed to further replies.