Post by richtea » Tue Sep 01, 2015 12:48 am

Hi All,

I tried searching for a solution for this problem but haven't found anything at all anywhere.
If you try to log into any opencart 2.0.x.x admin area on an iPhone with safari, it appears you can't click the menu button to make the vertical menu slide out from the left. Nothing happens, I've tried it on opencarts demo site, same problem.

I am using an iPhone 4s with safari, but when i downloaded chrome it work fine.
I have also tried on an iPhone 6 with safari and get the same issue.

Does anybody have any bright ideas on how to fix this problem? It's like it just isn't recognizing the click event in the javascript.

Any help would be much appreciated!

Rich

Newbie

Posts

Joined
Wed Oct 15, 2014 5:35 pm

Post by richtea » Fri Sep 04, 2015 5:01 am

Nobody has any idea?

Newbie

Posts

Joined
Wed Oct 15, 2014 5:35 pm

Post by madeureka » Tue Sep 15, 2015 8:22 am

A temporary fix is to make the menu stay all the time open. instead of click trigger make it stay always open. is not a real fix but do the job....

Newbie

Posts

Joined
Wed Jul 27, 2011 3:47 pm

Post by richtea » Mon Sep 21, 2015 2:58 pm

That's not really an option. The menu being open all the time leaves the rest of the site unusable on a mobile device.
I can't believe nobody else has noticed this issue at all?

I may only on specfic devices who knows, but it's a pretty serious bug nontheless!

Newbie

Posts

Joined
Wed Oct 15, 2014 5:35 pm

Post by ghulamali2612 » Tue Sep 06, 2016 7:57 pm

Find this line in admin/view/javascript/common.js

Code: Select all

$('#button-menu').on('click', function() {
and replace this code with this

Code: Select all

var ua = navigator.userAgent,
event = (ua.match(/iPhone/i)) ? "touchstart" : "click";
$('#button-menu').on(event, function() {
I hope this help all who want to activate the admin menu on iphone/safari

Newbie

Posts

Joined
Thu Apr 16, 2015 4:34 pm
Who is online

Users browsing this forum: No registered users and 6 guests