Jump to content

(Solved) Hide view mode


marion v

Recommended Posts

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 by marion v (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...