Jump to content

Как отключить показ картинки у категори когда в неё заходишь?


Recommended Posts

это когда заходишь в родительскую категорию, а там показываются картинки подкатегорий, а аж потом ниже сам товар?

 

если да, то тоже хочу знать как :)

Link to comment
Share on other sites

Привет!

Попробуйте это:

http://www.mamma9.com/how-to/ecommerce/how-do-i-disable-the-subcategories-graphic-image-prestashop

 

Comment out lines 33-36 of category.tpl in your theme directory:

 

<!–<a >getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:’htmlall’:'UTF-8′}” title=”{$subcategory.name|escape:’htmlall’:'UTF-8′}”> <img src=”{$img_cat_dir}{if $subcategory.id_image}{$subcategory.id_image}{else}default{/if}-medium.jpg” alt=”"> </a> <br /> –>

 

Then add a margin to the ul.inline_list li element in css/global.css in your theme directory to put space between the subcategories, for example:

 

ul.inline_list li { float:left; text-align:center; width : 100px; margin-left: auto; margin-right: auto; margin-top : 30px; margin-bottom : 20px}

 

You may consider the followings:

 

In the .tpl files, instead of using <!— and —> to comment some HTML code, it may be better to use the smarty comments : {* and *} The difference is that the HTML comments will remain in the page source code and can be seen.

 

Как в 1.6 (у стандартного шаблона) отключить вывод картинки категории когда в категорию заходишь.?

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