starsec Posted November 16, 2010 Share Posted November 16, 2010 Hello,When a user clicks on a category, a subcategory page loads. I've found this to be redundant to users and would like to remove this page. Could anyone help out with how I can do this? Link to comment Share on other sites More sharing options...
shokinro Posted November 17, 2010 Share Posted November 17, 2010 Why not just delete or disable your categories or subcategories if they are empty?You can remove them permanently if you are not going to use them.You can disable them if you the category or subcategory is temporary empty but you want use them later.You can do this at your back office Catalog tab. Link to comment Share on other sites More sharing options...
starsec Posted November 17, 2010 Author Share Posted November 17, 2010 Thanks for trying..For those wondering how to do this, in your theme’s category.tpl remove this: {if isset($subcategories)} <!-- Subcategories --> {l s='Subcategories'} {foreach from=$subcategories item=subcategory} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image}getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" /> {else} {/if} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} {/foreach} {/if} Link to comment Share on other sites More sharing options...
Recommended Posts