Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing formatting of Products


mpjx

Recommended Posts

Hi!

 

In which file can I find the <table> formatting for individual products displayed within a category? The code below is an example taken from the osC Demo site.

 

<tr class="productListing-odd">
   <td align="center" class="productListing-data"> <a href="http://www.oscommerce.com/osCommerce22ms2/product_info.php?cPath=1_4&products_id=1"><img src="images/matrox/mg200mms.gif" border="0" alt="Matrox G200 MMS" title=" Matrox G200 MMS " width="100" height="80"></a> </td>

   <td class="productListing-data"> <a href="http://www.oscommerce.com/osCommerce22ms2/product_info.php?cPath=1_4&products_id=1">Matrox G200 MMS</a> </td>
   <td align="right" class="productListing-data"> $299.99 </td>
   <td align="center" class="productListing-data"><a href="http://www.oscommerce.com/osCommerce22ms2/index.php?cPath=1_4&sort=2a&action=buy_now&products_id=1"><img src="includes/languages/english/images/buttons/button_buy_now.gif" border="0" alt="Buy Now" title=" Buy Now " width="60" height="14"></a> </td>
 </tr>

 

 

I know that the file "includes/modules/product_listing.php" is used to find and display all the product information but I can't find the file that contains the <table> formatting info.

 

Any ideas please?

Martin Jewiss

Link to comment
Share on other sites

it uses one of the boxes class

 

includes/classes/boxes.php

 

I believe it is the contentBox class if I remember well.

You can either pass additional parameters, or if that doesn't work out, copy the class as eg myContentBox (make sure to change contentBoxContents reference in class also to myContentBoxContents) and make additional changes.

 

Just did something similar over the weekend :)

KEEP CALM AND CARRY ON

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

  • 4 weeks later...
Hi!

 

In which file can I find the <table> formatting for individual products displayed within a category? The code below is an example taken from the osC Demo site.

 

<tr class="productListing-odd">
? ?<td align="center" class="productListing-data"> <a href="http://www.oscommerce.com/osCommerce22ms2/product_info.php?cPath=1_4&products_id=1"><img src="images/matrox/mg200mms.gif" border="0" alt="Matrox G200 MMS" title=" Matrox G200 MMS " width="100" height="80"></a> </td>

? ?<td class="productListing-data"> <a href="http://www.oscommerce.com/osCommerce22ms2/product_info.php?cPath=1_4&products_id=1">Matrox G200 MMS</a> </td>
? ?<td align="right" class="productListing-data"> $299.99 </td>
? ?<td align="center" class="productListing-data"><a href="http://www.oscommerce.com/osCommerce22ms2/index.php?cPath=1_4&sort=2a&action=buy_now&products_id=1"><img src="includes/languages/english/images/buttons/button_buy_now.gif" border="0" alt="Buy Now" title=" Buy Now " width="60" height="14"></a> </td>
?</tr>

I know that the file "includes/modules/product_listing.php"  is used to find and display all the product information but I can't find the file that contains the <table> formatting info.

 

Any ideas please?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...