osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

infoBox headers

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-17-2004, 02:43 PM
New Member
 
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
glynn
Default infoBox headers

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-18-2004, 04:25 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

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>
change the 'class="infoBoxHeading"' to 'class="infoBoxHeadingTwo"'

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;
}
just after where you find the current infoBoxHeading style.

Then, go to each of the boxes which need the special colour and change:

Code:
  require(DIR_WS_TEMPLATES . TEMPLATENAME_BOX);
to

Code:
  require(DIR_WS_TEMPLATES . 'box2.tpl.php');
strictly speaking you should define new entries in includes/filename.php and use that constant, but that would take more time and effort. This should work.

jw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-19-2004, 11:54 AM
New Member
 
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
glynn
Default

It worked a treat. I had almost worked it all out. I was just calling the new template wrongly.

Many thanks jw

Glynn
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 06:22 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax