Skip to content

Commit

Permalink
Implemented issue #1120
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Brookbanks committed Jun 14, 2016
1 parent 5fd7e12 commit 4c61aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/catalogue.class.php
Expand Up @@ -527,7 +527,9 @@ public function displaySort($search = false) {
if ($GLOBALS['config']->get('config', 'stock_level')) {
$sorters['stock_level'] = $GLOBALS['language']->category['sort_stock'];
}
#

foreach ($GLOBALS['hooks']->load('class.catalogue.product_sort') as $hook) include $hook;

$directions = array(
'DESC' => $GLOBALS['language']->category['sort_high_low'],
'ASC' => $GLOBALS['language']->category['sort_low_high'],
Expand Down
1 change: 1 addition & 0 deletions modules/plugins/hooks.xml
Expand Up @@ -110,6 +110,7 @@
<hook trigger="class.catalogue.category_product_list_return" deprecated="" />
<hook trigger="class.catalogue.product_data" deprecated="" />
<hook trigger="class.catalogue.product_options" deprecated="" />
<hook trigger="class.catalogue.product_sort" deprecated="" />
<hook trigger="class.catalogue.display_product_options" deprecated="" />
<hook trigger="class.catalogue.imagepath" deprecated="" />
<hook trigger="class.catalogue.pre_search" deprecated="" />
Expand Down

0 comments on commit 4c61aaf

Please sign in to comment.