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

Dropdown Categories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-09-2013, 02:27 AM
 
denisRGM denisRGM is offline
 

Newbie
  
Join Date: Jun 2011
Posts: 7
 

Default 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.
Reply With Quote
  #2  
Old 01-09-2013, 07:28 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 01-09-2013, 09:24 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 02-05-2013, 07:43 AM
 
denisgre denisgre is offline
 

Newbie
  
Join Date: Jan 2012
Posts: 8
 

Default 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.
__________________
v4.4.3
Site is http://www.mercersfurniture.co.uk
Reply With Quote
  #5  
Old 02-05-2013, 08:51 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
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 07:53 AM.

   

 
X-Cart forums © 2001-2020