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

Lost my sub catgories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-03-2006, 09:44 PM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default Lost my sub catgories

http://www.hookupwireless.com/home.php?cat=127

I can see any of the info.
<a class="alt" href="home.php?cat=">
[img]icon.php?categoryid=[/img]
</a>

This seems completely wrong, here is my code from skin1/customer/main/subcategories.tpl

Code:
{if $tmp and $first_subcat ne "Y"} <td valign="top" rowspan="{count value=$subcategories print="Y"}">[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/image.php?id={$cat}&amp;type=C{/if}[/img]</td> {assign var="first_subcat" value="Y"} {/if} <td class="SubcatTitle"><font class="ItemsList">{ $subcat.category|escape }</font> </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}
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #2  
Old 08-04-2006, 02:27 AM
 
balinor balinor is offline
 

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

Default

restore the original subactegories.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-04-2006, 10:17 AM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default

Yeah I did this the code I pasted was from my file. Which is completely different. Could I have done something in the admin to do this?
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #4  
Old 08-04-2006, 11:21 AM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default

I renamed my skin folder to backup and installed the my skin from 7dana that worked b4 and I still get error. Which makes me think it is in admin. Please help. It has been a while since I have used this product.
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #5  
Old 08-04-2006, 11:25 AM
 
balinor balinor is offline
 

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

Default

Don't know what to tell you...best to either open a ticket with 7dana or X-Cart to diagnose it for you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 08-04-2006, 03:48 PM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Lost my sub catgories

Code:
{if $tmp and $first_subcat ne "Y"} <td valign="top" rowspan="{count value=$subcategories print="Y"}">[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/image.php?id={$cat}&amp;type=C{/if}[/img]</td> {assign var="first_subcat" value="Y"} {/if} <td class="SubcatTitle"><font class="ItemsList">{ $subcat.category|escape }</font> </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}

But where is the rest of file?

Just restore the original subactegories.tpl, from X-cart package and clean templates_c folder.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #7  
Old 08-04-2006, 04:11 PM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default

here is the full file. I did a restore to the default template and still have issues. I put back my theme for clients need. What is this template_c folder. Is there a temp folder i need to clean.
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #8  
Old 08-04-2006, 04:27 PM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Quote:
Originally Posted by hudge
here is the full file
Hmm...open X-cart 4.1.x package, extract and copy subactegories.tpl file to skin1/customer/main. Go to var/templates_c directory and delete all files inside and refresh browser(ctrl+f5).
Or... send me ftp info to support@7dana.com and I will check where is the problem.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #9  
Old 08-04-2006, 04:32 PM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default

It was the template_c folder. Once I cleaned that out it solved it. Wow, what a pain, why was this so hard and why does it cache the template?

Is this because I set files to be in filesystem and not in DB?

If so what do you recommend. It seemed odd to keep in sql, too many request on server, but if I should leave them on it I will.

My goal was to make columns for sub cat in v4. Is this too much to ask. thanks again for the help.
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
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 12:07 PM.

   

 
X-Cart forums © 2001-2020