From 64f76a536b3adfc2479f6eb96d6bb04eaec5c168 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Fri, 3 Nov 2023 16:28:47 +0530 Subject: [PATCH] refactor: cleanup and move the sorting dropdown to right --- templates/catalog/_partials/products-top.tpl | 42 ++++++-------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/templates/catalog/_partials/products-top.tpl b/templates/catalog/_partials/products-top.tpl index 6ef7067..ca24297 100644 --- a/templates/catalog/_partials/products-top.tpl +++ b/templates/catalog/_partials/products-top.tpl @@ -22,35 +22,19 @@ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} -
-
- {if $listing.pagination.total_items > 1} -

{l s='There are %product_count% products.' d='Shop.Theme.Catalog' sprintf=['%product_count%' => $listing.pagination.total_items]}

- {elseif $listing.pagination.total_items > 0} -

{l s='There is 1 product.' d='Shop.Theme.Catalog'}

- {/if} -
-
-
- - {block name='sort_by'} - {include file='catalog/_partials/sort-orders.tpl' sort_orders=$listing.sort_orders} - {/block} - - {if !empty($listing.rendered_facets)} -
- -
- {/if} +
+ {if !empty($listing.rendered_facets)} +
+
-
-
- {l s='Showing %from%-%to% of %total% item(s)' d='Shop.Theme.Catalog' sprintf=[ - '%from%' => $listing.pagination.items_shown_from , - '%to%' => $listing.pagination.items_shown_to, - '%total%' => $listing.pagination.total_items - ]} + {else} +
+ {/if} +
+ {block name='sort_by'} + {include file='catalog/_partials/sort-orders.tpl' sort_orders=$listing.sort_orders} + {/block}