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

Horizontal and Vertical Flyout Category Menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 09-27-2005, 11:48 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Thanks Phil! Talk about making it easy to add some flyouts... worked great on one clients site and am working the CSS to make it perfect.

Thanks for your generousity,

Mike
__________________
4.1.9
Reply With Quote
  #12  
Old 09-27-2005, 01:23 PM
 
garry garry is offline
 

Senior Member
  
Join Date: Oct 2003
Location: Wolverhampton UK
Posts: 102
 

Default

Thank you, tried it and it works great, will fully implement when I have edited the css.
Great mod
__________________
Garry


http://www.natralife.co.uk


X-Cart Gold version 4.5.4
PHP 5.3.18
MySQL client 5.0.96
Reply With Quote
  #13  
Old 09-27-2005, 01:27 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

If anyone can get additional sub-categories to fly-out further, please add the code modification here.

This mod takes about 30 seconds to implement as is. Thanks again.

- Mike
__________________
4.1.9
Reply With Quote
  #14  
Old 09-27-2005, 06:14 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Default

Hi Xcart Experts,

Can some please post a snippet of code for the head.tpl

skin1/customer/home.tpl just before the </head> tag.
<LINK rel="stylesheet" href="{$SkinDir}/flyouts/vert.css">
<SCRIPT language=JavaScript1.3 src="{$SkinDir}/flyouts/menu.js"></SCRIPT>

Here is what I have for the above, could someone please tell me if this is correct?

</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
<LINK rel="stylesheet" href="{$SkinDir}/flyouts/vert.css">
<SCRIPT language=JavaScript1.3 src="{$SkinDir}/flyouts/menu.js"></SCRIPT>
</HEAD>


Please post snippet of where to place this code below for flyouts to appear for the categories menus area.

{include file="flyouts/vert.tpl"}



Thanks a bunch! Its been one of those days!
__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
Reply With Quote
  #15  
Old 09-27-2005, 06:24 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

There is a readme file with the zip...

- Mike
__________________
4.1.9
Reply With Quote
  #16  
Old 09-28-2005, 09:14 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

Hi shipmerchant, your head.tpl code is correct. Where you put the menu is up to you. If you want it as shown in the screenshot, locate skin1/customer/home.tpl and replace

Code:
{ include file="customer/categories.tpl" }

with

Code:
{include file="flyouts/vert.tpl"}
__________________
xcartmods.co.uk
Reply With Quote
  #17  
Old 09-28-2005, 09:22 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

Incidentally, if anyone has solved the reason why it shows a broken sub-menu for categories without subcategories, please post the code.

This is the code I thought would work.

Code:
{if $subcategories} Show the DIV {else} Don't {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #18  
Old 09-28-2005, 01:50 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Default

HI PhilJ,

Thanks for your help, thats exactly what I was looking for in my request, clear direction from a someone who has some positive feedback! This is what exactly what the Xcart forums needs, people with answers.
Thats what I call help, thanks again.
__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
Reply With Quote
  #19  
Old 09-30-2005, 05:41 PM
 
vivienne vivienne is offline
 

Senior Member
  
Join Date: May 2004
Location: Brisbane, Australia
Posts: 121
 

Default Note on limitations

This is cool but I misunderstood the limitations, it is not that it will only display one level of subcat - it will not work at all if there are more levels.

(correct me if I am wrong)

Vivienne
__________________
X-Cart 4.18
www.naturalvetcompany.com
www.wkyp.com.au
Reply With Quote
  #20  
Old 09-30-2005, 05:59 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Yes, Phil's mod shows root categories and one level of sub-categories. It does not show anything deeper in the menu. This may be OK, as it is lean and you can select further in the main template.

Showing further cats would result in a similarity between this and the fancy cats mod. But, I would love to see a solution to having at least one additional subcats. level....

- Mike
__________________
4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 08:37 PM.

   

 
X-Cart forums © 2001-2020