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)
-   -   Lost my sub catgories (https://forum.x-cart.com/showthread.php?t=23825)

hudge 08-03-2006 09:44 PM

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}


balinor 08-04-2006 02:27 AM

restore the original subactegories.tpl

hudge 08-04-2006 10:17 AM

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?

hudge 08-04-2006 11:21 AM

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.

balinor 08-04-2006 11:25 AM

Don't know what to tell you...best to either open a ticket with 7dana or X-Cart to diagnose it for you.

Zaja 08-04-2006 03:48 PM

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? 8O

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

hudge 08-04-2006 04:11 PM

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.

Zaja 08-04-2006 04:27 PM

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.

hudge 08-04-2006 04:32 PM

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.


All times are GMT -8. The time now is 11:05 AM.

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