Idaniel Posted December 28, 2016 Share Posted December 28, 2016 Goedenavond, Bij het default thema van Prestashop 1.6, krijg je onder de Sub categorieën een grid, en sorteer functie met alle producten, is het mogelijk om deze uit te zetten? Tevens wil ik de tekst Er zijn 790 producten weghalen, dit al geprobeerd met css en important maar dat pakt hij niet.http://racedrones.nl/3-alfa-romeoZie link voor wat ik bedoel.Alvast bedankt.. Link to comment Share on other sites More sharing options...
Adeko.nl Posted January 10, 2017 Share Posted January 10, 2017 Beste Idaniel, Je kunt dit doen door in de category.tpl (theme > default-bootstrap > category.tpl) regel 102 te verwijderen: <div class="sortPagiBar clearfix"> Of in de global.css (theme > default-bootstrap > css > global.css) de volgende regels toe te voegen: .sortPagiBar.clearfix { display: none; } Vergeet vervolgens niet de cache te legen mochten de aanpassingen niet zichtbaar zijn. Dit kun je doen bij geavanceerde instellingen > prestaties. Link to comment Share on other sites More sharing options...
Idaniel Posted January 11, 2017 Author Share Posted January 11, 2017 Beste Adeko, De sorteer functie is weg, bedankt! Echter staan alleen de producten er nog, hoe kan ik die weg krijgen? Producten grid, onder de subcategorieën bedoel ik. Met vriendelijke groet, Idaniel Link to comment Share on other sites More sharing options...
Adeko.nl Posted January 11, 2017 Share Posted January 11, 2017 (edited) Beste Idaniel, Dit kun je inderdaad doen door de producten niet toe te wijzen aan de oudercategorieën. Een andere oplossing is om een stukje code toe te voegen aan de category.tpl. Ergens onder aan het bestand heb je de code: {if $products} <div class="content_sortPagiBar clearfix"> <div class="top-pagination-content clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl"} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="./product-compare.tpl" paginationId='bottom'} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> {/if} Vervang die code voor: {if $subcategories == ''} {if $products} <div class="content_sortPagiBar clearfix"> <div class="top-pagination-content clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl"} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="./product-compare.tpl" paginationId='bottom'} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> {/if} {/if} Nu zouden er geen producten meer getoond moeten worden wanneer er subcategorieën aanwezig zijn. Edited January 11, 2017 by Adeko.nl (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