Mobile OSCommerce

Mobile OSCommerce is a fast, light-weight add-on for OSCommerce, that makes it easy to search, select and buy items from an existing OSCommerce shop with a mobile device. Installation is simple, upload 26 files and add file definitions to includes/filename.php. Designed to upload directly into an existing Installation of OSCommerce OSC to CSS v2. Expect some html and configuration adjustment. (Will also work with OSCommerce 2.2 and 2.3). It uses the existing checkout programming, and should work with most payment and shipping methods.

DEMO(live niora site)
or visit www.niora.com on your IPhone or other smart phone.

Download the files from the google code repository: download mobile oscommerce

Installing Mobile OSCommerce on OSCommerce 2.3 and OSCommerce 2.2RC2a:
To install Mobile OSCommerce on these versions you must replace includes/classes/boxes.php with the same file from OSC to CSSv2. (or paste the additional classes from that file to your includes/classes/boxes.php). You will also need to replace the submit buttons in OSCommerce 2.3, or add an image to the submit buttons.

To direct mobile devices users to the mobile site once installed on your website, you will need to paste in a snippet or two of code. Here’s how:
Smart Phone Detection for Mobile OSCommerce

First published Dec 31, 2010

Smartphone Detection for Mobile OSCommerce

Directing visitors who are using Smartphones such as IPhones or Androids to view mobile-enabled OSCommerce sites is easy. Simply go to www.handsetdetection.com or other similar sites and get a API script reference. Paste this script in the head of your normal sites index. Voila, anyone using a smart phone will be directed to your mobile OSCommerce site.

For a DEMO:, go to www.niora.com on your laptop or desktop computer. You’ll see the regular OSCommerce shopping cart. Now go to the same site, but using your smartphone. You’ll be at Niora’s mobile OSCommerce site.

Because the script is maintained externally, the script is always up-to-date (in theory), and covers all popular smart phones. If you would like to use your own code loaded locally on your website, you’ll need code for all the different phone types. www.hand-interactive.com is an example of a site that goes into detail on how to do this.

In the meantime, here is a javascript-free php snippet you can post at the top of includes/application_top.php of your normal site that will redirect all IPhone and IPad users to your mobile site.

<?php
$handsetdetection= '<script type="text/javascript" src=" '.(isset($_SERVER&#91;'HTTPS'&#93;) && (strtolower($_SERVER&#91;'HTTPS'&#93;) == 'on') ? 'https://' : 'http://') . 'api.handsetdetection.com/sites/js/12055.js"></script>';
echo $handsetdetection;
?>

(snippet courtesy of catswhocode)