osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

differnet header bar for each infobox

This is a discussion on differnet header bar for each infobox within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi, How can I have a different heder bar(image) for each infobox. When I tried applying an image by editing ...


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-04-2005, 09:54 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 differnet header bar for each infobox

Hi,

How can I have a different heder bar(image) for each infobox. When I tried applying an image by editing the box.tpl file of the one of the templates folder, the image got appplied on every box except the category box.
I wont prefer an image in the background via stylesheet editing. Is there any other easy way?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 06-05-2005, 10:33 AM
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: differnet header bar for each infobox

I know it won't be hard. Comeone guys, guide me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-06-2005, 04:32 AM
New Member
 
Join Date: Mar 2005
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
techmatters
Default RE: differnet header bar for each infobox

Actually it is a bit fiddly.
You need to create your own customised boxes.

There is a wealth of info here http://www.oscommerce.info/kb/osComm...t/Catalog_Area
but you may need to adapt it to your own needs.

Below is a procedure on customising boxes that I developed that might be helpful.

Files Affected:
/catalog/includes/column_left.php
/catalog/includes/column_right.php
/catalog/includes/boxes/
/catalog/templates/mytemplate/boxes/

The first 2 are the main programs to be addressed when removing or adding side boxes.

Column_left.php and column_right.php are included in the main template and this is where all the side boxes are added, removed or swapped from right to left.
e.g.

// require(DIR_WS_BOXES . 'whats_new.php');
// require(DIR_WS_BOXES . 'affiliate.php');
require(DIR_WS_BOXES . 'information.php');

The "What's New" and "Affiliate" boxes have been removed (commented out) while the information.php box remains (contains the static information pages)

Action Steps

Step 1:

Edit these files to include or remove new boxes as required.

Step 2 – Create new side boxes:

Two files/folders are affected:

/catalog/includes/boxes/
/catalog/templates/mytemplate/boxes/

Step 3 – Create new side boxes:

In the following folder:

/catalog/includes/boxes

Create your own box file here, using others as examples or amend as required.
Each box in the template has a file here:

/catalog/templates/mytemplate/boxes/

This file is where you can create customised boxes doing different things and having different layouts.

See box.tpl.php as an example to create your own.

Name your new file (mynewfile.tpl.php) and set $box_base_name in includes/boxes/mynewfile.php to mynewfile.
E.g. $box_base_name = 'manufacturers';
It will then automatically call manufacturers.tpl.php

Step 4 – Upload:
Any of the above files that have been amended or created.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-06-2005, 06:37 AM
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 Gonna try it...

Thanks. I have read most of what is there in the kb. But its my first time at oscmax.
I'm gonna give it a try to what you said.
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
infobox problem bersh31 osCMax v2 Customization/Mods 4 10-12-2006 10:45 PM
help removing 1px space separating infobox header/contents adam71o osCMax v2 Customization/Mods 4 03-15-2006 08:48 AM
infobox admin chfields osCMax v2 Features Discussion 1 10-25-2005 08:20 AM
header / header.php top logo problem the_error_king osCommerce 2.2 Modification Help 0 04-05-2004 05:02 PM
infobox height judoka osCMax v1.7 Discussion 2 03-05-2004 12:23 AM


All times are GMT -8. The time now is 09:12 AM.


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