Jump to content

Force list view in product list

Recommended Posts

I would like the default view of the product list to be the list view, I have found a very rudimentary solution by adding in the custom js

$ (document) .ready (function () {
$ ('# list'). trigger ("click");

But it is not a satisfactory solution, since, since the page does not load the page again, it does not make the list, someone knows that part of the code in a prestashop that uses a template that is not the default must be modified to that the default view is the list view?

Thank you

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More