Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

iPhone Contribution


thesiege84

Recommended Posts

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!

Link to comment
Share on other sites

  • 1 month later...

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...

Link to comment
Share on other sites

  • 4 weeks later...

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!

Steve

I appreciate all the help that everyone on this site has given me!

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...