Jump to content

How to add "show all products" in category list?? Prestashop 1.7


gusman126

Recommended Posts

<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">&#xE315;</i>
  </a>

 

Link to comment
Share on other sites

  • 11 months later...
  • 10 months later...

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">&#xE315;</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

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">&#xE315;</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 by MarioCM (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...