THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Bonjour,
J'aimerais faire disparaitre la toolbar au-dessus des produits (ayant 40 produits en 4 catégories) que je trouve inutile dans mon cas ..
J'ai essayé en mettant un display:none; dans la div de toolbar.html et ça ne fonctionne pas.
Pas trouvé non plus dans le hooks ..

Uq8PDR3.jpg

Bon dimanche

Last edited by Dreamer (08-03-2015 15:22:41)


Site en construction http://boutique.boucheriediscount.fr

Offline


Le plus simple si tu n'as vraiment pas besoin de cette toolbar est de la supprimer au niveau du code HTML dans le fichier category.html.

                <div class="toolbar toolbar-top" role="toolbar">
                    <div class="sorter-container">
                    <span class="amount">{if ($amount > 1)}{intl l="%nb Items" nb="{$amount}"}{else}{intl l="%nb Item" nb="{$amount}"}{/if}</span>

                    <span class="limiter">
                        <label for="limit-top">{intl l="Show"}</label>
                        <select id="limit-top" name="limit">
                            <option value="{url path={navigate to="current"} limit="4"}" {if $limit==4}selected{/if}>4</option>
                            <option value="{url path={navigate to="current"} limit="8"}" {if $limit==8}selected{/if}>8</option>
                            <option value="{url path={navigate to="current"} limit="12"}" {if $limit==12}selected{/if}>12</option>
                            <option value="{url path={navigate to="current"} limit="50"}"{if $limit==50}selected{/if}>50</option>
                            <option value="{url path={navigate to="current"} limit="100000"}" {if $limit==100000}selected{/if}>{intl l="All"}</option>
                        </select>
                        <span class="per-page">{intl l="per page"}</span>
                    </span><!-- /.limiter -->

                    <span class="sort-by">
                        <label for="sortby-top">{intl l="Sort By"}</label>
                        <select id="sortby-top" name="sortby">
                            {*<option value="{url path="{category attr="url"}" order="manual"}">{intl l="Position"}</option>*}
                            <option value="{url path={navigate to="current"} limit=$limit order="alpha"}" {if $product_order=="alpha"}selected{/if}>{intl l="Name ascending"}</option>
                            <option value="{url path={navigate to="current"} limit=$limit order="alpha_reverse"}" {if $product_order=="alpha_reverse"}selected{/if}>{intl l="Name descending"}</option>
                            <option value="{url path={navigate to="current"} limit=$limit order="min_price"}" {if $product_order=="min_price"}selected{/if}>{intl l="Price ascending"}</option>
                            <option value="{url path={navigate to="current"} limit=$limit order="max_price"}" {if $product_order=="max_price"}selected{/if}>{intl l="Price descending"}</option>
                        </select>
                    </span><!-- /.sort-by -->

                    <span class="view-mode">
                        <span class="view-mode-label">{intl l="View as"}:</span>
                        <span class="view-mode-btn">
                            <a href="{url path={navigate to="current"} mode="grid"}" data-toggle="view" role="button" title="{intl l="Grid"}" rel="nofollow" class="btn btn-grid"><i class="icon-grid"></i></a>
                            <a href="{url path={navigate to="current"} mode="list"}" data-toggle="view" role="button" title="{intl l="List"}" rel="nofollow" class="btn btn-list"><i class="icon-list"></i></a>
                        </span>
                    </span><!-- /.view-mode -->

                </div><!-- /.sorter -->
            </div>

Offline


Ta solution est parfaite car elle fonctionne !!  2llgdnk.jpg
Un grand merci car ça commence a ressembler à ce que je veux !!
Bon dimanche


Site en construction http://boutique.boucheriediscount.fr