Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create My own Box


Guest

Recommended Posts

This is probuably very simple but im stumped! How can i create my own boxes to then include in the columns either side of the page? I tries to do it but it all went wrong :angry:

 

Please help me :blink:

 

-Adam-

Link to comment
Share on other sites

catalog/includes/boxes

 

add a php file with the following code (Replace"NEWBOXNAME" with a name/"YOUR TEXT..." with your text)

<?php
/*
 $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- information //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_NEWBOXNAME);
 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'YOUR TEXT OR INFORMATION GOES HERE BETWEEN THE APOSTROPHES.');

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

 

 

catalog/includes/column_left.php (or right), add this where you want it to be (replace: new_file.php, with the file name)

require(DIR_WS_BOXES . 'new_file.php');

 

 

catalog/includes/languages/english.php, add the following

define('BOX_HEADING_NEWBOXNAME', 'New Box Heading');

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Link to comment
Share on other sites

  • 2 weeks later...

I think the problem lie with the version of osc that I'm using. LOL>.. it don't always work everywhere :( It does what I want it too, letting me link where I'm affiliated with....but not 100% in this format.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...