Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hiding a category


luxxy

Recommended Posts

Since your request is so broad, there are several options to choose from.

Could you be more specific? Additional details would increase the chances that someone will help you.

 

Robert

 

Hi,

I have a tricky problem. How can I hide a category?

Link to comment
Share on other sites

Hi,

I have several categories called "manufacturer 1", "manufacturer 2", ... If a customer buys a product, the manufacturer automatically gets an e-mail with all the order details.

 

Problem: I want (for example) that nobody can order products of "manufacturer 1" on Monday's. So if date=monday ---> hide "manufacturer 1"...

 

The part "if date = monday" was easy to figure out, but I have no idea how to hide a category (a manufacturer)...

 

Any idea how to do that? Which files I need to edit?

 

Thank you a lot!

Greets Downtown

Link to comment
Share on other sites

Hi,

I have several categories called "manufacturer 1", "manufacturer 2", ... If a customer buys a product, the manufacturer automatically gets an e-mail with all the order details. 

 

Problem: I want (for example) that nobody can order products of "manufacturer 1" on Monday's. So if date=monday ---> hide "manufacturer 1"...

 

The part "if date = monday" was easy to figure out, but I have no idea how to hide a category (a manufacturer)...

 

Any idea how to do that? Which files I need to edit?

 

Thank you a lot!

Greets Downtown

 

You might pull the trick by editing catalog/includes/boxes/categories.php

Look for the part where the category is added and encapsulate it in a large

IF (!day=='monday' AND categore=='manufacturer 1') OR

(!day=='tuesday' AND categore=='manufacturer 2') OR

(!day=='wednesday' AND categore=='manufacturer 3')

 

add the category string as normal

ENDIF

 

Must be careful with new products and/or featured products etc. which could show the hidden category afterall.

Link to comment
Share on other sites

You have to "pull the trick" to other places as well:

For Example: specials, reviews and advanced_search_result.php

 

HTH,

Robert

 

You might pull the trick by editing catalog/includes/boxes/categories.php

Look for the part where the category is added and encapsulate it in a large

IF (!day=='monday' AND categore=='manufacturer 1') OR

    (!day=='tuesday' AND categore=='manufacturer 2') OR

    (!day=='wednesday' AND categore=='manufacturer 3')

 

    add the category string as normal

ENDIF

 

Must be careful with new products and/or featured products etc. which could show the hidden category afterall.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...