X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Removal of Category/Subcategory list in main area (https://forum.x-cart.com/showthread.php?t=45483)

Donnay2 02-10-2009 07:20 PM

Removal of Category/Subcategory list in main area
 
I am having trouble understanding where to edit to remove the list of subcategories that appears in the main area when you click on a parent category. I would like to turn off any display of subcategories in the main area.

I have read the "getting started" thread. If it is in there, it is not clear

Any help would be appreciated

Thanks

balinor 02-11-2009 03:13 AM

Re: Removal of Category/Subcategory list in main area
 
Are you SURE you want to do that? Not only is that a search engine benefit, but it will be confusing to customers if they do click on a parent category. However, if you insist, it is in customer/main/subcategories.tpl

Holub 02-11-2009 04:33 AM

Re: Removal of Category/Subcategory list in main area
 
Yes, you should remove or comment out the block of code in skin1/customer/main/subcategories.tpl

Code:

{if $subcategories}
<table cellspacing="5" width="100%">
{foreach from=$subcategories item=subcat}
<tr>
{if $tmp and $first_subcat ne "Y"}
        <td valign="top" rowspan="{count value=$subcategories print="Y"}"><img src="{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/image.php?id={$cat}&amp;type=C{/if}" alt="" /></td>
{assign var="first_subcat" value="Y"}
{/if}
        <td class="SubcatTitle"><a href="home.php?cat={ $subcat.categoryid }"><font class="ItemsList">{ $subcat.category|escape }</font></a><br /></td>
        <td class="SubcatInfo">{if $config.Appearance.count_products eq "Y"}
{if $subcat.product_count}{ $subcat.product_count } {$lng.lbl_products}
{elseif $subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower}
{/if}
        {/if}</td>
</tr>
{/foreach}
</table>
{/if}



All times are GMT -8. The time now is 09:44 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.