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)
-   -   catagories help (https://forum.x-cart.com/showthread.php?t=31644)

hrothbeorht 06-04-2007 10:49 AM

catagories help
 
Hi all,

I'm trying to have the categories run from a different set of css styles. So I duplicated all the VertMenu styles and changed them to VertMenu2. I created a new menu.tpl (menu2.tpl) and linked to it in the categories.tpl.
PHP Code:

{ include file="menu2.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding


It worked so far as that on the home page it has it's own styles.
PROBLEM: when I click on one of the category links it brings me to the correct page, but the categories menu is gone all together.

Looking at the problem page: home.tpl
Code:

{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{include file="customer/categories.tpl" }

I think because I modified the .categories.tpl page something is not passing here.
I commented out all the if's and I can see the catagories box, but the links are gone.. hmm ?

---- bit later - still no luck & no reply -----

Im thinking this was not the best aproach.
Perhaps if I have an "if" in the main.tpl - I could have two sets of what is in the main.tpl, one normal and one with the modified style names.
not sure how to do that..



-hroth

chamberinternet 06-04-2007 12:35 PM

Re: catagories help
 
Within the backend of x-Cart, goto General Settings and ensure the option "If ticked, the categories list always shows root categories" is checked.

Regards

Shafiq :sK

hrothbeorht 06-04-2007 01:13 PM

Re: catagories help
 
Turns out it works after all!! Silly me overlooked the "If ticked, the categories list always shows root categories"
(I thought that it would show the subcategories)

thanks chamberinternet :)

-hroth


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

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