Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 v6.9.3 incmenu.php Sub-Menu drop-down issue
Author « Topic »  

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 07/01/2018 :  20:46:44  
Hi Andy and Vince,
After updating to v6.9.3 I encountered an issue with the Dynamic Category Menu; more specifically the Sub-Menu drop-down items.

(1) When the Horizontal Menu is loaded ...

<?php $menustyle="horizontalmenu1"; include ( $_SERVER["DOCUMENT_ROOT"] . "/vsadmin/inc/incmenu.php") ?>

The drop-down arrow to indicate Sub-Menu exists disappears; thus Sub-Menu items are not accessible.

(2) When loaded as a Vertical Menu in the sidebar ...

<?php displayectmenu('verticalmenu2'); ?>

Again, there is no down-arrow displayed beside the Top-Level Menu Category and Sub-Menu Items display as an indented list.

Google Chrome Developer Tools reports these errors ...

Uncaught TypeError: Cannot set property 'onmouseover' of null
at addsubsclass ((index):347)
at (index):356

Uncaught TypeError: Cannot set property 'onclick' of null
at addsubsclass ((index):345)
at (index):685


Those line numbers will have no significance on your test websites, but you can view my website itzap.com.au
There are Sub-categories under the "Webmasters" menu.

The Javascript snippet concerned appears to be ...

function addsubsclass(mennum,menid,menutype){
for(var ei in em[mennum]){
men=document.getElementById('ect'+mennum+'_'+ei);
if(menutype=='verticalmenu2')
men.onclick=function(){return(ectChCk(this))};
else{
men.onmouseover=function(){openpop(this,menutype=='verticalmenu3'?true:false)};
men.onmouseout=function(){closepop(this)};
}
if(typeof(emt[mennum][ei])=='boolean'){
if(men.className.indexOf('ectmenuhassub')==-1)men.className+=' ectmenuhassub'+(mennum+1);
}
}
}
em[0]={1:0,2:0,3:0,4:0,8:0,9:0,11:0,5:4,6:4};emt[0]=[];curmen[0]=0;
addsubsclass(0,0,'horizontalmenu1')


I can advise that, upon uploading the previous 6.9.2 version of incmenu.php, this issue does not occur.
Something small you can fix in a jiffy, I bet.

Gary

Andy
ECT Moderator

95440 Posts

Posted - 07/02/2018 :  00:16:11  
Hi Gary

I'll do some testing here and report back if you'd like to subscribe to this thread.

Andy

Please feel free to review / rate our software

Vince
Administrator

42874 Posts

Posted - 07/02/2018 :  03:29:11  
Hi Gary
Sorry about the problems but this is fixed now and the change is indeed in the incmenu.php script.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 07/02/2018 :  17:01:09  
Hi Vince,
Downloaded and applied the updater once again with modified incmenu.php file.
Unfortunately the Menu drop-down issue remains. Google Chrome Developer Tools report the same "Uncaught TypeError". I have ectcart.js file loaded, cleared browser cache, forced browser page reload, tried different browsers. The result is the same. Sub-menu drop-downs still do not work.

Gary

Edited by - ITZAP on 07/02/2018 17:02:00

Andy
ECT Moderator

95440 Posts

Posted - 07/02/2018 :  23:51:31  
Hi Gary

I did the testing on this yesterday and have just double checked again now and the menus I set up work fine in different browsers. I'll send you on a page to upload with just the menu code - is that ok?

Andy

Please feel free to review / rate our software

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 07/03/2018 :  00:13:34  
Yes sure Andy,
I use both a dynamic Horizontal menu and Vertical menu in hidden sidebar.

Gary

Andy
ECT Moderator

95440 Posts

Posted - 07/03/2018 :  00:22:22  
I sent on a sample file and just to check you are using these two

Horizontal

<?php $menustyle='horizontalmenu1'; ?>
<?php include "vsadmin/inc/incmenu.php"?>

Accordion

<?php displayectmenu('verticalmenu2'); ?>

Andy

Please feel free to review / rate our software

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 07/03/2018 :  22:36:18  
Thanks for the files Andy.
Yes, I do have the PHP code correct that loads the Horizontal and Vertical menus; see the first post above. Using the v6.9.3 HotFix release of incmenu.php, Google Chrome DevTools Console still reports Uncaught TypeErrors. I have sent you a message containing links to test pages which demonstrate that.

Gary

Andy
ECT Moderator

95440 Posts

Posted - 07/03/2018 :  23:47:41  
I'll have a look through and get back to you, thanks.

Andy

Please feel free to review / rate our software
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000