I'm trying to change my top category page so that it displays each subcategory product listing below them.

I have all the featured products and new product boxes turned off.

I want to use some kind of loop iteration but I can't seem to find how to pass a variable specifying the category in any of these files:

tpl_index_product_list.php
tpl_modules_product_listing.php
tpl_tabular_display.php
product_listing.php

and when I put the following code:

PHP Code:
<?php
/**
 * require the code for listing products
 */
 
require($template->get_template_dir('tpl_modules_product_listing.php'DIR_WS_TEMPLATE$current_page_base,'templates'). '/' 'tpl_modules_product_listing.php');
?>
in tpl_index_categories.php, all that shows up is "TEXT_NO_PRODUCTS"

can anyone help?

I thought it would have to do with getting cPath but I don't see where anything passes it to a function.