Jump to content

Sorteer functie onder de Subcategorieeën


Idaniel

Recommended Posts

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-romeo

Zie link voor wat ik bedoel.

Alvast bedankt..

 

 

Link to comment
Share on other sites

  • 2 weeks later...

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

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 by Adeko.nl (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...