I am not saying the code is right ... this is what is wrong with the code you posted:
Change to:
PHP Code:
switch (expression) {
case 'PRODUCT_LISTING_LAYOUT_COLUMNS':
PRODUCT_LISTING_LAYOUT_STYLE == 'columns';
require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
break;
case 'PRODUCT_LISTING_LAYOUT_ROWS':
if (category_id == '1') {
PRODUCT_LISTING_LAYOUT_STYLE == 'rows';
require($template->get_template_dir('tpl_tabular_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_tabular_display.php');
break;
}
}
Bookmarks