1 {if !empty($smarty.get.order)}
2 {capture assign='ordering'}order={$smarty.get.order}&{/capture}
3 {else}
4 {assign var='ordering' value=''}
5 {/if}
6
7 {if !empty($smarty.get.resultsPerPage)}
8 {assign var='results_per_page' value=$smarty.get.resultsPerPage}
9 {else}
10 {assign var='results_per_page' value=25}
11 {/if}
1if ($resultsPerPage <= 0 || $resultsPerPage > 36) {
2 $resultsPerPage = Configuration::get('PS_PRODUCTS_PER_PAGE');
3}
1<label style="float:left;margin-right: 15px" class="form-control-label hidden-sm-down sort-label">{l s='Products per page:'}</label>
2<div style="float:left;" class="sort-select dropdown js-dropdown">
3 <a class="custom-select select-title" rel="nofollow" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
4 {$results_per_page}
5 </a>
6 <div class="dropdown-menu">
7 <a rel="nofollow" href="?{$ordering}resultsPerPage=25" class="dropdown-item js-search-link">
8 25
9 </a>
10 <a rel="nofollow" href="?{$ordering}resultsPerPage=50" class="dropdown-item js-search-link">
11 50
12 </a>
13 <a rel="nofollow" href="?{$ordering}resultsPerPage=75" class="dropdown-item js-search-link">
14 75
15 </a>
16 <a rel="nofollow" href="?{$ordering}resultsPerPage=100" class="dropdown-item js-search-link">
17 100
18 </a>
19 </div>
20</div>
1if ($resultsPerPage <= 0 || $resultsPerPage > 100) {
2 $resultsPerPage = Configuration::get('PS_PRODUCTS_PER_PAGE');
3}