Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index page layout


npereira

Recommended Posts

Posted

Hi all,

 

I wanted to know if there's a place on the site here (could'nt find it) that explaines how to modify the index.php file for different layout scheme.

 

My issue is I want to have all categories listed on the front page. I have removed the Right and left column due to space limitation on my site (embeded in phpBB).

 

Can anyone direct me or tell me what I need to do?

 

Thanks again!

 

NP

Posted

Hi,

 

The left column is where the categories are displayed, in a box, like this

 

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

 

so if you have removed the code for the "require", then, ..... no categories. :D

 

You will have to have a look through the file /catalog/includes/column_left.php to see how the category display is done (it's actually called by an include in column_left.php)

 

From memory, the variable $categories_string , which is built in /catalog/includes/boxes/categories.php contains the category descriptions. You _should_ be able to simply include this file ??

 

Peter

Posted

The thing is, I can't seem to figure out where to add the

 

<?php include(DIR_WS_BOXES . 'categories.php'); ?>

 

in the /catalog/index.php file so it shows in every page?!? :blink:

I want to make it as easy as possible so the user, where ever he is in the shop, can jump to a specific category of his choice.

 

Can anyone suggest where to place the code and how to format it?

 

Thanks

 

NP

Posted

Ok, I found where to put the include statement.

 

Now, I basicaly want to include only specific things, but when putting the included statement in a table, each includes is added under the other.

 

See my site My Webpage

Posted

Alright, Almost there, but dont like the way the boxes are not all aligned at the bottom.

 

 

Basicaly, I want the Left column and right Column to be at the top (orizontal) and Bottom (horizontal). What would be the quickest way to achieve this, and have it all align correctly?

Posted

Ok, After fidling for a day on this, I found a contrib to do what I want. It's called "brouse by Category".

 

Thanks Anyway!

Archived

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

×
×
  • Create New...