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

catagories help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-04-2007, 10:49 AM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default 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
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
  #2  
Old 06-04-2007, 12:35 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default 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
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 06-04-2007, 01:13 PM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default 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
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
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 02:52 PM.

   

 
X-Cart forums © 2001-2020