From 73bd26a96b098b41c75e2c5867487bacb56a857e Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Sun, 23 Jan 2022 11:23:14 +0100 Subject: [PATCH] Rajout du tri par Position dans le frontOffice --- .../frontOffice/default2020/category.html | 47 +++++++------------ .../default2020/includes/toolbar.html | 2 +- 2 files changed, 18 insertions(+), 31 deletions(-) diff --git a/templates/frontOffice/default2020/category.html b/templates/frontOffice/default2020/category.html index f9e607c5..f973ad8f 100644 --- a/templates/frontOffice/default2020/category.html +++ b/templates/frontOffice/default2020/category.html @@ -48,7 +48,7 @@ {$limit={$smarty.get.limit|default:8}} {$product_page={$smarty.get.page|default:1}} -{$product_order={$smarty.get.order|default:'alpha'}} +{$product_order={$smarty.get.order|default:'manual'}} {hook name="category.top" category="$category_id"} @@ -84,37 +84,24 @@ {ifloop rel="subcategories"} - - - {loop name="subcategories" type="category" parent=$category_id} -
- - -
- -
-
-
-
-
    -{loop type="product" name="my_product_loop" category="{$ID}" depth="2" order="min_price"} - - - {include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=false hasQuickView=false width="720" height="482"} - - - -{/loop} -
-
-
- + {loop name="subcategories" type="category" parent=$category_id} +
+
+ +
+
+
+
+
    + {loop type="product" name="my_product_loop" category="{$ID}" depth="2" order="min_price"} + {include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=false hasQuickView=false width="720" height="482"} {/loop} - - +
+
+
+ {/loop} {/ifloop} - {ifloop rel="product_list"} {$amount={count type="product" category=$category_id}}