Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

redesigning product_listing.php is there away?...


atech

Recommended Posts

Posted

Hello,

 

I am trying to redesign the products_listing.php, so it would go like the little layout i have below:

 

--------------- 

|             |

|             | 

|  Picture    | Products name

|   here      | Products Model

|             | Products Price

|             |

|             |

---------------

 

Is there away to do this, if so how would i go about doing it like that?

 

Thank!

Posted

I have that layout on my site.

 

In product.php, make your code similar to..

 

<?php

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

?>

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

<td align="left">Products name<br>Products Model<br>Products Price<br></td></tr></table>

Archived

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

×
×
  • Create New...