Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

cat & sub cat descriptions

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-12-2006, 09:05 AM
 
gargonzo gargonzo is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 171
 

Default cat & sub cat descriptions

folks..

i have a main cat with 4 sub cats. In the main cat, I've added a description of the cat.

Once i view this online, i see the main cat description but its shown 3 times.

MAIN CAT
>>> Description
Sub Cat
>>> SAME description
Sub Cat
>>> Same Description

How do i keep the description, but stop it from duplicating itself?

Anyone?

TIA
Garz

4.07 | php | linux
__________________
xcart ver 4.xx/linux/php
Reply With Quote
  #2  
Old 10-12-2006, 09:15 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: cat & sub cat descriptions

You must have made some sort of customization, as that doesn't happen by default. Have you installed any mods from the forum or otherwise?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-12-2006, 10:12 AM
 
gargonzo gargonzo is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 171
 

Default Re: cat & sub cat descriptions

balinor, its possible.. i cannot remember

Code:
{ include file="customer/main/navigation.tpl" } {if ($navigation_page eq "")||($navigation_page eq "1")}{/if} {assign var="tmp" value="0"} {section name=cat_num loop=$subcategories} {if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if} {/section} {if $subcategories} <TABLE width="100%" border="0" cellspacing="5"> {foreach name=fsub from=$subcategories item=subcat} {if (($smarty.foreach.fsub.iteration-1) % 2)==0} <TR> <TD colspan="2" align="left"> {$current_category.description|regex_replace:"/[\n]/":""}</TD> </TR> <TR> {/if} {* SAFETYNET DSEFU MOD *} {if $enable_seo_links == "Y"} <TD width="50%" align="left" nowrap><A href="{seo_link cat_name=$subcat.category cat_id=$subcat.categoryid}">{if $tmp}<IMG src="{if $subcat.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$subcat.categoryid}{/if}" align="center" border="0">{/if}<br> <b>{$subcat.category}</b></a><br></TD> {else} <TD width="50%" align="left" nowrap><A href="home.php?cat={ $subcat.categoryid }">{if $tmp}<IMG src="{if $subcat.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$subcat.categoryid}{/if}" align="center" border="0">{/if}<br> <b>{$subcat.category}</b></a><br></TD> {/if} {* END SAFETYNET DSEFU MOD *} {if (($smarty.foreach.fsub.iteration) % 2)==0 OR $fsub.last} </TR> {/if} {/foreach} </TABLE> {/if} {if $tmp and $products ne "" } <HR size="1" noshade> {/if} {if $products} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" class="DialogTitle">&nbsp;&nbsp;{$current_category.category}</td> </tr> </table> {include file="customer/main/products.tpl" products=$products} {/if} {if $products eq "" and $tmp eq "0"} {$lng.txt_no_products_in_man} {/if} {if $products eq ""} {if $f_products ne ""} <P> {include file="customer/main/featured.tpl"} {/if} {/if} { include file="customer/main/navigation.tpl" } <table width="100%" border="0"> <tr> <td bgcolor="d2d0ca">{ include file="location.tpl" }</td> </tr> </table>
__________________
xcart ver 4.xx/linux/php
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:51 PM.

   

 
X-Cart forums © 2001-2020