Redirect your clients to a mobile booking page
If you have set up the SimplyBook.me system on you own site as a widget, iFrame or a button you may be wondering about what happens if your website visitors visit your site on their mobile phones with a small screen. They will unfortunately just see your normal site which is not not optimized for mobile phones, and they might therefore have a hard time to make an appointment. As SimplyBook.me automatically offers you a mobile version of your booking system, you can easily serve your clients with a the mobile booking page if you prefer. You just need to install the following javascript code on the same page as where you have your SimplyBook.me widget and your users will get automatically redirect to the mobile booking page, when the visit the normal booking page on your site.
This is the code:
<script> var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } };function RedirectSmartphone(url){ if (url && url.length > 0 && isMobile.any()) window.location = url; } RedirectSmartphone(“http://YOURCOMPANYLOGINNAME.simplybook.me”); |
REMARK that you MUST replace YOURCOMPANYLOGINNAME with the companyname that you use to log in to your site at SimplyBook.me. Also remember to put it between the <head> somewhere here </head>tags.
If you are using a booking site provided by SimplyBook.me your users are automatically redirected correctly to the mobile booking site.
評論
9 commentsL
How is this utilized with your plugin on WordPress? I am not figuring that out. Any guidance would be greatly appreciated. Thank you.
Vinicius
Hi, I use the app in wix site. How can i add the book system to my mobile wix site? Thanks
admin
Hi, see here: http://blog.simplybook.me/add-appointments-to-wix/
elliott
@admin: How does this work with your WP plugin? I couldn’t get it to work either.
admin
You need to get wp plugin that allows inserts into head section such as this one: http://wordpress.org/plugins/add-to-header/ Sometimes, the parenthesis also does not copy correctly, please rewrite them by pressing SHIFT – 2 over the ones in the script shown above.
Simon
I have a normal and a mobile site with wix. Unfortunately in the mobile version I don’t get the “flexible” design to chose the start time in the smallest timesteps (every 15 min). There is only the “modern” design with the beginning time to choose (every 3 hours- length of the event). Is there a way to choose the design in the url? I embeded the url like that as an iframe: http://YOURCOMPANYLOGINNAME.simplybook.me
admin
Please send us links to your site.
AB
for all that ask the question about the WP plugin, the plugin setting have a checkbox to tick to redirect to profile page on mobile. I am just wondering how customer goes back to my website once they complete a booking online on my simply book profile for mobile
admin
The Go back home plugin should solve this issue.