-
Re: hideCategories
Steven,
Just to let you know thank you so much for creating this mod. This mod is what exactly what my client need for his store. I installed and everything is great, works great.
For those who had sidebox mess up... try to look for the answer in the coding.
Because I figured out myself.
-
Re: hideCategories
does anyone know how to make this mod work properly when working along side the "categories Dressing" mod?
All files merged with winmerge and site functioning properly. I have the hide options in admin category edit, but they still appear in the category tree menu.
-
Re: hideCategories
I'm using the latest version of Zen Cart with several addons. This hidden category with products accessible only by password should work with any version.
I have come up with a pretty simple answer to something that may be of interest to several of you out there. I have set up an “Invisaible” category with “invisible” products (invisible to the casual visitor/customer). I can e-mail a password and/or user name to any number of individuals giving them access to the hidden product or products. They have access to the normal checkout procedures. The method also uses “cookies” so they don’t have to log in again if going from page to page. They will have to log in to your store site in order to check out, however.
Not sure this is what a number of you are looking for, but if you are interested (my information is free!), e-mail me at [email protected] and I’ll send you my instructions (14 steps) and supporting info.
:D
-
Re: hideCategories
Nice! Curious though... did you modify my contrib or you came up with a new one entirely?
-
Re: hideCategories
Love this mod Steven. This is exactly what I needed for my site.
Like a couple others on this thread, I use the top category tab and wanted a way to hide the categories there as well. I came up with this solution that is working for me....
copy: /includes/modules/categories_tab.php
to: /includes/modules/YOURTEMPLATE/categories_tab.php
around line 31, replace the code:
PHP Code:
$categories_tab_query = "select c.categories_id, cd.categories_name from " .
TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id=cd.categories_id and c.parent_id= '0' and cd.language_id='" . (int)$_SESSION['languages_id'] . "' and c.categories_status='1'" .
with new code:
PHP Code:
$categories_tab_query = "select c.categories_id, cd.categories_name from " .
TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd," . TABLE_HIDE_CATEGORIES . " cde
where c.categories_id=cd.categories_id and c.categories_id=cde.categories_id and c.parent_id= '0' and cd.language_id='" . (int)$_SESSION['languages_id'] . "' and c.categories_status='1' and cde.visibility_status='0'" .
This adds an argument to the query to check the visibility status and hide any category that is not set to normal.
As with another post I read in this thread, this does require that all of your categories have a hide_categories value in the database. The other post noted this could be done through editing the database to add the value. Being a novice, I don't like to directly edit the database and found a different solution. For new categories, or categories that were created before installing the hide mod, edit the category to be hidden, save, then re-edit to normal. This creates the record needed in the database.
Hope this helps.
-
Re: hideCategories
Great addition! Thanks Bumpspt.
-
Re: hideCategories
This is the mod I have been looking for! I have installed (run the scripts and copied the files to the server) it but there is a little problem. After I edited the category to be "Hidden", in the admin panel the folder icon changes to a lighter colour, however, in the storefront the category is not hidden. I am using v1.3.8.
Appreciate your help :smile:
-
Re: hideCategories
./includes/templates/YOUR_TEMPLATE/templates/tpl_products_all_default.php
does YOUR_TEMPLATE means the name of my template? does it need to be changed for the mod to work?
Thanks
-
Re: hideCategories
yes! that was my problem!
After pulling hair for 2 days, self-resolved :D
-
Re: hideCategories
Nope. This is something I came up with. I didn't realize anyone else had made any inroads on the problem until I logged on to post my update. I use two freeware downloadable scripts and made them work. Don't have to do anything at all to any of the Zen Cart files.
Keep up the good work, all!
Ron