Jump to content

How to change number of products per line in the search result page


geochrist

Recommended Posts

Hi,

I am using prestashop 8.0.4.

When performing a search with the search bar the page that is displayed with the results contains a grid where every row has 4 products. Is there a way to change this to display 5 or 6 products? What files should be edited?

Thank you

 

Link to comment
Share on other sites

hi there, if you want to change the numbers of products per line on search page you can go to /themes/your-theme/templates/catalog/listing/search.tpl

you will find this code : {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-6 col-xl-3"} for 4 products per line on desktop

if you want to show 6 products per line replace the code above by {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-6 col-xl-2"}

if you want to show 3 products per line replace the code above by {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-6 col-xl-4"}

if you want to show 2 products per line replace the code above by {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-6 col-xl-6"}

 

  • Like 1
Link to comment
Share on other sites

  • 10 months later...

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...