Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

editing product_info.php


Guest

Recommended Posts

Posted

can anyone please tell me what part of code i need to edit to simply lift the product image higher in the page to prevent too much scrolling of my product details?

 

thank you

 

My Product Webpage

 

steve

Posted

its in the catalog\products_info.php you should be able to find something like this in that file.

 

    if (tep_not_null($product_info['products_image'])) {

 

you could work the html code there for the extra space.

Posted
its in the catalog\products_info.php you should be able to find something like this in that file.

 

 ? ?if (tep_not_null($product_info['products_image'])) {

 

you could work the html code there for the extra space.

 

Yep, i know the file and the code in question, BUT need the answer to your comment 'working the html code' ??

 

Here is the block of code i keep trying to alter but still won't lift the image - up the page toward the header;

 

<tr>
       <td class="main">
<table width="560"  border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
   <?php
   if (tep_not_null($product_info['products_image'])) {
?>
       <td width="140" bgcolor="#FFFFFF"><table  width="130" border="0" cellspacing="0" cellpadding="2" align="center">
         <tr>
           <td align="center" class="smallText"><script language="javascript"><!--
document.write('<?php echo '<a href="javascript: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>' . tep_image_button('image_enlarge.gif', 'Click to Enlarge') . '</a>'; ?>');
//--></script>
           </td>
         </tr>
     </table></td><?php } ?>

Posted

try change the alignment for the picture first adding the valign in it

 

<td align="center" valing="top" class="smallText"><script language="javascript"><!--

also before the code you posted (few lines up) you have another table

<table border="0" width="560" cellspacing="0" cellpadding="4" align="center">

cellpadding will induce a certain margin you could try it with 2 or 1 on both tables you have there. (if the aligment is not enough)

Posted

thanks but been doing that all night.

 

just sorted it though by taking out the 'date listed' code, that i previously commented out

 

thanks

Archived

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

×
×
  • Create New...