Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Box Modification Help


Guest

Recommended Posts

Posted

Hi again... I'm going nuts trying to figure this out, as my PHP skills aren't that fantastic... I'm trying to edit the box.php so it'll draw out an extra boxheader after the boxcontent. At the moment it is drawn as boxheader then boxcontent. Is it possible to make it draw another boxheader below the boxcontent? Attached, I've shown what I have at the moment. I'm trying to get another boxheader below so I can assing css values to show background pictures. I've been playing around with box.php, however I couldn't get it to draw the boxheader. Amy I heading the wrong way? Would somebody point me the right way? Thank you for your help..

 

illustration.gif

 

Overdosed

Posted

Okay ... this is fun ...

 

Open /includes/classes/boxes.php

 

Copy the whole class:

 

class infoBoxHeading extends tableBox {

 

To the same exact thing except rename all references to infoBoxHeading to infoBoxFooter

 

Don't rename the class="infoBoxHeading" settings these you can fuss with later.

 

Now say you were editing /includes/boxes/bestsellers.php

 

After the:

 

    new infoBox($info_box_contents);

 

Add:

 

    $info_box_contents= array();

   $info_box_contents[] = array('align' => 'left',

                                'text'  => 'Bottom'

                               );

   new infoBoxFooter($info_box_contents,false,false);

 

What ever you make that 'text' => 'Bottom' read is what the bottom will look like.

Posted

think outside the box.php, lol, had to say it, to add another heade look at the box's php file and you will see where the header is added.

Posted

Yiiipii Kay Yay... Thanks Ajeh, the codes worked wonderfully.... Finally understood what the boxes.php actually does. I've implemented it and added two more entries for the css, and this is what I got. illustration2.gif

But I have this problem, I can't seem to remove that space in between. I've tried aligning the css to top, but Without success. Any ideas? Again Thanks Ajeh & sw45859... :D

 

Overdosed

Posted

Hey Alex, I'm still going through my codes hoping that I will find something, unless someone actually found the problem first... Practically most of the modification in OSC design layout is tuned from the catalog/stylesheet.css Try Playing around with it... :D

Posted

I think it's the TD.Headerinfo if I remember correctly... Play around... It's pretty Easy...

Posted

That white space looks like something in your stylesheet.

 

On mine, I do not have any additional spacing added:

 

http://www.thewebmakerscorner.com/snapmods_new/

 

I added a bottom row to the Best Sellers on there.

 

I mainly have color changes on my stylesheet, so I do not think I changed anything that would remove the white space.

Archived

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

×
×
  • Create New...