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

Need Help getting Subcategory edit to work

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-03-2005, 06:58 AM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

Default Need Help getting Subcategory edit to work

This is on Version 4.0.12

I am trying to change/update my subcategories so that it has a img and then text and then the list of subcategories below it. I am close

http://www.themenslab.com/lab/home.php?cat=2

I have somehow lost the products & featured products.
Also I can not seem to get the sub cat images to show.

Here is my subcategory.tpl

Code:
{* $Id: subcategories.tpl,v 1.29 2002/11/26 14:55:13 alfiya 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" } <table width="100%" border="0" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF"> <tr> <td>{if ($navigation_page eq "")||($navigation_page eq "1")}[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img]</td> <td><blockquote> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">{$current_category.description|regex_replace:"/[\n]/":" "} {/if} </font></p> </blockquote></td> </tr> </table> {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% } <table border=0 cellspacing=5 width=100%> {/if} {if $smarty.section.cat_num.index is div by 2} </tr><tr valign="top"> {/if} <td valign="top" width="70" align="center"> <a class="alt" href="home.php?cat={ $subcategories[cat_num].categoryid }"> [img]../icon.php?categoryid={$subcategories[cat_num].categoryid}[/img] </a> </td> <td align=left><a class="alt" href="home.php?cat={ $subcategories[cat_num].categoryid }"> {$subcategories[cat_num].category|escape}</a> { $categories[cat_num].description|escape } </td> { if %cat_num.last% } </tr></table> {/if} {/section} {if $tmp and $products ne "" } <br clear=_all>{*<hr size=1 noshade>*} {/if} {if $products eq "" and $tmp eq "0"} {$lng.txt_no_products_in_cat} {/if} {/capture} {include file="dialog.tpl" title=$current_category.category 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" }

If anyone could help me figure it out I would appreciate it.

Also I am looking to add a word image at top somehow showing which category it is.... need help on how the system would know which img to place based on category.

Thanks...hope this makes sense.

TIMM
Reply With Quote
  #2  
Old 08-03-2005, 07:10 AM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

Default

figured out the sm image for subcategory issue.

NOW more importantly I need to figure out where my products went. Don't show under categories....

ANY HELP IS APPRECIATED...

TIMM
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:26 PM.

   

 
X-Cart forums © 2001-2020