Jump to content
  • 0

usunięcie miniatury kategorii z wyswietlania na stronie kategorii


shaolin33

Question

szukam pliku ktory odpowiada za usuniecie z wyswietlania miniaturki kategorii i nie moge znalezc, moze ktos juz mial podobny problem ?

 

druga sprawa to nie chce aby wyswietlal mi sie komunikat:

W tej kategorii nie ma produktów.

 

też szukam gdzie to moge wywalić

 

pomocy :)

 

 

post-674441-0-16204700-1424090015_thumb.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Po prostu użyj komentarza w kodzie swojego szablonu następującą wartość :

W pliku : category.tpl dla Twojego szablonu masz następujący kod :


		<div id="subcategories">
			<h4 class="page-subheading">{l s='Subcategories'}</h4>			
			<div class="clearfix">
			{foreach from=$subcategories item=subcategory}
				<div class="col-md-3 col-xs-6 col-sp-12">
                	<div class="subcategories scene_cat">
                		<div class="image">
							<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img">
							{if $subcategory.id_image}
								<img class="replace-2x img-responsive" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'category_default')|escape:'html':'UTF-8'}" alt=""/>
							{else}
								<img class="replace-2x img-responsive" src="{$img_cat_dir}default-category_default.jpg" alt=""/>
							{/if}
						</a>
                   		</div>
						<h5 class="cat-name" ><a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5>
						{if $subcategory.description}
							<div class="cat-desc">{$subcategory.description}</div>
						{/if}
					</div>
				</div>
			{/foreach}
			</div>

		</div>

Linia od  77 do 102  użyj komentarza HTML dla tej części kodu i po sprawie.Pozbędziesz się elementów kategorii i podkategorii. Komentarze html <!-- Kod --> :)

Link to comment
Share on other sites

  • 0

1. W katalogu szablonu edutujesz category.tpl.

Usuń kod:

                    <!-- Category image -->
                    <div class="content_scene_cat_bg"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;"{/if}>
                        {if $category->description}
                            <div class="cat_desc">
                            <span class="category-name">
                                {strip}
                                    {$category->name|escape:'html':'UTF-8'}
                                    {if isset($categoryNameComplement)}
                                        {$categoryNameComplement|escape:'html':'UTF-8'}
                                    {/if}
                                {/strip}
                            </span>
                            {if Tools::strlen($category->description) > 350}
                                <div id="category_description_short" class="rte">{$description_short}</div>
                                <div id="category_description_full" class="unvisible rte">{$category->description}</div>
                                <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a>
                            {else}
                                <div class="rte">{$category->description}</div>
                            {/if}
                            </div>
                        {/if}
                     </div>

2. W katalogu szablonu edutujesz category-count.tpl.

Usuń kod:

{l s='There are no products in this category.'}
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...