Jump to content

Remove show all from category page


Recommended Posts

Hello,

 

when customers use show all on my main categories, this causes 200+ products to load, creating very slow loading pages, sometimes with 60+ seconds timing, even though I am on a powerful VPS.

 

As I know Google uses page speed to rank websites, and those slow "show all" pages really ruin my average page speed, I am considering removing the "show all" option.

 

But how?

 

Should I simply remove some lines from category.tpl ? What would the best way to do that be?

 

Thanks for your help and advice!

 

Dan

Link to comment
Share on other sites

  • 2 weeks later...

I'm having the same issue and found the solution. You need to open pagination.tpl

 

Around line 65 you'll find this section:

<button type="submit" class="btn btn-default button exclusive-medium">
	                	<span>{l s='Show all'}</span>
	                </button>

Remove that and the show all button is gone.

 

Now I only need to remove the option to view more then the set number of items on a page.

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

×
×
  • Create New...