Re: Display All Subcat Products in Parent Cat
Actually, it's really easy.
in products.php modify this line:
$search_data["products"]["search_in_subcategories"] = "";
to
$search_data["products"]["search_in_subcategories"] = "Y";
If you want to show all products in all subcategories on the home page you need to modify these lines in home.php:
if (!empty($cat))
include "./products.php";
to
#if (!empty($cat))
include "./products.php";
That's all. I haven't tested this too much so I don't know about unforeseen consequences. I'll refer back if there is a problem.
__________________
xcart v. 4.18-4.4
|