View Single Post
  #2  
Old 03-13-2008, 01:06 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: category list 4.1.9

Please see include/categories.php

There is some code

Code:
if (($current_area == "C" && defined("GET_ALL_CATEGORIES")) || defined('MANAGE_CATEGORIES')) { $_categories = func_get_categories_list($cat); } elseif($current_area == "C") { $_categories = func_get_categories_list($cat, true, "current"); } else { $_categories = func_get_categories_list($cat, true, "all"); }

by default the variable "GET_ALL_CATEGORIES" is not defined.

I've added

Code:
define("GET_ALL_CATEGORIES","1");

and now I have list of all categories in
PHP - $all_categories
Smarty - $allcategories
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote