Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC gurus, Can you tell me where this code comes from


Epic Mike

Recommended Posts

If I view the source code from my catalog/index.php, I get some code under <!-- new_products_eof //--> that I can't find in my new_products.php. I know it's created by the table, but I don't know where to find it. Here's the code. I want to find the class definition in red:

 

.

.

.

.

<!-- new_products_eof //-->

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" class="newproductsinfobox">

<tr bgcolor="#000000">

<td width="3" background="images/boxes/table_blue_left_side.gif"> </td>

<td> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="infoBoxContents">

<tr>

<td align="center" class="newproductsinfobox" width="33%" valign="top"><a href="http://www.mydomain.com/catalog/product_info.php?products_id=33"><img src="images/photocomingsmall.gif" border="0" alt="Moab Tires" title=" Moab Tires " width="100" height="80"></a><br><a href="http://www.mydomain.com/catalog/product_info.php?products_id=33">Moab Tires</a><style=main></style><s><br>List Price: $125.00</s><br>Our Price: $80.00</td>

 

<td align="center" class="newproductsinfobox" width="33%" valign="top"><a href="http://www.mydomain.com/catalog/product_info.php?products_id=28"><img src="images/photocomingsmall.gif" border="0" alt="Savage 25" title=" Savage 25 " width="100" height="80"></a><br><a href="http://www.mydomain.com/catalog/product_info.php?products_id=28">Savage 25</a><style=main></style><s><br>List Price: $475.00</s><br>Our Price: $430.00</td>

<td align="center" class="newproductsinfobox" width="33%" valign="top"><a href="http://www.mydomain.com/catalog/product_info.php?products_id=30"><img src="images/photocomingsmall.gif" border="0" alt="Savage 25 (Limited)" title=" Savage 25 (Limited) " width="100" height="80"></a><br><a href="http://www.mydomain.com/catalog/product_info.php?products_id=30">Savage 25 (Limited)</a><style=main></style><s><br>List Price: $600.00</s><br>Our Price: $475.00</td>

</tr>

<tr>

<td align="center" class="newproductsinfobox" width="33%" valign="top"><a href="http://www.mydomain.com/catalog/product_info.php?products_id=32"><img src="images/photocomingsmall.gif" border="0" alt="Servo" title=" Servo " width="100" height="80"></a><br><a href="http://www.mydomain.com/catalog/product_info.php?products_id=32">Servo</a><style=main></style><s><br>List Price: $100.00</s><br>Our Price: $65.00</td>

 

</tr>

</table>

</td>

</tr>

</table>

</td>

<td width="3" background="images/boxes/table_blue_left_side.gif"> </td>

</tr>

</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="newproductsinfobox">

<tr>

<td width="15"><img src="images/boxes/table_index_bottom_left.gif" width="15" height="21"></td>

 

<td width="100%" background="images/boxes/table_index_bottom.gif"> </td>

<td width="15"><img src="images/boxes/table_index_bottom_right.gif" width="15" height="21"></td>

</tr>

</table>

</td>

 

</tr>

 

 

</table></td>

 

</tr>

 

</table></td>

 

.

.

.

.

.

Link to comment
Share on other sites

each of the boxes uses the class boxes.php to create the whole tables. Look in includes/classes/boxes.php

 

you're probably looking for this:

	function infoBoxContents($contents) {
  $this->table_cellpadding = '3';
  $this->table_parameters = 'class="infoBoxContents"';
  $info_box_contents = array();

 

 

(although my cellpadding is only 3 :) )

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...