foz1234 Posted January 12, 2018 Share Posted January 12, 2018 Is there any way to set the default view for products in categories as a tile rather than a list type? or is that already default and i have changed my view? its been a while lol Thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 12, 2018 Share Posted January 12, 2018 I think, by default for Foundation, a Category View is in a 'list' style. (This is, of course, a layout consideration of the skin you are using, and not a specific decision or setting made within CubeCart.) There are a few edits to make to the template to have it initially be in a grid view: In content.category.php, near line 59, find: <dd><a href="#" class="grid_view"><svg class="icon"><use xlink:href="#icon-th-large"></use></svg></a></dd> <dd class="active"><a href="#" class="list_view"><svg class="icon"><use xlink:href="#icon-th-list"></use></svg></a></dd> Change to: <dd class="active"><a href="#" class="grid_view"><svg class="icon"><use xlink:href="#icon-th-large"></use></svg></a></dd> <dd><a href="#" class="list_view"><svg class="icon"><use xlink:href="#icon-th-list"></use></svg></a></dd> Near line 70, find: <div class="row product_list_view"> Change to: <div class="row product_list_view hide"> Near line 130, find: <div class="product_grid_view hide"> Change to: <div class="product_grid_view"> Because a template has been changed, we need to clear the template cache (admin, Maintenance, Rebuild tab, Clear Cache). Quote Link to comment Share on other sites More sharing options...
foz1234 Posted January 13, 2018 Author Share Posted January 13, 2018 Thank you Brian, i am away this weekend but will edit when back on Monday, Regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.