Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Big changes to the Catagories box.


everyth5

Recommended Posts

Posted

Hi all. I am in the process of changing my site a bit and need some help.

 

1. I would like to remove my Catagories box at the top of the left column and replace it with a duplication of the Information box located on the bottom of the left column.

 

2. Then I would like to configure the duplicated box at the top to be my main menu / directory.

 

I have already copied and modified the information box into a new php file called Main_menu.php. It looks like this.

 

 

<?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 © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- main_menu //-->

<tr>

<td>

<?php

$menu_box_contents = array();

$menu_box_contents[] = array('text' => BOX_HEADING_MAIN_MENU);

 

new menuBoxHeading($menu_box_contents, false, false);

 

$menu_box_contents = array();

$menu_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_MAIN_MENU_DRAGONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_OUR_PRODS) . '">' . BOX_MAIN_MENU_BAMBOO . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_MAIN_MENU_STATUES . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_MAIN_MENU_MARBLE . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_MAIN_MENU_TEAK . '</a>');

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_MAIN_MENU_SANDSTONE . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_MAIN_MENU_POTTERY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_MAIN_MENU_CLAY . '</a>');

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_MAIN_MENU_MISC . '</a>');

 

new menuBox($menu_box_contents);

?>

</td>

</tr>

<!-- main_menu_eof //-->

 

 

 

Is there something else that I should do with it? What other files do I need to modify and how do I modify them so that they can access this new file correctly.

 

Thank you very much in advance

Kelvin

Posted

Now I have added this to the english.php file:

 

// main menu box text in includes/boxes/main_menu.php

// Added by Kelvin 1 July 2006 --- NEW MODULE ---

define('BOX_MAIN_MENU_DRAGONS','Dragons');

define('BOX_INFORMATION_BAMBOO', 'Bamboo');

define('BOX_MAIN_MENU_STATUES', 'Statues');

define('BOX_MAIN_MENU_MARBLE', 'Marble');

define('BOX_MAIN_MENU_TEAK', 'Teak Products');

define('BOX_MAIN_MENU_SANDSTONE', 'Sandstone Carvings');

define('BOX_MAIN_MENU_POTTERY', 'Pottery');

define('BOX_MAIN_MENU_CLAY', 'Clay Products');

define('BOX_MAIN_MENU_MISC', 'Miscellaneous Items');

 

But I don't know where to go from here.

Posted

Ok, now I have found the Add Boxes and Add Pages contribution. I have done all the changes and just had a thought. AM I GOING TO BE ABLE TO ADD PRODUCTS TO THESE PAGES?????

 

I just checked my Admin area and cannot find the files that I just created. Is there a way to do this? Please someone help me........

Posted

I must not be seeing something - it looks like the new box you created is doing what the categories box was doing? What is the difference??

 

Why did you not need the categories box?

 

I do not know, but also do not believe, you can add products to these newly created pages.

Posted

Thanks Barbara: Yes I had the same thought AFTER I made all the modifications. I wanted something that I could easily change the text on the page. I tried the Header Tags but kept running into problems with it for some reason. And then I thought about doing it this way. But I don't think I will be able to add products to these pages without doing some MAJOR modifications. Right?

 

 

 

 

 

I must not be seeing something - it looks like the new box you created is doing what the categories box was doing? What is the difference??

 

Why did you not need the categories box?

 

I do not know, but also do not believe, you can add products to these newly created pages.

Archived

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

×
×
  • Create New...