View Single Post
  #18  
Old 11-12-2012, 04:22 AM
  soldatov's Avatar 
soldatov soldatov is offline
Moderator
 

X-Cart team
  
Join Date: Apr 2011
Posts: 163
 

Default Re: X-Cart Mobile module released

Quote:
Originally Posted by rubyaryat
We have purchased this module but there doesn't seem to be a way to switch to the mobile version when viewing on a non-mobile platform for troubleshooting etc.
Anybody else figured out how to get the mobile rendering on a non-mobile platform for testing/development?
You can use the built-in User Agent switcher in Google Chrome:
1. open the Developer Tools (Ctrl+Shift+I on Windows/Linux, Command - Option - I on Mac OS X)
2. click the "settings" icon at the bottom right corner of the window
3. check "override user agent" and select one of the options (Internet Explorer 7/8/9, Firefox 4/7 for Windows/Mac, iPhone, iPad and Nexus S running Android 2.3). You can also select "other" and enter a custom user agent.


The Safari browser has the built-in tool for that too.
Run Safari, click on Edit -> Preference, then go to Advanced tab. Check the checkbox for Show Develop menu in menu bar option.

Exit from the Preference dialog window, a new "Develop" menu will show in the menu bar. Click on Develop, and then select User Agent in the pull down menu


Also there are a lot of addons for Mozilla Firefox for the changing User Agent. Here is the list:
https://addons.mozilla.org/en-US/firefox/search/?q=user+agent+switcher [^]


And finally, there is another way to always show the mobile version. Open the modules/Xcart_Mobile/config.php and comment the following lines: from 101 to 107 (it's a condition for the mobile enabling) and 148th (the closing brace).
Reply With Quote