List view and grid view

webmaster108
4 Posts
webmaster108 posted this 12 March 2016

Hello, how to change the display by default grid products ? I wish that visitors are on by default in the list view and not on the grid view

Hello, how to change the display by default grid products ? I wish that visitors are on by default in the list view and not on the grid view
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 15 March 2016

Hello,
unfortunately it's not possible, the default grid output is hardcoded in theme code.

reegards,
Aileen

Hello, unfortunately it's not possible, the default grid output is hardcoded in theme code. reegards, Aileen
webmaster108
4 Posts
webmaster108 posted this 16 March 2016

Yes , I actually believed noticed that the option was not available by default pass . That said, I search the / the modified files to achieve this , and themler using its own standards I thought you might guide me me to manage the file in list or grid view, probably a .js ?

Yes , I actually believed noticed that the option was not available by default pass . That said, I search the / the modified files to achieve this , and themler using its own standards I thought you might guide me me to manage the file in list or grid view, probably a .js ?

Last edited 16 March 2016 by webmaster108

webmaster108
4 Posts
webmaster108 posted this 16 March 2016

The option is normally present in the theme manager of PrestaShop 1.6, but use a theme themler makes it unusable

The option is normally present in the theme manager of PrestaShop 1.6, but use a theme themler makes it unusable
Support Team
Support Team posted this 21 March 2016

Hello,
I'll contact developers what could be changed in heme files and will let you know.

Regards,
Aileen

Hello, I'll contact developers what could be changed in heme files and will let you know. Regards, Aileen
Support Team
Support Team posted this 22 March 2016

Hello,
in file product-list.tpl find the code

{assign var=defaultLayout value="{if isset($smarty.cookies.layoutType) && !empty($smarty.cookies.layoutType)}{$smarty.cookies.layoutType}{else}grid{/if}"}

and replace it with

{assign var=defaultLayout value="{if isset($smarty.cookies.layoutType) && !empty($smarty.cookies.layoutType)}{$smarty.cookies.layoutType}{else}list{/if}"}

regards,
Aileen

Hello, in file `product-list.tpl` find the code {assign var=defaultLayout value="{if isset($smarty.cookies.layoutType) && !empty($smarty.cookies.layoutType)}{$smarty.cookies.layoutType}{else}grid{/if}"} and replace it with {assign var=defaultLayout value="{if isset($smarty.cookies.layoutType) && !empty($smarty.cookies.layoutType)}{$smarty.cookies.layoutType}{else}list{/if}"} regards, Aileen
webmaster108
4 Posts
webmaster108 posted this 22 March 2016

Hello ,
Thank you very much, I finally know or is this snippet of code!
All work perfectly. A big thank you to the developers as.

Solved!

Hello , Thank you very much, I finally know or is this snippet of code! All work perfectly. A big thank you to the developers as. Solved!
Support Team
Support Team posted this 23 March 2016

You are welcome.
Feel free to contact us in any other occasion.

Sincerely,
Hella

You are welcome. Feel free to contact us in any other occasion. Sincerely, Hella
You must log in or register to leave comments