Mobile site not working

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Mobile site not working

Post by dmurphy4 » Tue Jul 09, 2013 3:52 pm

I'm waiting until after my new RC5 deployment before I work on the mobile site. But until then, I'm trying to plan for mobile development.

I switched everything to enable the mobile view but no dice. I still see the style.css in the header and no mobile.css. I remember the mobile was correctly changing over when we were on RC4.

So my question is - what triggers the mobile site after the mobile settings have been turned on? Device width?

Shrinking my browser window does not trigger the mobile site as I remember it did when we were on RC4.
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Mobile site not working

Post by jmestep » Wed Jul 10, 2013 4:17 am

Able looks at the UserAgent of the browser to detect whether the browser is mobile or not. Here are some browser UserAgents that match, from Able's source code.
private static Regex _mobileAgents1 = new Regex(@"android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino", RegexOptions.IgnoreCase | RegexOptions.Multiline);
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Re: Mobile site not working

Post by dmurphy4 » Wed Jul 10, 2013 7:28 am

Thanks for the clarification Judy. Does anyone know of a good emulator to test locally with? I can't use cloud-based emulators because the dev site can only be viewed within the network.
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Mobile site not working

Post by mazhar » Wed Jul 10, 2013 7:34 am

dmurphy4 wrote:Thanks for the clarification Judy. Does anyone know of a good emulator to test locally with? I can't use cloud-based emulators because the dev site can only be viewed within the network.
You can give Opera Mobile Emulator 12.0 Windows a try.
http://www.filewatcher.com/m/Opera_Mobi ... 256-0.html

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Mobile site not working

Post by Katie » Wed Jul 10, 2013 7:50 am

I have used this mobile emulator for testing. It seem to work good.

http://www.opera.com/developer/mobile-emulator
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Mobile site not working

Post by Katie » Wed Jul 10, 2013 7:51 am

Forgot to refresh my browser...looks like Mazhar just posted the same info before me. :)
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Re: Mobile site not working

Post by dmurphy4 » Wed Jul 10, 2013 7:54 am

Downloaded the Opera Mobile Emulator. Seems to work great. Thanks!
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Re: Mobile site not working

Post by dmurphy4 » Wed Jul 10, 2013 8:38 am

Okay - I found the User Agent Switcher plugin for firefox
https://addons.mozilla.org/en-us/firefo ... -switcher/

This is way faster than the Opera Mobile Emulator and I can also use firebug.

It basically tricks the website into thinking the browser is a certain user agent. So it's not a true emulator but definitely makes my job a lot easier.
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

Post Reply