Removing Sub-Category Links

Version 4.2.2 - I’ve added a side menu so now don’t need the sub-categories being listed in the header of each category. I thought this was something that could turned off and on but seems not or I can’t find where :-)

Hi there



just open a newfile in design/themes/your_skin/templates/addons/my_changes/hooks/categories/view.override.tpl



and add this inside


```php


{if $category_data.description || $runtime.customization_mode.live_editor}
{$category_data.description nofilter}

{/if}
{if $smarty.request.advanced_filter}
{include file="views/products/components/product_filters_advanced_form.tpl" separate_form=true}
{/if}
{if $products}
{assign var="layouts" value=""|fn_get_products_views:false:0}
{if $category_data.product_columns}
{assign var="product_columns" value=$category_data.product_columns}
{else}
{assign var="product_columns" value=$settings.Appearance.columns_in_products_list}
{/if}
{if $layouts.$selected_layout.template}
{include file="`$layouts.$selected_layout.template`" columns=$product_columns}
{/if}
{elseif !$subcategories || $show_no_products_block}

{__("text_no_products")}


{else}

{/if}

{capture name="mainbox_title"}{$category_data.category}{/capture}
```

clean your cache (admin.php?cc&ctpl) and refresh your category page.


Fotis

Not having a lot of luck tonight, that didn't work just white paged it.

PLease check in your Addons page if My Changes Addon is enabled (by default isntall is disabled)



Fotis

It's on, if it wasn't on the changes would be ignored wouldn't they ? anyway it is on. Perhaps I've got a white space in the file, anyway I'll take another look in the morning thanks for help.

Can't understand why this don't work.