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)
-   -   Horizontal Categories menu (https://forum.x-cart.com/showthread.php?t=61365)

Powertrain 10-25-2011 06:45 AM

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.

isaels@i-artsupplies.co.u 10-25-2011 08:27 AM

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

Powertrain 10-25-2011 10:39 AM

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.

cflsystems 10-25-2011 07:19 PM

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

isaels@i-artsupplies.co.u 10-26-2011 07:55 AM

Re: Horizontal Categories menu
 
yes, that goes just a bit beond my capabilites i think!


All times are GMT -8. The time now is 04:35 AM.

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