Rajout du tri par Position dans le frontOffice

This commit is contained in:
2022-01-23 11:23:14 +01:00
parent 08f1af5f96
commit 73bd26a96b
2 changed files with 18 additions and 31 deletions

View File

@@ -18,7 +18,7 @@
<span class="sort-by">
<label for="sortby-top">{intl l="Sort By"}</label>
<select id="sortby-top" name="sortby">
{*<option value="{url path="{category attr="url"}" order="manual"}">{intl l="Position"}</option>*}
<option value="{url current="1" limit=$limit order="manual"}" {if $order=="manual"}selected{/if}>{intl l="Position"}</option>
<option value="{url current="1" limit=$limit order="alpha"}" {if $order=="alpha"}selected{/if}>{intl l="Name ascending"}</option>
<option value="{url current="1" limit=$limit order="alpha_reverse"}" {if $order=="alpha_reverse"}selected{/if}>{intl l="Name descending"}</option>
<option value="{url current="1" limit=$limit order="min_price"}" {if $order=="min_price"}selected{/if}>{intl l="Price ascending"}</option>