Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Specific Boxes from column_left / column_right for specific pages


tkeats

Recommended Posts

basically what I want to do is this

 

When on index.php, show only the column_left boxes that are appropriate, no sense showing 'featured' items twice, in two different locations, same with 'whats new' however 'specials' belongs, cause its not in the main area (includes/modules) where-as featured and whats_new is in the includes/modules area.

 

I am having a hard time even picturing the code for this.

 

Can anyone help please?

 

Thomas

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Link to comment
Share on other sites

Look at the code in the /includes/column_left.php and the /includes/column_right.php files.

 

The // is the symbol that makes a line a comment. Boxes are called using the following line.

 

include('something.php');

So, to not show that box, use this:

// include('something.php');

 

Watch for a similar line of code.

require('something.php');

Things that are required use different error handling and are most likely very necessary to be there and you probably would not want to comment it out.

 

Keep backups and give it a try...

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

Look at the code in the /includes/column_left.php and the /includes/column_right.php files.

 

The // is the symbol that makes a line a comment. Boxes are called using the following line.

 

include('something.php');

So, to not show that box, use this:

// include('something.php');

 

Watch for a similar line of code.

require('something.php');

Things that are required use different error handling and are most likely very necessary to be there and you probably would not want to comment it out.

 

Keep backups and give it a try...

 

Yes, I realize that, the PROBLEM comes in when you want box1.php and box2.php to be on product_info.php and specials.php pages, and NOT the index.php page.

 

It needs a if/else I think but I'm forgetting how to parse the 'page' loaded into a if/else

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...