marion v Posted August 27, 2016 Share Posted August 27, 2016 (edited) Hello ! To hide view mode, I would like to follow arlys' tip in this topic. Before crashing all the site and taking a one way ticket, i would like to have your opinion if i do the following modification : In the product-sort.tpl, custom theme, presta 1.6.0.1 : Replace: {if isset($orderby) AND isset($orderway)}<div class="display hidden-xs pull-left"> <span class="display-title">{l s='View:'}</span> <div id="grid"><a rel="nofollow" href="#" title="{l s='Grid'}"><i class="fa fa-th-large"></i></a></div><div id="list"><a rel="nofollow" href="#" title="{l s='List'}"><i class="fa fa-th-list"></i></a></div></div>{* On 1.5 the var request is setted on the front controller. The next lines assure the retrocompatibility with some modules *}{if !isset($request)} <!-- Sort products --> {if isset($smarty.get.id_category) && $smarty.get.id_category} {assign var='request' value=$link->getPaginationLink('category', $category, false, true) . . . By: {if isset($orderby) AND isset($orderway)}{* <div class="display hidden-xs pull-left"> <span class="display-title">{l s='View:'}</span> <div id="grid"><a rel="nofollow" href="#" title="{l s='Grid'}"><i class="fa fa-th-large"></i></a></div><div id="list"><a rel="nofollow" href="#" title="{l s='List'}"><i class="fa fa-th-list"></i></a></div></div> *}{* On 1.5 the var request is setted on the front controller. The next lines assure the retrocompatibility with some modules *}{if !isset($request)} <!-- Sort products --> {if isset($smarty.get.id_category) && $smarty.get.id_category} {assign var='request' value=$link->getPaginationLink('category', $category, false, true) . . . Tks for your advice ! Marion Edited August 28, 2016 by marion v (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted August 28, 2016 Share Posted August 28, 2016 Works fine on my PrestaShop v1.6.1.6 test site when I comment out that div. Link to comment Share on other sites More sharing options...
marion v Posted August 28, 2016 Author Share Posted August 28, 2016 (edited) Tks for the test !! Marion Edit: worked fine on 1.6.0.1 Edited August 28, 2016 by marion v (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now