Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Links on Left and or Right of Main Store


ErkDog

Recommended Posts

Posted

I can't find anything in the configuration to do this, but basically I want to add some links to the left and/or right of the main store pages.

 

If there is no way to do this in the configuration I assume I would basically have to use the headers and footers to "wrap" content around the main store pages.

 

The only problem with this is that I don't see header or footers in the configuration either!!!

 

Please advise!!

Posted

OK Guys... here's whats going on now...

 

I have test.php in the /includes/boxes folder. Here is its contents

 

<tr>
<td>

<hr>
omg.test.lol
<hr>

</td>
</tr> 

 

Here is my /includes/column_left.php

 

<?php
/*
 $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 if ((USE_CACHE == 'true') && empty($SID)) {
   echo tep_cache_categories_box();
 } else {
   include(DIR_WS_BOXES . 'categories.php');
 }

 if ((USE_CACHE == 'true') && empty($SID)) {
   echo tep_cache_manufacturers_box();
 } else {
   include(DIR_WS_BOXES . 'manufacturers.php');
 }

 require(DIR_WS_BOXES . 'whats_new.php');
 require(DIR_WS_BOXES . 'search.php');
 require(DIR_WS_BOXES . 'information.php');
 require(DIR_WS_BOXES . 'test.php');

?>

 

Now shouldn't omg.test.lol show up somewhere?

 

Also I don't see any of these other boxes anywhere!@#!

 

Please help!!!!

Posted

I'm picking up an OSCommerce site from another business as they no longer dealing with "small" clients.

 

Where would it be removed/commented?

 

The file certainly isn't removed as I have the above code sitting in it!!

 

Where is the code where I can "re enable" the side links?

 

Thanks,

Matt

Posted

Apart from a couple of files, like popup_image.php, the call for the left column is in every root level file:

 

<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->

Posted

OK that code is nowhere in my root files.

 

I assume by root files you also mean index.php?

 

Where in the index.php and other 'root' files should this be located?'

 

Thanks alot spax.

Posted

Yeah, index.php is one of the files. In a stock index.php, the first few lines of code look like this:

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->

 

You can see the call for column_left.php is quite early so if your code is much different, you only need to work in a cell <td> in the containing table to open a nested table for column_left.php. You will also see that the nested table only needs the <table></table> tags. The rows and cells are generated from the actual box files.

Archived

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

×
×
  • Create New...