Home Uncategorized Redirect your clients to a mobile booking page
Uncategorized

Redirect your clients to a mobile booking page

admin
1 2 月, 2013
Eye icon 1100
Comment icon 9

Allow your clients to easily book appointments when they visit your site on their mobile phones

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”);
</script>

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.

We would like your opinion on What To Do Next :)
Arrow icon上一篇
Simply the best booking system in the world
下一篇Arrow icon