Jump to content

obrázky v subcategories


delimarket

Recommended Posts

ahojte, viete niekto ako zrušiť zobrazovanie icon (obrázkov) subkategórie. Tie čo mám na obrázku vyznačené.

 

ak tam chces iba nazvy kategorii, musis v subore category.tpl vymazat

 

<!-- Category image -->
{if $category->id_image}
<div class="align_center">
<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" />
</div>
{/if}

Link to comment
Share on other sites

ďakujem...názvy kategórii by som dostal ak by som tie obrázky zmazal. Ja porebujem všetko vyhodiť a mť tam rovno produkty kategórie men, a ak to chce niekto sortovať tak si klikne na subkategoriu v strome na ľavej strane a bude mať napríklad tričká pánske.

Link to comment
Share on other sites

tak toho musis vyhodit viacej:

 

  <h1>
  {strip}
   {$category->name|escape:'htmlall':'UTF-8'}
   {$categoryNameComplement|escape:'htmlall':'UTF-8'}
   <span class="category-product-count">
 {include file="$tpl_dir./category-count.tpl"}
   </span>
  {/strip}
 </h1>
 {if $scenes}
  <!-- Scenes -->
  {include file="$tpl_dir./scenes.tpl" scenes=$scenes}
 {else}
  <!-- Category image -->
  {if $category->id_image}
  <div class="align_center">
   <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" />
  </div>
  {/if}
 {/if}
 {if $category->description}
  <div class="cat_desc">{$category->description}</div>
 {/if}
 {if isset($subcategories)}
 <!-- Subcategories -->
 <div id="subcategories">
  <h3>{l s='Subcategories'}</h3>
  <ul class="inline_list">
  {foreach from=$subcategories item=subcategory}
   <li>
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
  {if $subcategory.id_image}
   <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {else}
   <img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {/if}
 </a><br />
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>
   </li>
  {/foreach}
  </ul>
  <br class="clear"/>
 </div>
 {/if}

 

 

a potom zaradit vsetky produkty zo vsetkych podkategorii (Hoodies, jacket, pants,...) do aj kategorie Men

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