Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Editing the Product Listing


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



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">


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

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





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.




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





Link to comment
Share on other sites


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

  • Create New...