Black Belt
- Join Date:
- Jul 2005
- Location:
- Upstate NY
- Posts:
- 21,876
- Plugin Contributions:
- 8
Is this possible ? Two or more product listing layouts (one per category)?
Assuming you will have style set to "columns", you would just add more if() or }elseif(){ lines: ```php
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
if ($current_category_id == 544) {
require($template->get_template_dir('tpl_columnar_display2.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display2.php');
} elseif ($current_category_id == 567) {
require($template->get_template_dir('tpl_columnar_display3.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display3.php');
} elseif ($current_category_id == 246 or $current_category_id == 321) {
require($template->get_template_dir('tpl_columnar_display4.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display4.php');
} elseif (in_array($current_category_id, explode(',', '12,24,56,69')) {
require($template->get_template_dir('tpl_columnar_display5.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display5.php');
} else {
require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
}
} else {// (PRODUCT_LISTING_LAYOUT_STYLE == 'rows')