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

Horizontal Categories menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-25-2011, 06:45 AM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default Horizontal Categories menu

How to create the horizontal categories menu?

I know how to style it with dropdown but what code it needs to display categories/subcategories dynamically?

Something like this:

PHP Code:
<ul>
<
liRoot Category </li>
      <
ul
           <
liSubcategory </li>
           <
liSubcategory </li>
           <
liSubcategory </li>
        </
ul>


<
liRoot Category2 </li>
      <
ul
           <
liSubcategory </li>
           <
liSubcategory </li>
           <
liSubcategory </li>
        </
ul>

<
ul/> 

Can I copy code from existing template somewhere in xcart?
Is there a topic somewhere on the forums that I missed? I searched but could not find anything for Gold 4.4.2

Thanks.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #2  
Old 10-25-2011, 08:27 AM
  isaels@i-artsupplies.co.u's Avatar 
isaels@i-artsupplies.co.u isaels@i-artsupplies.co.u is offline
 

Advanced Member
  
Join Date: May 2010
Posts: 67
 

Default Re: Horizontal Categories menu

Im trying out moving my flyout categories, that are displayed vertically in the left bar so that they are displayed horrizontally just under the speed bar. I have sorted the css so that the menu sits in the right place, so that the main part of the screen is full width, but am not sure how to get the categories to display horrizontally not vertically.

it sounds like your trying to do a similar thing.

I guess I should be changing something in skin1/customer/categories.tpl
__________________
Paul Wallace

X-Cart Gold 4.3.2
Php5.3.8
MySQL 5.1.56

Backorder/PreOrder
SEO All in one CDSEO
Wholesale Option Pricing
Gift Cert Recovery
Password Recovery
CompanyLogo Alt Tag
Smart Search - ALtered Cart
On Sale - Altered Cart
Sitemap
MM One page checkout
order page emailer

Remember Anomymous Carts
Website CM Speed Opitmisation

iartsupplies.co.uk
Reply With Quote
  #3  
Old 10-25-2011, 10:39 AM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default Re: Horizontal Categories menu

Yeah, I was trying to avoid using flyout menu as I already have the dropdown styles just with css, no JQuery but need the code to display root categories as main links and on hover to display that category subcategories in a list.

In your case you could create new tpl file (e.g. topmenu.tpl) copy flyout code to it and call it in your home or header file (depending where you want it to show). Of course you'll have to remove {if flyout enabled...} code so you can keep module disabled for sidebar menu. You might need to clone categories.tpl too for use on your new topmenu, not sure without looking at the files.
Something along those lines.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #4  
Old 10-25-2011, 07:19 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Horizontal Categories menu

Just use the fancy_subcategories.tpl to build the links and make it use your styles instead of the default XC
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 10-26-2011, 07:55 AM
  isaels@i-artsupplies.co.u's Avatar 
isaels@i-artsupplies.co.u isaels@i-artsupplies.co.u is offline
 

Advanced Member
  
Join Date: May 2010
Posts: 67
 

Default Re: Horizontal Categories menu

yes, that goes just a bit beond my capabilites i think!
__________________
Paul Wallace

X-Cart Gold 4.3.2
Php5.3.8
MySQL 5.1.56

Backorder/PreOrder
SEO All in one CDSEO
Wholesale Option Pricing
Gift Cert Recovery
Password Recovery
CompanyLogo Alt Tag
Smart Search - ALtered Cart
On Sale - Altered Cart
Sitemap
MM One page checkout
order page emailer

Remember Anomymous Carts
Website CM Speed Opitmisation

iartsupplies.co.uk
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:25 AM.

   

 
X-Cart forums © 2001-2020