Jump to content

[Solved] Sub Categories Show Twice - Default Prestashop Template


Recommended Posts

Hello I have installed Prestashop and used the template that came with it. I have a category called Jewelry and sub categories under that. When I click on Jewelry on the left panel, I rightly see a verticle list of sub categories under again in the left panel.

 

But for some reason, the sub categories also show up in the product list portion with icons. I do not want the sub categories to show up there.

 

In the attached image, the place marked OK means that it is fine for the sub cats to appear there. I have put red text in the portion where I do not want the sub categories to show up.

 

Can someone help.

Thanks

Jewel Presta

post-489950-0-99800000-1361805462_thumb.jpg

Link to comment
Share on other sites

Hi,

 

just remove subcategories section from your category.tpl.

{*
 {if isset($subcategories)}
 <!-- Subcategories -->
 <div id="subcategories">
  <h3>{l s='Subcategories'}</h3>
  <ul class="inline_list">
  {foreach from=$subcategories item=subcategory}
   <li class="clearfix">
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
  {if $subcategory.id_image}
   <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {else}
   <img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {/if}
 </a>
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>
 {if $subcategory.description}
  <p class="cat_desc">{$subcategory.description}</p>
 {/if}
   </li>
  {/foreach}
  </ul>
  <br class="clear"/>
 </div>
 {/if}
    *}

 

Regards

Link to comment
Share on other sites

Thanks Alexander I will try that. Also hope that it does not remove the sub category display from the portion on the left panel where it is marked 'OK' in blue.

 

Will update the post with relevant details after that.

 

Thanks

Prestajewel

 

you can be sure that the Alexander know-how will not remove the category list on the left :)

  • Like 1
Link to comment
Share on other sites

Ok Thanks, it worked like a dream.

 

Thanks

How do we flag this post as - completed or resolved etc?

 

Jewel Presta

 

i marked this topic as solved now, but if you want to change topic as solved you need to change the title of your topic :) just use the full post editor :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...