product lopp

This commit is contained in:
Etienne Roudeix
2013-07-05 11:12:51 +02:00
parent 3073f9a43c
commit a7a9688d41
2 changed files with 5 additions and 4 deletions

View File

@@ -240,10 +240,11 @@ class Product extends BaseLoop
case "reverse":
$search->orderByPosition(\Criteria::DESC);
break;
/*case "min_price":
$search->orderByPosition(\Criteria::DESC);
case "min_price":
//$search->order
//$search->orderByPosition(\Criteria::DESC);
break;
case "max_price":
/*case "max_price":
$search->orderByPosition(\Criteria::DESC);
break;
case "category":

View File

@@ -19,7 +19,7 @@
<hr />
{/loop*}
<h2>PRODUCTS</h2>
{loop name="product" type="product"}
{loop name="product" type="product" order="min_price"}
<h3>PRODUCT : #REF / #TITLE</h3>
price : #PRICE €<br />
promo price : #PROMO_PRICE €<br />