Add New Box ClassLast Update: 20th July, 2005
Article ID: 248


The class for the boxes can be change for one box only by adding a new box class with a new style and changing that particular box to the new style.


Create a new "box class" in catalog/includes/classes/boxes.php ... the one created below uses plainBox as the new box class:

class plainBox extends tableBox {
function plainBox($contents) {
$this->table_data_parameters = 'class="plainBox"';
$this->tableBox($contents, true);

In the stylesheet.css, define a new class called "plainBox" and assign the
settings you want for your new box style.

Change your catalog/includes/boxes/file (using the manufacturers box as an example) so that the last line reads:

From this:

new infoBox($info_box_contents);
< /td>
< /tr>
< !-- manufacturers_eof //-->

To this:

new plainBox($info_box_contents);
< /td>
< /tr>
< !-- manufacturers_eof //-->

Sometimes you have to alter this code also at the top of the box file. Just do this if the above doesn't work.

new infoBoxHeading


new plainBox

The new products box is changed in the includes/modules/new_products.php page.



Trademark Policy | Copyright Policy | Sitemap

Copyright © 2000-2005 osCommerce. All rights reserved.