Originally Posted by
tomlcuneo
Couple of options come to mind, one is to duplicate the files "affected" and reference them, or to modify the way the existing function(s) work. Yes, the categories are referenced by a main_page = index; therefore, selecting the filter returns back to index (homepage), the thing here is though there are parameters associated that need to be addressed...
Not entirely sure the "safest" route, but, the following code in includes/templates/YOUR_TEMPLATE/templates/tpl_modules_listing_display_order.php could be modified from:
Code:
echo zen_draw_form('sorter_form', zen_href_link($_GET['main_page']), 'get');
echo zen_draw_hidden_field('main_page', $_GET['main_page']);
to:
Code:
echo zen_draw_form('sorter_form', zen_href_link($_GET['main_page'], $parameters), 'get');
echo zen_draw_hidden_field('main_page', $_GET['main_page']);
Alternatively, could use a check to see the value of main_page and get the appropriate information from that condition and or additional checks of values set on the get environment instead of always passing the $parameters. The next thing would be to go back and copy/duplicate includes/templates/YOUR_TEMPLATE/templates/tpl_modules_listing_display_order.php and includes/templates/YOUR_TEMPLATE/templates/tpl_product_listing_standard.php giving each a name that relates to your categories filtering, modify the call in the product_listing_standard file, then in the includes/modules/pages/index/main_template_vars.php (or subsequent individual file) reference the newly generated version of the product_listing_standard file... This way, only the index would use the new file, but still may need to be limited to the case(s) desired.
All of the above is untested and unfortunately only from ideas/concepts and code review..
Bookmarks