keat Posted February 27, 2017 Share Posted February 27, 2017 I have a small issue with one of my mods, so whilst I'm awaiting a fix, I'd like to discourage users from using the 'row view'. (foundation skin) Either disable the 'row' view or i thought maybe just modify the icon for a few days and put a red X through it. Any ideas where these are? I can't seem to find them. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 27, 2017 Share Posted February 27, 2017 To do this comment out these blocks of code: https://github.com/cubecart/v6/blob/master/skins/foundation/templates/content.category.php#L70-L129 https://github.com/cubecart/v6/blob/master/skins/foundation/templates/content.category.php#L58-L61 The remove the "hide" class from this line: https://github.com/cubecart/v6/blob/master/skins/foundation/templates/content.category.php#L130 To comment out use Smarty comments: {* ... *} http://www.smarty.net/docs/en/language.basic.syntax.tpl#language.syntax.comments Quote Link to comment Share on other sites More sharing options...
keat Posted February 27, 2017 Author Share Posted February 27, 2017 I tried those edits, but then the cart just went blank. I suspect because my content.category.php isn't stock, editing out those line broke something else. Quote Link to comment Share on other sites More sharing options...
keat Posted February 27, 2017 Author Share Posted February 27, 2017 Rather than commenting the sections out with smarty tags, I removed them (made a backup 1st), and this seems to work. 1 Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 27, 2017 Share Posted February 27, 2017 I have found at times that commenting just the lines to change causes the crash. The trick is to find the beginning of that section and comment the whole section out. Then you can paste a new section with comments before and after, plus the actual edits in it. Quote Link to comment Share on other sites More sharing options...
sailing123 Posted April 26, 2017 Share Posted April 26, 2017 With commenting I had issues too so what I did the following instead and it seems to work well. 1. I removed: <dl class="sub-nav right" id="layout_toggle"> <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> </dl> 2. I changed <div class="row product_list_view"> to <div class="row product_list_view hide"> and <div class="product_grid_view hide"> to <div class="product_grid_view"> 3. But then you get one image per row on desktop so I changed <ul class="small-block-grid-1 product_list" data-equalizer> to <ul class="small-block-grid-1 medium-block-grid-3 large-block-grid-3 product_list" data-equalizer> to keep 3 images per row. and after testing on desktop and mobile, looking all good so far. S. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 26, 2017 Share Posted April 26, 2017 I can do this for you in the morning if you want. Quote Link to comment Share on other sites More sharing options...
sailing123 Posted April 26, 2017 Share Posted April 26, 2017 Thanks Al so does it mean it is best to comment rather than making my changes ? In need of an expert's opinion :-) 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.