luxxy Posted July 28, 2005 Share Posted July 28, 2005 Hi, I have a tricky problem. How can I hide a category? Link to comment Share on other sites More sharing options...
Rob123 Posted July 29, 2005 Share Posted July 29, 2005 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? <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
luxxy Posted July 29, 2005 Author Share Posted July 29, 2005 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 More sharing options...
wheeloftime Posted July 29, 2005 Share Posted July 29, 2005 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 <{POST_SNAPBACK}> 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 More sharing options...
Rob123 Posted July 29, 2005 Share Posted July 29, 2005 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.phpLook 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. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.