osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Need help changing one box header

This is a discussion on Need help changing one box header within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Thanks for being interested in this question; Yet before you say, " change the infoBoxHeading style in the style sheet ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-04-2005, 09:57 AM
New Member
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
el1jones
Default Need help changing one box header

Thanks for being interested in this question;
Yet before you say, "change the infoBoxHeading style in the style sheet";
I only want to change the backgrounds (and maybe text) headings of the specials box and the shopping cart (both on the right side).

I've tried changing infoboxheading in the modules/default_specials.php; however that doesn't seem to work.
I can change all the headings via changing the infoBoxHeading style no problem.

I think I have looked everywhere, but obviously not.

Thanks for any help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-05-2005, 03:04 PM
developer_x's Avatar
Active Member
 
Join Date: Nov 2004
Location: Digital Infoway
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
developer_x
Default RE: Need help changing one box header

If i am not wrong, someone else wanted to do the same. I am not into CSS. So I don't remember the exact answer. Search at forums.oscommerce.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-05-2005, 03:23 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,070
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Need help changing one box header

Just add a new style to the stylesheet and have the box use the new style.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-05-2005, 09:15 PM
Active Member
 
Join Date: Oct 2004
Posts: 215
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 5
groggory
Default

http://oscdox.com/index.php?name=PNp...;p=12697#12697
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-08-2005, 11:48 AM
New Member
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
el1jones
Default

Thanks, All the above suggestions SHOULD work, but for some reason, I just could not get it to work. So, I used the fast and crude method and got right to the source.

I created another style in the stylesheet for what I wanted then simply changed the box template, box.tpl.php , in the following manner:

The code :

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<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>
</table>



To:

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr >
<td height="14" class="infoBoxHeading<?php if ( $boxHeading == 'Specials') {echo 'right';} if ( $boxHeading == 'Shopping Cart') {echo 'right';}?>"><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 if ( $boxHeading == 'Specials') {echo 'right';} if ( $boxHeading == 'Shopping Cart') {echo 'right';}?>"><?php echo $boxHeading; ?></td>
<td height="14" class="infoBoxHeading<?php if ( $boxHeading == 'Specials') {echo 'right';} if ( $boxHeading == 'Shopping Cart') {echo 'right';}?>" 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>
</table>

Thus directly changing the header box depending on the header title ($boxHeading).
I will redo this in a more elegant fashion a bit later, but I am in a rush and that's the simplest, most basic way to accomplish this.

I must say again, the other solutions, should work, but didn't work for me. Thanks again for the solutions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
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
Changing Header / navigation to match current site Dialady osCommerce 2.2 Modification Help 3 12-13-2005 09:37 PM
Changing Background Color of Header knowgangs osCMax v1.7 Discussion 2 07-12-2005 12:32 PM
Need help changing header dave01978 osCMax v1.7 Discussion 2 12-14-2004 02:03 PM
Changing header and footer completely mikeyboy osCommerce 2.2 Modification Help 3 10-09-2004 07:14 PM
Help needed changing link color in info box header 13Moons osCommerce 2.2 Modification Help 1 03-04-2004 02:12 AM


All times are GMT -8. The time now is 05:20 PM.


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