thesiege84 Posted December 1, 2008 Share Posted December 1, 2008 Hey everyone, I've just got an iPhone and was wondering if anyone has made a contribution yet for the iPhone. Not quite sure what contribution but i'm sure anything would be good. How about the admin section for your shop as an application? Does this already exist? Anyone thought of for consumer side have an app for repeat purchasing? (use our shop app and save an extra 5% jobbie) Thanks! Quote Link to comment Share on other sites More sharing options...
thesiege84 Posted December 2, 2008 Author Share Posted December 2, 2008 I would of thought that there would be a little more interest but i guess the technology isn't there yet? Quote Link to comment Share on other sites More sharing options...
chrish123 Posted January 2, 2009 Share Posted January 2, 2009 Hi, I am interested in trying to do this too, I wonder if something like the below would work? I dont have an iphone to test it, but try to do this in your index.php to test... Find: <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> Replace with: <?php if (stristr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) { ?> <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="copy-of-stylesheet-designed-for-iphone.css"> <script type="application/x-javascript"> var updateLayout = function() { if (window.innerWidth != currentWidth) { currentWidth = window.innerWidth; var orient = (currentWidth == 320) ? "profile" : "landscape"; document.body.setAttribute("orient", orient); window.scrollTo(0, 1); } }; iPhone.DomLoad(updateLayout); setInterval(updateLayout, 500); </script> <?php } else { ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <?php } ?> Theres a little info on this over here: http://www.evotech.net/blog/2007/07/web-de...for-the-iphone/ and there is an emulator here, http://eise.es40.net/ but you would need to change the useragent string above... Quote Link to comment Share on other sites More sharing options...
thesiege84 Posted January 25, 2009 Author Share Posted January 25, 2009 Hi, Thanks for responding and showing interest however in the meantime i am no longer running an oscommerce store so i find no need for it anymore. I wish anyone who wants to take this project up all the success. Thanks Quote Link to comment Share on other sites More sharing options...
chimol Posted January 27, 2009 Share Posted January 27, 2009 I'm interested, I just got the Iphone and think it would be a great app to add to the AppStore. Someone could charge $2.99 or so for it and I think it would be very useful. I'm already adding the google analytics app and this would be the icing on the cake! Quote Steve I appreciate all the help that everyone on this site has given me! Link to comment Share on other sites More sharing options...
bumbarash Posted February 4, 2009 Share Posted February 4, 2009 Please, take a look at my new contribution. This is mobile version of OSCommerce designed to fit on 320px screen of iPhone. There is the link to contribution iOSC Mobile v1.0 and to forum http://www.oscommerce.com/forums/index.php?showtopic=327785 Andrey Equalizer 1 Quote Link to comment Share on other sites More sharing options...
coolnerdinnyc Posted June 22, 2009 Share Posted June 22, 2009 Please, take a look at my new contribution.This is mobile version of OSCommerce designed to fit on 320px screen of iPhone. There is the link to contribution iOSC Mobile v1.0 and to forum http://www.oscommerce.com/forums/index.php?showtopic=327785 Andrey Hello. I just installed your wonderful contribution. Thank you so much for your hard work. I have questions. First, for some reason, the website does not redirect the iPhone users to the mobile directory. I did what the instruction says, but no results I wanted. Second, index.php file does not work correctly on my website. It does not display the categories. Mobile.php works correctly, so I had to change mobile.php to index.php. Unfortunately, "category" does not appear on the head. Lastly, about us does not appear. Here is my web address. http://www.yellowvenus.com/mobile Any suggestion? Thank you in advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.