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

4 Level SEO friendly Flyout Menus - 4.1.x compatible

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 01-01-2008, 07:32 PM
 
benz benz is offline
 

Senior Member
  
Join Date: Oct 2007
Posts: 111
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

DogByteMan (and anyone else following this thread!).
I'm on Xcart 4.1.8 and had the same problem, the issue when using nevets code is that it references the $allsubcategories variable, and this isn't in the default categories.php code for this version (or it wasn't in mine at any rate!).

To add it in follow the steps outlined in this post: http://forum.x-cart.com/showthread.php?p=178560#post178560

Once you've done that Using Nevet's menu.tpl code and Intel's javascript and css it all works very nicely in 4.1.8, I've checked it on the following browser/OS combinations with no problems:
FX2.0.0.11, Vista
FX2.0.0.11, Ubuntu
FX2.0.0.11, Mac Osx
IE7.0.6000, Vista
Safari 3.0.3, Vista
Safari 3.0.4, Mac OSx

__________________
Version 4.1.8
Version 4.1.11
Reply With Quote
  #12  
Old 01-02-2008, 03:41 AM
 
mltriebe mltriebe is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 137
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

Quote:
Originally Posted by benz
DogByteMan (and anyone else following this thread!).
I'm on Xcart 4.1.8 and had the same problem, the issue when using nevets code is that it references the $allsubcategories variable, and this isn't in the default categories.php code for this version (or it wasn't in mine at any rate!).

To add it in follow the steps outlined in this post: http://forum.x-cart.com/showthread.php?p=178560#post178560

Once you've done that Using Nevet's menu.tpl code and Intel's javascript and css it all works very nicely in 4.1.8, I've checked it on the following browser/OS combinations with no problems:
FX2.0.0.11, Vista
FX2.0.0.11, Ubuntu
FX2.0.0.11, Mac Osx
IE7.0.6000, Vista
Safari 3.0.3, Vista
Safari 3.0.4, Mac OSx



Thanks, that works great for me.

Mike
__________________
X-Cart 4.3.1
Buy Together Module, AlteredCart
CDSEO Pro
One Page Checkout, AlteredCart
Smart Search, AlteredCart
On Sale, AlteredCart
Reply With Quote
  #13  
Old 01-03-2008, 09:33 PM
 
ramdial ramdial is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 59
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

This worked for me too. Thanks for the update.
__________________
xcart4.3.2
CDSEO
Reply With Quote
  #14  
Old 01-12-2008, 12:41 PM
 
daz3 daz3 is offline
 

Newbie
  
Join Date: Dec 2003
Location: Here
Posts: 7
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

Hi Guys, I just tried this with 4.1.9 and it doesn't seem to work? Does anyone have a 4.1.9 version to share? Thanks!
__________________
v4.1.9
Reply With Quote
  #15  
Old 01-12-2008, 02:12 PM
 
mltriebe mltriebe is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 137
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

I have it working on 4.1.9 but on the product page the menu is under the image for the product. If any knows how to fix that I would be eternally grateful.

Be sure to add this code:
Code:
in incude/categorie.php Search for this in your code : # # Override subcategory_count for Admin area # if(!empty($subcategories) && ($current_area == 'A' || ($current_area == 'P' && $active_modules['Simple_Mode']))) { $product_counts = func_query_hash("SELECT categoryid, COUNT(*) FROM $sql_tbl[products_categories] WHERE categoryid IN ('".implode("','", array_keys($subcategories))."') GROUP BY categoryid", "categoryid", false, true); foreach($subcategories as $k => $v) { $subcategories[$k]['subcategory_count'] = func_query_first_cell("SELECT COUNT(subcat.categoryid) as subc FROM $sql_tbl[categories] USE INDEX (PRIMARY) LEFT JOIN $sql_tbl[categories] as subcat ON subcat.categoryid_path LIKE CONCAT($sql_tbl[categories].categoryid_path, '/%') WHERE $sql_tbl[categories].categoryid = '$k' GROUP BY $sql_tbl[categories].categoryid"); $subcategories[$k]['product_count_global'] = $subcategories[$k]['product_count']; $subcategories[$k]['product_count'] = isset($product_counts[$k]) ? intval($product_counts[$k]) : 0; } } then add this just below the line : //Subcategories in menu function func_getallsubcat() { $raj =func_get_categories_list("", true, "all"); $raj1=$raj['all_categories']; $ll=array(); foreach ($raj1 as $k=>$val) { if($val['parentid']!="0") { $ll[$val['parentid']][]=$val; } } return $ll; } $smarty->assign("allsubcategories", func_getallsubcat()); //Subcategorie in menu - end

Mike
__________________
X-Cart 4.3.1
Buy Together Module, AlteredCart
CDSEO Pro
One Page Checkout, AlteredCart
Smart Search, AlteredCart
On Sale, AlteredCart
Reply With Quote
  #16  
Old 01-12-2008, 03:56 PM
 
daz3 daz3 is offline
 

Newbie
  
Join Date: Dec 2003
Location: Here
Posts: 7
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

I'm actually using the Artistic Tune scheme, maybe that doesn't work with the codes. It just give me javascript errors. I really appreciate it if someone can help. Thanks!
__________________
v4.1.9
Reply With Quote
  #17  
Old 01-12-2008, 07:19 PM
 
benz benz is offline
 

Senior Member
  
Join Date: Oct 2007
Posts: 111
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

daz, do you have a URL we can see this on?

The only javascript in the menu is used to fix deficiencies in IE, and the conditional comment should hide that from other browsers - try testing with Firefox/Safari/Opera and see if you still get js errors. If you do then it could be something other than the menu causing the problem.

JS Problems could also arise if you have accidently created duplicate element ids on the page.
__________________
Version 4.1.8
Version 4.1.11
Reply With Quote
  #18  
Old 01-12-2008, 08:34 PM
 
daz3 daz3 is offline
 

Newbie
  
Join Date: Dec 2003
Location: Here
Posts: 7
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

Hi benz, thanks for the reply. Below is the url. I've reread the thread couple times already and I did everything I'm supposed to do. It just isn't working for me.

http://www.galaday.com
__________________
v4.1.9
Reply With Quote
  #19  
Old 01-13-2008, 03:28 AM
 
sales@webosusa.com sales@webosusa.com is offline
 

Senior Member
  
Join Date: Nov 2007
Location: Australia
Posts: 118
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

Can you put a picture to me so i can see how will looks like? Thans!
__________________
Pedro
digitalnotions.i2u.shop
shop.modestclassy.com.au4.1.9 X-Cart
X-Cart
Business 5.3.6.0
Multi-vendor 5.3.6.0


Reply With Quote
  #20  
Old 01-18-2008, 10:28 PM
 
mltriebe mltriebe is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 137
 

Default Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible

Anybody know how to fix this issue, I have it working great except for this.

Thanks, Mike

Edit: FIXED I had to add the z-index for the menu in the right place.
Attached Thumbnails
Click image for larger version

Name:	Untitled-1.jpg
Views:	288
Size:	59.5 KB
ID:	728  
__________________
X-Cart 4.3.1
Buy Together Module, AlteredCart
CDSEO Pro
One Page Checkout, AlteredCart
Smart Search, AlteredCart
On Sale, AlteredCart
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 01:10 PM.

   

 
X-Cart forums © 2001-2020