Quote Originally Posted by yellow1912 View Post
This is what I did, worked like a charm if you want to select the product listing module you want to use:

PHP Code:
$listing_module_loaded false;
 if(!
$is_index_listing && $_GET['main_page'] == 'index' && !empty($cPath)){
     
$category_array explode('_'$cPath);
     
$category_array array_reverse($category_array);
     foreach (
$category_array as $c){
         
$listing_module_file DIR_WS_MODULES zen_get_module_directory("product_listing_c_$c.php");
         if(
file_exists($listing_module_file)){
             include(
$listing_module_file);
             
$listing_module_loaded true;
             break;
         }
    }
 }
 if(!
$listing_module_loaded)
     include(
DIR_WS_MODULES zen_get_module_directory(FILENAME_PRODUCT_LISTING)); 
What file would you put this code in?

Thanks!