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)
-   -   Delete standard subcatagory display (https://forum.x-cart.com/showthread.php?t=3872)

jeeya 08-04-2003 09:28 AM

Delete standard subcatagory display
 
Hi,
I have ordered tabs for navigation and it's done and x-cart developement service has not deleted standard subcatagory display in xcart. I don't need it since it's in tabs all ready, I tried many things but it's not getting cleared and does not show anything after it.

Here is my customer/main/subcatagories.tpl
-------------------------------------------------------------------------------------

{* $Id: subcategories.tpl,v 1.32 2003/04/24 09:50:33 svowl Exp $ *}
{ include file="location.tpl" }
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}



{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}



{ include file="customer/main/navigation.tpl" }
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace: "/[\n]/":"
"}

{/if}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}
{section name=cat_num loop=$subcategories}
{ if %cat_num.first% }
{if $tmp} [img]../icon.php?categoryid={$cat}[/img] {/if}
<table border=0 cellspacing=5>
{/if}
<tr><td align=left nowrap width=95%>
<font class="ItemsList">{ $subcategories[cat_num].category_name|escape }</font>

</td>
<td align=right nowrap><font class=Text>
{if $config.Appearance.count_products eq "Y"}
{if $subcategories[cat_num].product_count}
{ $subcategories[cat_num].product_count } {$lng.lbl_products}
{elseif $subcategories[cat_num].subcategory_count}
{ $subcategories[cat_num].subcategory_count } {$lng.lbl_categories|lower}
{/if}
{/if}
</font></td>
</tr>
{ if %cat_num.last% }
</table>
{/if}
{/section}
{if $tmp and $products ne "" }
<br clear=_all><hr size=1 noshade>
{/if}
{include file="customer/main/products.tpl" products=$products}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_cat}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category_name|regex_replac e:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}



{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }


{include file="customer/main/new_products.tpl"}
-------------------------------------------------------------------------------------


and see if I can get a code that does not display standard x-cart subcatagories on top.

Thanks

funkydunk 08-04-2003 09:40 AM

change to:

Code:

{* $Id: subcategories.tpl,v 1.32 2003/04/24 09:50:33 svowl Exp $ *}
{ include file="location.tpl" }
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}


 
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}


 
{ include file="customer/main/navigation.tpl" }
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":"
"}

{/if}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}
{if $tmp and $products ne "" }
<br clear=_all><hr size=1 noshade>
{/if}
{include file="customer/main/products.tpl" products=$products}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_cat}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category_name|regex_replace:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}


 
{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }

 
{include file="customer/main/new_products.tpl"}


jeeya 08-04-2003 10:19 AM

.
 
Thanks funkydunk but how can I take of that dialog box, it's showing blank dialog box.

funkydunk 08-04-2003 10:25 AM

The dialog box is marked by {capture}{/capture} remove them and it will go. :)

not forgetting to also remove the include file=fialog bit aswell


All times are GMT -8. The time now is 06:45 AM.

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