[-] MO : #PSCFI-5957 - Blocklayered - Fix bug with price ordering

This commit is contained in:
mDeflotte
2012-06-28 07:15:51 +00:00
parent e44314c64e
commit 8575552091

View File

@@ -39,7 +39,7 @@ class BlockLayered extends Module
{
$this->name = 'blocklayered';
$this->tab = 'front_office_features';
$this->version = '1.8.6';
$this->version = '1.8.7';
$this->author = 'PrestaShop';
$this->need_instance = 0;
@@ -2520,7 +2520,7 @@ class BlockLayered extends Module
' LIMIT '.(((int)$this->page - 1) * $n.','.$n));
}
if (Tools::getValue('orderby') == 'price')
if (Tools::getProductsOrder('by', Tools::getValue('orderby'), true) == 'p.price')
Tools::orderbyPrice($this->products, Tools::getProductsOrder('way', Tools::getValue('orderway')));
return $this->products;