X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   4 Level SEO friendly Flyout Menus - 4.1.x compatible (https://forum.x-cart.com/showthread.php?t=32668)

benz 01-01-2008 07:32 PM

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


mltriebe 01-02-2008 03:41 AM

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

ramdial 01-03-2008 09:33 PM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
This worked for me too. Thanks for the update.

daz3 01-12-2008 12:41 PM

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! :)

mltriebe 01-12-2008 02:12 PM

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

daz3 01-12-2008 03:56 PM

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!

benz 01-12-2008 07:19 PM

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.

daz3 01-12-2008 08:34 PM

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

sales@webosusa.com 01-13-2008 03:28 AM

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!

mltriebe 01-18-2008 10:28 PM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
1 Attachment(s)
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.


All times are GMT -8. The time now is 09:47 PM.

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