Jump to content

Editare numar de subcategorii in prestashop 1.6


Recommended Posts

Sunt mai multe variante, dar ca sa nu ai probleme la un eventual upgrade, poti sa modifici direct in themes/[tema ta]/category.tpl si chiar imediat in loop-ul pentru subcateogrii, dupa:

		<!-- Subcategories -->
		<div id="subcategories">
			<p class="subcategory-heading">{l s='Subcategories'}</p>
			<ul class="clearfix">
			{foreach from=$subcategories item=subcategory} 

adauga:

{if $subcategory@iteration > 3}{break}{/if} 
  • Like 1
Link to comment
Share on other sites

Eu am inteles initial ca vrei doar 3 subcategory (si nu neaparat 3 pe fiecare rand).

 

In cazul acesta, trebuie doar sa modifici in css marimea afisata a unei subcategorii.

In themes/[tema ta]/css/category.css cauta dupa #subcategories ul li { si modifica width: 145px; cu o valoare mai mare. 

 

Va fi nevoie sa modifici si dimensiunea imaginilor. Default subcategoriile folosesc medium_default pentru dimensiune.

  • Like 1
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...