// Blocklayered - Fix bug with price ordering

This commit is contained in:
mDeflotte
2012-06-27 14:23:14 +00:00
parent 5153579fb7
commit e2dc6bc686

View File

@@ -2519,6 +2519,10 @@ class BlockLayered extends Module
.' GROUP BY p.id_product ORDER BY '.Tools::getProductsOrder('by', Tools::getValue('orderby'), true).' '.Tools::getProductsOrder('way', Tools::getValue('orderway')).
' LIMIT '.(((int)$this->page - 1) * $n.','.$n));
}
if (Tools::getValue('orderby') == 'price')
Tools::orderbyPrice($this->products, Tools::getProductsOrder('way', Tools::getValue('orderway')));
return $this->products;
}