This object is in archive! 
Upvote 2

Avoid confirming mobile interface

Archived Kasper Worm 10 years ago

It would be great if we could avoid the step where our users have to confirm that they wish to use the mobile interface, when they enter through a mobile browser.


It could maybe just be an option within the admin area, where admins could decide whether to add this confirmation or not.


Until that is a possibility, could you then specify where in the source code we could change it manually?


Thanks

Best Answer
photo

Now users won't need to select if they want to use mobile interface. It will be done by default if mobile interface option is switched on in the administraton-interface.

Also, users can select where they want to go to - Desktop or Mobile version on separate login page. This would be useful when you are using tablet, but not sure what interface will work best for you.

Replies (4)

photo
1

Follow this instruction:

  1. Open file \public\themes\default\assets\js\scripts.js
  2. Find line 33.
  3. Comment or remove the following code:

  1. if (1 === App.getParam('useMobile', 0)) {
  2. if (confirm(App.t('Use Mobile Interface'))) {
  3. location.href = App.baseUrl('/use-mobile-interface?redirect=' + encodeURIComponent(location.href));
  4. }
  5. }

photo
1

I would suggest implementing it in your custom theme that is based on default one, to not get it lost after system update.

photo
1

The mobile experience can be greatly improved in this area. With a sane mind I cannot come up with one single argument for asking if you want to use it or not. In our development we always go by the motto "less clicking, more action".


You should *repair* it and do like 99% of all other products:


1. Remove the useless question

2. Make mobile default on mobile

3. Make a button that allows you to switch between mobile and desktop

photo
1

Agree with that. Overall experience showed us that questions should ommitted. We'll do this in 3.1 for sure

photo
1

Now users won't need to select if they want to use mobile interface. It will be done by default if mobile interface option is switched on in the administraton-interface.

Also, users can select where they want to go to - Desktop or Mobile version on separate login page. This would be useful when you are using tablet, but not sure what interface will work best for you.

Replies have been locked on this page!