Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Change Layout of Product Listing


Recommended Posts

Hi everyone,

Instead of having a one column for Product Name and another for the product image and yet another for its price, I want to display them all in one column, i.e. product image<br>product name & price.

So first I went to the admin control panel and set all the displays to 0 except for Display Product Image

Then in: includes/modules/product_listing.php I edited where the image is displayed:


            $lc_align = 'center';

            if (isset($HTTP_GET_VARS['manufacturers_id'])) {

              $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';


and I added <br>' . $listing['products_name'] . ' before the closing </a>


Funny thing is it will not recognize what $listing['products_name'] means unless I give a value to Display Product Name in the administration control panel and then of course I'll have a column for the name itself as well!

Also I will want to display 3 or 4 products per row.

Any ideas?

Link to comment
Share on other sites

Just install the product listing in columns contribution, an easy install and does exactly what you want.


I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!


Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites


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

  • Create New...