Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to get a table to use TD.infoBoxHeading


jhande

Recommended Posts

Maybe because I've been up all night and I'm losing my mind, but I can't get this to work... :huh:

 

I've installed Related Products v4 and I'm trying to get the table to match my infoboxes.

 

I have tried to do the same for the product listings in the past with no success.

 

I have tried all forms of swapping the class ID's around and it always just shows the corner_right_left.gif in all three cells.

 

This is the code I have now for the related products table:

 

<table cellspacing="0" cellpadding="0" width="100%">

<tr>

<td width="11" height="18" class="infoBoxHeading"> </td>

<td align="left" height="18" class="infoBoxHeading"><?php echo TEXT_RELATED_PRODUCTS ?></td>

<td width="11" height="18" class="infoBoxHeading"> </td>

</tr>

 

You can see example here.

Any idea how I can get the corner_left.gif and corner_right.gif into the proper table cells?

 

Would be nice to also get it to work for the product listing table. :rolleyes:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Not sure if this is right so backup your file first.

 

In includes/modules/optional_related_products.php the original start of that table was this

<tr>
 <td>
<table class="productlisting" border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
  <td align="center" class="productListing-heading"> <?php echo TEXT_RELATED_PRODUCTS ?> </td>
</tr><tr>
  <td align="center" class="productListing-data">
	<table border="0" cellspacing="0" cellpadding="2" width="100%" align="center">
	<tr>

Change to

<tr>
 <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => TEXT_RELATED_PRODUCTS);

 new infoBoxHeading($info_box_contents, true, true);
?>
<table class="productlisting" border="0" cellspacing="0" cellpadding="2" width="100%">
 <tr>
  <td align="center" class="productListing-data">
	<table border="0" cellspacing="0" cellpadding="2" width="100%" align="center">
	<tr>

That will make use of the infoBoxHeading like your tight and left columns do.

 

Not sure about the product listing box. I've tried things that haven't worked too.

Link to comment
Share on other sites

Thank you Brian, that worked great!

 

 

Much appreciated... ;)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...