Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing the Product Listing


alibaabaa

Recommended Posts

I am trying to change the format of how the products are displayed and am having problems finding where to do it.

 

In catalog/includes/modules/product_listing.php you have the main code for the product page but no way as far as I can see to re-arrange the table it is in.

 

I want to put the buy it now and price in a row or two under the picture not in three columns next to each other.

 

Anyone know how this is done?

 

Many thanks

 

E

Link to comment
Share on other sites

The content is laid out in tables

 

look for <table> which is the beggining and </table> which is the end

 

<td> is the roughly the type and style of content

<tr> is the content of the row

 

the content itself is usually <?php echo, this allows the content to be different but the template/layout to be the same.

 

This will help in understanding how to change the layout

 

to have price etc in seperate rows edit the code so that each content <?php echo is in a new row or <tr>

 

for example:

 

<table border="0" cellspacing="0" cellpadding="2" align="right">

<tr>

<td align="center" class="smallText">

<tr><?php echo stripslashes($product_info['products_description']); ?></tr>

</td>

</tr>

</table>

 

have a play around and you should be able to get it looking as you please without writting any code just copy and pasting.

 

I hope this helps

Link to comment
Share on other sites

If you look at catalog/includes/modules/product_listing.php you can see it is not as easy as changing simple table settings. The product info page is much easier to edit.

 

Can someone look at my site and tell me what I need to do please.

 

http://www.baabaacards.co.uk/catalog/index.php?cPath=21

 

I just want the buy now and price under the picture.

 

Thanks

 

Elliot

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...