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

denisRGM 01-09-2013 02:27 AM

Dropdown Categories
 
We are using v4.4.3 and have the Flyout module activated. This places a small triangle before the category name and when you click on this we get the menu dropdown with the main page unchanged. However, when you click on the name of the category (we call them Products) the main screen changes to a sub-screen. Are there any ways to make the name behave like the triangle. The site is at http://www.mercersfurniture.co.uk if you wish to see what I mean.

Best regards.

Denis.

totaltec 01-09-2013 07:28 AM

Re: Dropdown Categories
 
Thanks for providing a link! When I look at this page I see:
<a href="home.php?cat=737" class="arrow" onclick="javascript: return switchSubcatLayer(this);"></a>
For the arrow link, and:
<a href="home.php?cat=737" class="icon-link sub-link">Shop By Room</a>
For the text link.

These would need to be the same. But I assume you only want this behavior on the first level of categories, otherwise you could not navigate to the actual pages.

Accomplishing this might be tricky. The way the flyout menus work is by looping through some templates, we would need to change the template code to check that it is the first level and insert the link differently if so. Look at /common_files/modules/Flyout_Menus/Icons/fancy_subcategories.tpl

Another way to get the behavior you want is to change the type of flyout menu that you are using, look at General Settings -> Modules -> Flyout Menus and try changing the type to "Flyout Expanding" rather than Tree-like.

cflsystems 01-09-2013 09:24 AM

Re: Dropdown Categories
 
All you have to do is to make the name link the same as the arrow link in the template file, not so hard to do. Keep in mind though that by doing this you will lose the ability to go to the category page from the menu

denisgre 02-05-2013 07:43 AM

Re: Dropdown Categories
 
Quote:

Originally Posted by cflsystems
All you have to do is to make the name link the same as the arrow link in the template file, not so hard to do. Keep in mind though that by doing this you will lose the ability to go to the category page from the menu

Hi and apologies for the delay in getting back to you, things are so hectic at the moment.
Could you tell me where I can find the templates to be able to try this please?

Denis.

totaltec 02-05-2013 08:51 AM

Re: Dropdown Categories
 
Take a look at the xcart tutorials link in my sig. Watch the one on webmaster mode, and you should be able to find the right template.


All times are GMT -8. The time now is 10:56 PM.

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