Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Creating a NEW box


Ashley

Recommended Posts

Hello :)

 

 

I searched for this information but only found two old documents from 2002 that are not applicable to the current version of osCommerce. I have the latest version.

 

I want to learn how to create a new box and add anything I want to it.

 

I want to add it to the right side so I'm sure it has something to do with the file 'right.php' or something like that.

 

All I want is to add a little graphic and some text.

 

 

Your help is truly appreciated!

 

 

~Ashley

Link to comment
Share on other sites

make a copy of an existing box - and use that.

 

you will need to refer to it in includes/column_right.php to show in the right column.

Your online success is Paramount.

Link to comment
Share on other sites

Hmm...

 

 

I know what you mean.. it is still a bit tricky since I don't know exactly what code to leave intact so that the blank box will show.

 

Do you have the code I can just paste in the column_right.php ? That would be much easier for me to do since I am not really that techie. ;)

 

 

~Ashley

Link to comment
Share on other sites

in the box you make a copy of find:

 

 $info_box_contents = array();
?$info_box_contents[] = array('align' => 'left',
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' ?=> 'place your code here - after removing what is already here'

 

in column_right - paste:

 

include(DIR_WS_BOXES . 'whatever box file name is.php');

Your online success is Paramount.

Link to comment
Share on other sites

" in the box you make a copy of find: "

I'm not sure I understand that first line you wrote..

 

 

You mean I have to modify two files? One is column-right.php for sure.. what is the other one? you mean index.php?

 

Oh god.. I feel soooo dumb.. I wanna cry.. :unsure:

 

~Ashley

Link to comment
Share on other sites

what i mean is make a copy of one of the other box files from includes/boxes:

 

rename the copy to a new name relevant to what you want to put in it.

 

then make the changes mentioned in my previous post to it.

 

let me know if you get stuck.

Your online success is Paramount.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...