This is a discussion on infoBox headers within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I need to change some but not all of the infobox (shopping cart) header background colours. Since the template system ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I need to change some but not all of the infobox (shopping cart) header background colours. Since the template system affects all the boxes how do I change 1 or 2. Also I need to add an image to the privacy page ( not a background image) how do I go about this. |
|
#2
| |||
| |||
| easiest way would be to create a new box template. Copy the old one exactly, named (eg) box2.tpl.php in the same directory (catalog/templates/) In the new one, on lines 6-8: Code: <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/<?php switch ($corner_left) { case 'square': echo 'corner_right_left.gif'; break; case 'rounded': echo 'corner_left.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading"><?php echo $boxHeading; ?></td>
<td height="14" class="infoBoxHeading" nowrap><?php echo $boxLink; ?><img src="images/<?php switch ($corner_right) { case 'square': echo 'pixel_trans.gif'; break; case 'rounded': echo 'infobox/corner_right.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td>
</tr>
then in catalog/stylesheet.css add the following item Code: TD.infoBoxHeadingTwo {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
font-weight: bold;
background: #{YOUR COLOUR IN HERE};
color: #ffffff;
}
Then, go to each of the boxes which need the special colour and change: Code: require(DIR_WS_TEMPLATES . TEMPLATENAME_BOX); Code: require(DIR_WS_TEMPLATES . 'box2.tpl.php'); jw |
|
#3
| |||
| |||
| It worked a treat. I had almost worked it all out. I was just calling the new template wrongly. Many thanks jw Glynn |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| removing extra TD's in the box or infobox headers | line47 | osCommerce 2.2 Modification Help | 0 | 09-30-2005 07:16 AM |
| 2 headers UGH! | AnnieChrist | osCommerce 2.2 Modification Help | 1 | 03-24-2005 05:06 AM |
| Headers | lem | osCMax v1.7 Discussion | 0 | 02-18-2005 12:07 AM |
| Remove box headers? | operadivamommy | osCMax v1.7 Discussion | 3 | 12-01-2004 10:04 AM |
| Replace InfoBox Headers with Graphics | xtech | osCMax v1.7 General Mods Discussion | 2 | 03-22-2004 08:47 PM |