Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pic Size ON new products - right column ?


rak1

Recommended Posts

My pictures I uploaded are 124 x 124 , but in the right column they are getting enlarged and distorted.

Also My thumbnails only get bigger.

Can I upload a Bigger picture and osc resize it for both? making a small thumbnail while doing the right size when you click to enlarge???

As you can in the picture it is messing up the whole right column.

 

Can any one help me with any of these issues , or tell me what code/ files need worked on???

 

Any help is apprecaited, thanks

 

 

the website pic - http://assortedtreasure.com/images/site.jpg

Link to comment
Share on other sites

Here is the page code , but Im not sure what to change???

 

 

<?php
/*
 $Id: whats_new.php,v 1.31 2003/02/10 22:31:09 hpdl Exp $
 E-Commerce Solutions
 Copyright (c) 2005 www.flash-template-design.com
 Released under the GNU General Public License
*/
 if ($random_product = tep_random_select("select products_id, products_image, products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_status = '1' order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) {
?>
<!-- whats_new //-->
	  <tr>
	    <td width="100%" align="center" valign="top" style="padding-bottom:4px; padding-top:1px; padding-left:1px; ">
<?php
   $random_product['products_name'] = tep_get_products_name($random_product['products_id']);
   $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']);
   $info_box_contents = array();
   $info_box_contents[] = array('text' => '<table border="0" width="99%" cellpadding="0" cellspacing="0">
	    <tr>
		 <td height="27"><p style="color:#AC9B65; font-family:Tahoma, Helvetica, sans-serif; font-size:15px; padding-left:5px;">'.BOX_HEADING_WHATS_NEW.'</p></td>
	    </tr>
	    <tr>
		 <td align="left" height="1" width="100%" background="images/points_box.gif"><img src="images/points_box.gif" width="3" height="1" alt="" /></td>
	    </tr>
		 <tr>
				  <td >'.tep_draw_separator('pixel_trans.gif', '100%', '2').'</td>
			    </tr>
	    </table>');
   new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_PRODUCTS_NEW));
   if (tep_not_null($random_product['specials_new_products_price'])) {
  $whats_new_price = '<span class="productOldPrice">' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span><br/>';
  $whats_new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>';
   } else {
  $whats_new_price = '<span class="productSpecialPrice">' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])).'</span>';
   }
$sql = 'SELECT `products_description` FROM `products_description` WHERE products_id ='.$random_product['products_id'].' && language_id='.(int)$languages_id;
$description_query = tep_db_query($sql);
$description = mysql_fetch_array($description_query, MYSQL_ASSOC);	   
$description['products_description'] = substr($description['products_description'], 0, 65);
$desc_len = strlen($description['products_description']);
$description['products_description'][$desc_len-1] = '.';
$description['products_description'][$desc_len-2] = '.';
$description['products_description'][$desc_len-3] = '.';
   $info_box_contents = array();
   $info_box_contents[] = array('align' => 'left',
							 'text' => '<table border="0" width="99%" cellpadding="0" cellspacing="0" style="border:1px solid #D7CEB2;">
		 <tr>
		 <td colspan="2" style="padding-top:5px; padding-left:5px;"><a class="block_goods_nm" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a></td>
	    </tr>
	    <tr>
		 <td colspan="2"><div style="color:#A89969;padding-left:5px;">'.$description['products_description'].'</div></td>
	    </tr>
	    <tr>
		 <td width="79" height="100" align="center" style="padding-bottom:3px; padding-top:3px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>
		 <td valign="bottom" style="padding-bottom:9px;"><div style="color:#BB0202; font-size:17px;padding-bottom:4px; ">' . $whats_new_price.'</div></td>
	    </tr>
	    </table>
	    <table border="0" width="99%" cellpadding="0" cellspacing="0" style="margin-top:2px;">
		 <tr>
		 <td width="50%" >'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).
		 '<a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']).'">'.tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS).'</a></td><td align="right">'.
		 tep_draw_hidden_field('products_id', $random_product['products_id']) . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_IN_CART).'</form></td></tr>
	    </table>');
   new infoBox($info_box_contents);
//new infoBoxFooter();
?>
	    </td>
	  </tr>
<!-- whats_new_eof //-->
<?php
 }
?>

Link to comment
Share on other sites

Ok, I figured that out , so dissreguard please.

 

 

Now only Two issues left :)

 

How to I remove the Price , or at least move it from the right side of the picture to the bottom of it and...

 

When I click on enlarge Picture, it pops up but Only at the size of 120 x 60 ???

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...