Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Index Page


mkdesigns

Recommended Posts

I want my header and footer to stay the same, but when the user goes to my index page I would like it to be images only and no right or left columns. I had read through some previous posts through search and found where I can add this

<?php include("mypage.html"); ?>

 

I just don't quite understand where I put that and what needs to come out. Thank you!

Link to comment
Share on other sites

I want my header and footer to stay the same, but when the user goes to my index page I would like it to be images only and no right or left columns. I had read through some previous posts through search and found where I can add this

<?php include("mypage.html"); ?>

 

I just don't quite understand where I put that and what needs to come out. Thank you!

Well, first you must have an actual page names mypage.html else it will not work. Then, it really has nothing to do with the columns. If you want to eliminate the columns you will have to find the occurrences of require(includes/column_left.php) and require(includes/column_right.php) and put // in the first position of each line.

 

You're gonna have to find something else to do with all that info in those columns...

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Well, first you must have an actual page names mypage.html else it will not work. Then, it really has nothing to do with the columns. If you want to eliminate the columns you will have to find the occurrences of require(includes/column_left.php) and require(includes/column_right.php) and put // in the first position of each line.

 

You're gonna have to find something else to do with all that info in those columns...

Yes, that is what I thought. So, where would I put that info? I do not have a column left, but do have a column right still. Maybe I should just add the images to the center until I learn more about this. I don't want to mess it all up. Thanks!

Link to comment
Share on other sites

I want my header and footer to stay the same, but when the user goes to my index page I would like it to be images only and no right or left columns. I had read through some previous posts through search and found where I can add this

<?php include("mypage.html"); ?>

 

I just don't quite understand where I put that and what needs to come out. Thank you!

The index page is broken down into 3 parts.

1. Nested, If you have clicked on a category/subcategory that has subcategories.

2. Products. If you have clicked on a category/subcategory that has products or selected a manufacturer from the drop down.

3. Top/default. When you first go to the index page.

 

Which part are you trying to hide the columns from?

Link to comment
Share on other sites

The index page is broken down into 3 parts.

1. Nested, If you have clicked on a category/subcategory that has subcategories.

2. Products. If you have clicked on a category/subcategory that has products or selected a manufacturer from the drop down.

3. Top/default. When you first go to the index page.

 

Which part are you trying to hide the columns from?

 

I want the index page to look like this:

example3.jpg

 

If I take out the columns on the index.php will they function? For example, when a user clicks on the top nav for "apparel" I want the images to disappear and bring up products in the center and the left column. Thank you!

Link to comment
Share on other sites

I want the index page to look like this:

example3.jpg

 

If I take out the columns on the index.php will they function? For example, when a user clicks on the top nav for "apparel" I want the images to disappear and bring up products in the center and the left column. Thank you!

Like I said, the index page is split into 3 parts. You can hide the columns from all or parts of it. Depends on what you want.

 

An example for the left column to be shown on all parts of the index accept for the default(when you first bring it up) is to do this.

 

Find in index.php

   <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>

Change to

<?php
   if (($category_depth != 'top') || isset($_GET['manufacturers_id'])) {
?>
   <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>
<?php
 }
?>

It all depends on what you want to do.

Link to comment
Share on other sites

Great! When I add the code above, where and how do I insert my images? I'm sorry, I am SO new to this!

In index.php around line 300 look for

 } else { // default page

After that you find

           <td class="main"><?php echo TEXT_MAIN; ?></td>

The TEXT_MAIN is located in catalog/includes/languages/english/index.php or whatever language you need. You can modify that or add it directly to the index page in that same section.

 

As to your newsletter box not sure what you are looking for there. Is it for subscriptions for only registered customers?

Link to comment
Share on other sites

Actually, I am wondering now if I do need a left column for the left side images and then have the large images in the center, but if I do that to the column_left.php wouldn't it mess up the remaining pages for my products to show up in the left column? And then I thought I could put the bottom images in the top of the footer? I am thinking I will just make the newsletter box to where it can be a link and not fill in the email because I will want them to register and sign up for the newsletter at the same time. Thank you so much for all your help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...