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

Admin Menus

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-28-2011, 09:37 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Admin Menus

Is there anyway to edit the Admin top menu so it no longer uses the dopdown choices so you an use admin from an iPad?

Tried a couple of iPad browsers and seem to get the same problem but the home button does work due to no other menu option.

~Thanks
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #2  
Old 08-22-2011, 01:44 PM
 
HandG HandG is offline
 

Newbie
  
Join Date: Jul 2011
Posts: 1
 

Default Re: Admin Menus

I am also having this problem. I would appreciate some help.

Can we make the menu buttons to show after a mouse click instead of a mouse rollover? I feel like this would solve the problem.

Everything else works perfectly fine on the ipad, except the horizontal menu buttons in the admin area.
__________________
x cart pro 4.4.3
Reply With Quote
  #3  
Old 01-22-2012, 01:32 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: Admin Menus

Same issue ....I often check my site while travelling. Is their a fix for this.?
__________________
Version 4.7.7
Reply With Quote
  #4  
Old 01-25-2012, 02:57 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Admin Menus

Try the following solution:

1. alter the "skin/common_files/(admin/single/provider)/home.tpl" templates and insert this code right after the <body> tag:
Code:
<!-- iPad fix --> {literal} <script type="text/javascript"> $(document).ready(function() { // trigger the function when clicking on an assigned element $("#horizontal-menu li").click(function () { var menuDiv = $(this).children("#horizontal-menu li div"); if (menuDiv.is(":hidden")) { menuDiv.addClass("iPadJSDDMenu"); menuDiv.slideDown("fast"); } else { menuDiv.removeClass("iPadJSDDMenu"); menuDiv.hide(); } }); }); </script> {/literal}

2. alter the "skin/common_files/css/skin1_admin.css" file and replace this code fragment:
Code:
.horizontal-menu-li-hover-div, #horizontal-menu li:hover div { display: block; position: absolute; left: -1px; top: 21px; background: #fff; border: 1px #aaa solid; border-top: 0 none; min-width: 170px; }

with this one:
Code:
/*.horizontal-menu-li-hover-div, #horizontal-menu li:hover div { display: block; position: absolute; left: -1px; top: 21px; background: #fff; border: 1px #aaa solid; border-top: 0 none; min-width: 170px; }*/ .iPadJSDDMenu { display: block; position: absolute; left: -1px; top: 21px; background: #fff; border: 1px #aaa solid; border-top: 0 none; min-width: 170px; }

Thats all, after the modification is complete admin menu will be using click JS events instead of DHTML hover.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
PoC2 (01-25-2012)
  #5  
Old 01-25-2012, 03:23 AM
 
PoC2 PoC2 is offline
 

Advanced Member
  
Join Date: Nov 2011
Posts: 65
 

Default Re: Admin Menus

This modification works brilliantly.

Thank you.
__________________
X-Cart 4.4.4
X-Cart Mailchimp
X-Cart Mods Smart Template
X-Cart Mods Advanced Videos
X-Cart Mods Thumbnail Candy
Reply With Quote
  #6  
Old 01-25-2012, 01:35 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Admin Menus

I can use other hover drop-down menus on iPad. Maybe this should be considered a bug and fixed in a future version?
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #7  
Old 01-25-2012, 09:54 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Admin Menus

I have CSS-only based menu which works without any problems on iPad/iPhone so yes maybe XC default admin menu is just "broken"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 01-25-2012, 10:19 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Admin Menus

X-Cart default menu is based on CSS "hover" effect.

This is the style that is used by default:
---
.horizontal-menu-li-hover-div,
#horizontal-menu li:hover div
{
display: block;
position: absolute;
left: -1px;
top: 21px;
background: #fff;
border: 1px #aaa solid;
border-top: 0 none;
min-width: 170px;
}
---

I do not see any problems with it.

As far as I know, on certain iPhones and iPads 'hover' does not work, in contrast to JS "onclick", that works fine on these devices.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #9  
Old 08-04-2012, 07:38 PM
 
lissi lissi is offline
 

Member
  
Join Date: Oct 2007
Posts: 13
 

Default Re: Admin Menus

Quote:
Originally Posted by qualiteam
Try the following solution:

1. alter the "skin/common_files/(admin/single/provider)/home.tpl" templates and insert this code right after the <body> tag:

I only have a home.tpl file in the /single/ folder. There is no home.tpl in the /admin/ or /provider/ folder.

I tried the fix with adding it only to the home.tpl in the single folder and it didn't work. Help?
__________________
Version 4.4.3 (Just upgraded 6/17/2011, shop not yet live)
Sprout Soup
Reply With Quote
  #10  
Old 08-07-2012, 12:39 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Admin Menus

It depends on the X-Cart version you use PRO or GOLD.
In case of Gold only */single/* folder is there.

Try clearing the templates cache (clenup.php script).
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
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 08:57 AM.

   

 
X-Cart forums © 2001-2020