Show always grid/list view first in product listing in Prestashop 1.6.x.y
Open global.js file from /themes/YOUR_THEME/js/ folder and find function bindGrid() in that.
Find code
1 |
var view = $.totalStorage('display'); |
And replace this with below code
1 |
var view = $.totalStorage('display', 'grid'); |
By doing this it will always show you grid view when you load your listing page.
If you want to have list view always then you need to replace code as shown below
1 |
var view = $.totalStorage('display', 'list'); |
That’s It!!! 🙂