gusman126 Posted April 5, 2020 Share Posted April 5, 2020 (edited) How to add "show all products" in category list ?¿? Edited April 5, 2020 by gusman126 (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2020 Share Posted April 5, 2020 <a class="all-product-link float-xs-left float-md-right h4" href="{$allProductsLink}"> {l s='All products' d='Shop.Theme.Catalog'}<i class="material-icons"></i> </a> Link to comment Share on other sites More sharing options...
gusman126 Posted April 5, 2020 Author Share Posted April 5, 2020 thanks, but it doesn't work. {$allProductsLink} is not associated with anything. I'll ask the template developer Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2020 Share Posted April 5, 2020 sorry {$urls.pages.category} Link to comment Share on other sites More sharing options...
gusman126 Posted April 5, 2020 Author Share Posted April 5, 2020 error 404 Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2020 Share Posted April 5, 2020 PS version ? Link to comment Share on other sites More sharing options...
gusman126 Posted April 5, 2020 Author Share Posted April 5, 2020 hace 10 minutos, Guest dijo: PS version ? sorry I didn't put it, Prestashop 1.7 Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2020 Share Posted April 5, 2020 https://catalogo-onlinersi.net/en/content/33-prestashop-17-global-variables <a class="all-product-link float-xs-left float-md-right h4" href="{$urls.pages.category}"> {l s='All products' d='Shop.Theme.Catalog'}<i class="material-icons"></i> </a> Link to comment Share on other sites More sharing options...
Juan Rios1 Posted April 1, 2021 Share Posted April 1, 2021 On 4/5/2020 at 12:31 PM, Guest said: https://catalogo-onlinersi.net/en/content/33-prestashop-17-global-variables <a class="all-product-link float-xs-left float-md-right h4" href="{$urls.pages.category}"> {l s='All products' d='Shop.Theme.Catalog'}<i class="material-icons"></i> </a> In what .TPL would this go into? Link to comment Share on other sites More sharing options...
MarioCM Posted February 21, 2022 Share Posted February 21, 2022 Hi, I am also trying to add a button to show all products as it has version 1.6. I have added the code to the pagination.tpl: <nav class="pagination"> <div class="col-md-3"> {block name='pagination_summary'} {l s='Showing %from%-%to% of %total% item(s)' d='Shop.Theme.Catalog' sprintf=['%from%' => $pagination.items_shown_from ,'%to%' => $pagination.items_shown_to, '%total%' => $pagination.total_items]} {/block} </div> <div class="col-md-2"> <a class="all-product-link float-xs-left float-md-right h4" href="{$urls.pages.category_name}"> {l s='All products' d='Shop.Theme.Catalog'}<i class="material-icons"></i> </a> </div> I modify to urls.pages.category_name, but of course, it gives me the same page, it doesn't show me all the products... any ideas? 🤔🙄 thanks!! Link to comment Share on other sites More sharing options...
MarioCM Posted February 21, 2022 Share Posted February 21, 2022 (edited) I found a solution, it works fine on 1.7.8.3 Just add to theme/classic/templates/_partial/pagination.tpl <div class="col-md-4"> <a class="btn btn-secondary" href="?{$ordering}resultsPerPage=100"> {l s='All products' d='Shop.Theme.Catalog'}<i class="material-icons"></i> </a> </div> It really is a workaround, it gives you the first 100 products as a result (you can modify the desired amount) Edited February 21, 2022 by MarioCM (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now