osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

How To: have different right and left column widths

This is a discussion on How To: have different right and left column widths within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I just figured this out and thought I would share incase anyone else is trying to do this. I found ...


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 03-25-2004, 07:30 AM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
Default How To: have different right and left column widths

I just figured this out and thought I would share incase anyone else is trying to do this. I found the directions at osc.com but soon realized I didn't have a catalog/default.php a file that was needed to make the changes. Then it dawned on me that it might be because with MAX you've got the BTS.
So I just have to use the main_page.tpl instead. Here's how it works

1. Open catalog/includes/application_top.php
2. Find the line (around line 47) that reads
Code:
// customization for the design layout
 define('BOX_WIDTH', 145); // how wide the boxes should be in pixels (default: 125)
3. after this, add the following lines ....
Code:
// customization for the design layout left column
 define('BOX_WIDTH_LEFT', 165); // how wide the boxes should be in pixels (default: 125)
 
// customization for the design layout right column
 define('BOX_WIDTH_RIGHT', 125); // how wide the boxes should be in pixels (default: 125)
6. (set your own width preferences (I have used 165 pixels for the left column and 125 pixels for the right) Save file
7. Now open the second file to edit: catalog/templates/main_page.tpl
you will need to change 2 lines.
8. Find the first line to change that reads
Code:
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
9. REPLACE this line, with the following line ....
Code:
<td width="<?php echo BOX_WIDTH_LEFT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="2">
10. Find the second line to change that reads
Code:
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
11.REPLACE this line with the following line....
Code:
<td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="2">
5. save the file and upload your 2 changed files to your active installation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to Kristine For This Useful Post:
altenter (08-24-2008)
Sponsored Links
Advertisement
  #2  
Old 08-03-2005, 09:53 PM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default RE: How To: have different right and left column widths

Hi,

Great tip. If you wanted to keep the box width changes confined to the template, ie allow you to switch box widths depending on the template you are in, simply insert the define box width left / right into main_page.tpl rather than includes/application_top.tpl

Thanks for getting me started on this Kristine.

Cheers
Tim
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
Move Left Column Down torweb osCMax v2 Customization/Mods 1 05-01-2006 03:15 PM
Left column to large gamefreak7 osCMax v2 Features Discussion 1 07-27-2005 09:47 AM
Incorporating column left and right together. billybeag osCMax v1.7 General Mods Discussion 3 05-18-2004 07:17 PM
Move all in rh column to left and remove RH column jloyzaga osCMax v1.7 Discussion 0 03-24-2004 03:24 PM
column widths in oscommerce loaded v5 cforscutt osCommerce 2.2 Modification Help 3 03-13-2003 02:00 AM


All times are GMT -8. The time now is 01:04 PM.


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