Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

diving infobox into a single column???? Quantity???


Kristofor

Recommended Posts

Posted

hey everyone,

can someone tell me how i can put say all my left column into one box, and keep the heading names and everything, and i want to have like tabs up the top of my page, next to the logo, that link to the major pages. how do i do that???

 

And one more thing, when u see a list of the products for example. how can i make it so, there is a box, it says quantity, and only for certain categories, i want them to be able to just hit the quantity, and then put the quantity of many different items, in the area, then hit add to cart, down the bottom and it adds all of them to the cart.

 

ok,

thanks

 

kristofor

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Posted

sorry, let me simpplify it a bit more, i want to have everything from my left column to appear to be in the one table, but then in the table, still have the titles of each infobox and its contents below.

 

how do i do that,

i got the tabs thing worked out, i decided to use a dhmtl menu instead.

 

ok

thanks

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Posted

yeh i think maybe somthing like that, but is there certain pages that would have the stuff relevant to the columns, or do i have to do everything???

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Posted

ok i tried, that, yeh it puts them close togther, but the thing is i want it to look like they are in a box, so, i have them all appearing in this box, and the box sorta looks like it goes the whole way down, sorta like is done on this www.cdw.com they have a column all the way down the left, i know they are not oscommerce, but i want something like that.

 

if that helps to clarify it a bit more.

 

cause the problem i would get is with the column stopping, and the border around the infoboxes, theygo all the way around the infobox,

 

so any ideas??

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Posted

===============================

In catalog/includes/classes/boxes.php

you will see the following at the top, thses parameters control the size of the border around each information

box you need. You may not need to change this.

 

class tableBox {

var $table_border = '0';

var $table_width = '100%';

var $table_cellspacing = '0';

var $table_cellpadding = '2';

var $table_parameters = '';

var $table_row_parameters = '';

var $table_data_parameters = '';

===================================

in catalog/stylesheet.css the following entries set the colors of the information boxes play aroujd with these to get the correct colors

for your info boxes. .infoBoxContents is the entry that is used to create the background color around the boxes:

 

 

.infoBox {

background: #000000;

}

 

.infoBoxContents {

background: #f8f8f9;

font-family: Verdana, Arial, sans-serif;

font-size: 9px;

}

 

.infoBoxNotice {

background: #FF8E90;

}

 

.infoBoxNoticeContents {

background: #FFE6E6;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

TD.infoBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 9px;

font-weight: bold;

background: #889757;

color: #ffffff;

}

 

TD.infoBox, SPAN.infoBox {

font-family: Verdana, Arial, sans-serif;

font-size: 9px;

}

 

 

=========================

 

catalog/includes/column_left.php

in this file you need to have a table around the whole column of boxes

this uses the same background color as the contents of the info boxes.

 

under line 11 add

?>

</td><td>

<table border="0" width="100%" cellspacing="2" cellpadding="2" class="infoBoxContents">

<tr>

<td border="0" class="infoBoxContents">

<?php

 

 

at the end of the file add

</table>

</tr>

</td>

 

=======================

In every file that display information ( ie default.php, product_info.php, ect)

you need to changes the code below.

the first table entry pads the cells around both the left, center, and right columns

you can take change cellspacing="3" cellpadding="3" to cellspacing="0" cellpadding="0"

 

this removes the space around the column that has background color.

the section looks like:

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

 

gets changed to:

<!-- body //-->

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

 

While your are in all of these files you will want to remove the right column.

 

or you can

 

First make a back up copy of your column_right.php, since you may want to move some of the code to your left column later.

you can change you column_right.php to look like

 

<?php

/*

$Id: column_right.php,v 1.15 2002/03/13 13:52:20 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

// this file depreciated

?>

 

 

========================

 

This should get you very close to what you want.

 

I use http://www.oscommerce.com/community/contributions,1270

for tabs since it combines categories and menu tab items in one contribution.

and you can change the order they are displayed form the admin.

 

You can play with the tab images to create the square look by changeing the left and right tab images.

 

I also use it since I wrote it. There are other contribution out there.

look in the contribition section. It can be place in a number of area like the header.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...