Category drop down box shows inactive categories (v. 2.72 - 2.93)
When using the category drop down box (categories.php include, or %CATEGORY_DROPDOWN%), inactive categories show in the drop down box. They do not appear in the catalog itself, but do show in the box. To fix this, change the "yes" to "no" in the categories.php include:
-
Open the categories.php file in the /enc/ folder.
-
Version 2.93
Change the following code:
setcategories(0, $currddcat, 0, " ", "- ", "", "dropcat", 0, 0, "", "yes", "no", "no");
to:
setcategories(0, $currddcat, 0, " ", "- ", "", "dropcat", 0, 0, "", "no", "no", "no");
Versions 2.72 - 2.92
Change the following code:
setcategories(0, 0, 0, " ", "- ", "", "dropcat", 0, 0, "", "yes", "no", "no");
to:
setcategories(0, 0, 0, " ", "- ", "", "dropcat", 0, 0, "", "no", "no", "no");