![]() |
Active categories but not listed in category menu
Hi all,
I would like to have some active categories listed somewhere aside from the main category menu. For example on a tab on the header only. I tried to create a category and mark it as not available so it doesn't show on the category menu, but when I try to access that category I see a "Category not available". Any ideas? Thank you very much in advance, Martin |
|
That mod is not working on X-Cart 4.0.14 :(
Anyone can help me? I can post my categories.php if needed. Thanks! Martin |
It works fine for me on 4.0.14...how is it not working for you? Are you getting errors or are the categories not hiding?
|
This is what I did:
In include/categories.php I changed this: Code:
$search_condition = "AND avail='Y' AND (membership='".addslashes($user_account["membership"])."' OR membership='')"; To this: Code:
$search_condition = "AND avail='Y' OR $sql_tbl[categories].avail='H' AND (membership='".addslashes($user_account["membership"])."' OR membership='')"; (as indicated in the thread you posted) When I set a category "not available" from the admin panel, the category dissapears from the category menu (customer side), but when I try to access it by it's direct link it takes me to the home page of my site. Am I missing something? Thank you very much, Martin |
There are two steps outlined in the thread. Did you also make the second change to /skin1/admin/category_modify.tpl?
|
Thank you! Solved it.
|
All times are GMT -8. The time now is 07:26 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.