Jump to content



Photo
* * * * * 3 votes

[Contribution] iOSC - mobile version of OSC on your iPhone


  • Please log in to reply
1362 replies to this topic

#261   bolsoncerrado

bolsoncerrado
  • Members
  • 7 posts
  • Real Name:Alex

Posted 31 August 2009 - 09:18

So, is this project dead already?

No1 will share a working version of it?

#262   Landho

Landho
  • Members
  • 23 posts
  • Real Name:Richard Bailey

Posted 08 September 2009 - 15:30

what a great contrib - but damn lots of weird behavior. As others have said - sometimes catalog pages load, other times they do not.

please don't let this contrib die, it has such great potential. LOL

#263   bumbarash

bumbarash
  • Members
  • 92 posts
  • Real Name:Andrey
  • Gender:Male
  • Location:USA

Posted 13 September 2009 - 14:06

Most of the time if site shows some weird behavior, it's due conflict with other contributions.
Please send me links to your site and we will try to solve those issues one by one.
Sometimes I'm not around for few days, so please be patient /wink.gif' class='bbc_emoticon' alt=';)' />

#264   Jon53

Jon53
  • Members
  • 62 posts
  • Real Name:Jon

Posted 13 September 2009 - 22:52

I seem to have everything working except when I add an item to the cart...it says your cart is empty.
Any ideas?
http://www.magnet4less.com

Edited by Jon53, 13 September 2009 - 22:53.


#265   Jon53

Jon53
  • Members
  • 62 posts
  • Real Name:Jon

Posted 21 September 2009 - 00:03

I seem to have everything working except when I add an item to the cart...it says your cart is empty.
Any ideas?
http://www.magnet4less.com


Anyone Here??

Edited by Jon53, 21 September 2009 - 00:04.


#266   bumbarash

bumbarash
  • Members
  • 92 posts
  • Real Name:Andrey
  • Gender:Male
  • Location:USA

Posted 23 September 2009 - 15:23

Anyone Here??


You have a custom combo box "product_qty", this box is not in mobile version. That might be a problem.
you should include product_qty to mobile_product_info.php as well

#267   davref

davref
  • Members
  • 3 posts
  • Real Name:David

Posted 25 September 2009 - 15:43

Thanks for the contribution, I'm having some trouble though. Many of the links on the mobile site lead to the PC site page instead of the mobile site page. Is it supposed to detect if you're on a mobile device and link accordingly? I seem to be linked to the PC site regardless of whether I'm on a PC or a mobile device. It seems others have experienced the same problem, did anyone get it fixed?

#268   bumbarash

bumbarash
  • Members
  • 92 posts
  • Real Name:Andrey
  • Gender:Male
  • Location:USA

Posted 27 September 2009 - 01:28

Yes. Every page should be redirected to corresponding mobile page for most mobile devices.

Automatic redirect for mobile browsers add this lines to the end of your
catalog/includes/ application_top.php
file

define(DIR_MOBILE_CLASSES , 'mobile/includes/classes/');
   require(DIR_MOBILE_CLASSES . 'mobile_redirect.php');
   $mobileRedirect = new mobileRedirect;





Thanks for the contribution, I'm having some trouble though. Many of the links on the mobile site lead to the PC site page instead of the mobile site page. Is it supposed to detect if you're on a mobile device and link accordingly? I seem to be linked to the PC site regardless of whether I'm on a PC or a mobile device. It seems others have experienced the same problem, did anyone get it fixed?



#269   Jon53

Jon53
  • Members
  • 62 posts
  • Real Name:Jon

Posted 28 September 2009 - 12:05

You have a custom combo box "product_qty", this box is not in mobile version. That might be a problem.
you should include product_qty to mobile_product_info.php as well


Okay...Items are now adding to cart...but...cannot checkout.
I click checkout button and nothing happens...I just stay on shopping cart page.
Any ideas?

#270   davref

davref
  • Members
  • 3 posts
  • Real Name:David

Posted 30 September 2009 - 12:16

Yes. Every page should be redirected to corresponding mobile page for most mobile devices.

Automatic redirect for mobile browsers add this lines to the end of your
catalog/includes/ application_top.php
file

define(DIR_MOBILE_CLASSES , 'mobile/includes/classes/');
   require(DIR_MOBILE_CLASSES . 'mobile_redirect.php');
   $mobileRedirect = new mobileRedirect;


That's my problem, even with the lines added to application_top.php, all links go to PC pages regardless of whether or not I'm on a mobile device. Any ideas?

#271   bumbarash

bumbarash
  • Members
  • 92 posts
  • Real Name:Andrey
  • Gender:Male
  • Location:USA

Posted 05 October 2009 - 18:05

That's my problem, even with the lines added to application_top.php, all links go to PC pages regardless of whether or not I'm on a mobile device. Any ideas?

Which mobile device you use? iPhone/iPod? If not , what is the user-agent signature for this device?

#272   bolsoncerrado

bolsoncerrado
  • Members
  • 7 posts
  • Real Name:Alex

Posted 06 October 2009 - 07:51

Which mobile device you use? iPhone/iPod? If not , what is the user-agent signature for this device?



Now that you mention this... i tried to start customizing the "mobile templates" a bit... and with my iphone i notice that the stylesheet used is NOT the iphone one but the blackberry/pda one...

In other words, with iphone i get 3 columns and i MUST put it horizontal way rather than vertical, plus graphics/code is followed for everything except iphone customizing...

am i missing any detection part? has apple updated the useragent id?

#273   davref

davref
  • Members
  • 3 posts
  • Real Name:David

Posted 12 October 2009 - 15:36

Which mobile device you use? iPhone/iPod? If not , what is the user-agent signature for this device?


I am using an iPhone.

#274   Jon53

Jon53
  • Members
  • 62 posts
  • Real Name:Jon

Posted 16 October 2009 - 01:19

On my friend's iphone...Fill out all the create account info and submit and it just reloads the create account page again instead of going to the shipping page.
Hope the kinks are worked out of this soon...As of now people can only view the catalog and cannot place an order

#275   Mike T

Mike T
  • Members
  • 25 posts
  • Real Name:Kicker Films
  • Gender:Male

Posted 02 November 2009 - 21:18

Nice work bumbarash!

Everything seems in order but

1. I cannot remove items from my cart.

2. When I enter billing information /mobile_checkout_payment.php just clears all fields & reloads with the message "This is currently the only payment method available to use on this order." - the default message from english/checkout_payment.php

www.kickerfilms.com

www.kickerfilms.com/mobile

Any thoughts? Thanks!

#276   andyblackam

andyblackam
  • Members
  • 2 posts
  • Real Name:andy Blackham

Posted 08 November 2009 - 23:22

I'm running OSC 2.2 RC2a on apache 2.0.52 with php 4.4.6 (with zend 1.30).

I have installed iOSC v2.0c and I'm getting the 404 error on mobile/mobile_index.php

Can anyone tell me how to fix this please?

I don't understand how it works because /mobile/index.php contains

<?php
header('Location: mobile_index.php');
?>

so it just redirects to a missing file???

Andy

#277   bruyndoncx

bruyndoncx

    osCommerce Teenager

  • Members
  • 3,261 posts
  • Real Name:Carine Bruyndoncx
  • Gender:Female
  • Location:Belgium/ Antwerp/ Turnhout/ Arendonk

Posted 10 November 2009 - 01:30

it is asif you type http://www.yoursite....obile_index.php in your browserbar
if you run your site from a subdirectory, you need to change it to '../mobile_index.php' to get to the correct place.
think that answers your question ... now mine:
At least that is what I have done, but then it still doesn't show the mobile pages. When I put the files in the top level directory on my site, it starts working as long as I have seo urls disabled ...

anyone done the extra work for seo urls ?
Don't just sit there - contribute to the responsive bootstrap community effort !
http://forums.oscomm...iew__getnewpost


Hava a nice day !
Carine Bruyndoncx


Seen anything good relevant on the net about responsive design for ecommerce ?
You might as well post it in my responsive liive shop review thread .

#278   bruyndoncx

bruyndoncx

    osCommerce Teenager

  • Members
  • 3,261 posts
  • Real Name:Carine Bruyndoncx
  • Gender:Female
  • Location:Belgium/ Antwerp/ Turnhout/ Arendonk

Posted 10 November 2009 - 02:25

in includes/classes/seo.class.php I have added an extra check to see if urls begin with mobile, if so, the seo url is not generated, but stock function is called.

These are now the first couple of lines:
function href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true){
		$this->start($this->timestamp);
		$this->performance['NUMBER_URLS_GENERATED']++;
		if ( !in_array($page, $this->attributes['SEO_PAGES']) || $this->attributes['SEO_ENABLED'] == 'false' 
 		|| 	(substr($page, 0, 6) == 'mobile') ) {
			return $this->stock_href_link($page, $parameters, $connection, $add_session_id);
		}

Secondly, for what it's worth, i also made the following changes so that called urls from the mobile pages are keeping on the mobile version and not switching to the PC version.

in mobile/includes/functions/general.php

1) renamed the tep_mobile_link function to tep_mobile_link1
2) renamed the tep_mobile_link2 function to tep_mobile_link
3) modified tep_mobile_link to prepend mobile to the page, when it is not yet present

first couple of lines with the actual results pasted below
<?php
  function tep_mobile_link1($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = false) {
	return tep_href_link($page, $parameters, $connection, $add_session_id,false);  	
  }

function tep_mobile_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = false) {
    global $request_type, $session_started, $SID;
  	$module = substr($page,0,-4);
  	
//  	$page = FILENAME_MOBILE;
//  	$parameters = 'module=' . $module . '&' . $parameters;
    if (substr($page, 0, 6) !== 'mobile' ) {
  	  $page = 'mobile_' . $page;
	}


please let me know if I misunderstood how it is supposed to function, but this does seem to work for me. Hope this helps ...

Carine
Don't just sit there - contribute to the responsive bootstrap community effort !
http://forums.oscomm...iew__getnewpost


Hava a nice day !
Carine Bruyndoncx


Seen anything good relevant on the net about responsive design for ecommerce ?
You might as well post it in my responsive liive shop review thread .

#279   bruyndoncx

bruyndoncx

    osCommerce Teenager

  • Members
  • 3,261 posts
  • Real Name:Carine Bruyndoncx
  • Gender:Female
  • Location:Belgium/ Antwerp/ Turnhout/ Arendonk

Posted 10 November 2009 - 03:06

if you choose to show the shopping cart upon addition to cart, the PC shopping cart shows, not the mobile version.

Not sure if this can be solved by correcting this in mobile/application_top, or if the real application_top.php needs to be enhanced to make the distinction ... that will be for another day, now it is time to sleep /smile.gif' class='bbc_emoticon' alt=':)' />
Don't just sit there - contribute to the responsive bootstrap community effort !
http://forums.oscomm...iew__getnewpost


Hava a nice day !
Carine Bruyndoncx


Seen anything good relevant on the net about responsive design for ecommerce ?
You might as well post it in my responsive liive shop review thread .

#280   bruyndoncx

bruyndoncx

    osCommerce Teenager

  • Members
  • 3,261 posts
  • Real Name:Carine Bruyndoncx
  • Gender:Female
  • Location:Belgium/ Antwerp/ Turnhout/ Arendonk

Posted 10 November 2009 - 03:07

if you choose to show the shopping cart upon addition to cart, the PC shopping cart shows, not the mobile version.

Not sure if this can be solved by correcting this in mobile/application_top, or if the real application_top.php needs to be enhanced to make the distinction ... that will be for another day, now it is time to sleep /smile.gif' class='bbc_emoticon' alt=':)' />
Don't just sit there - contribute to the responsive bootstrap community effort !
http://forums.oscomm...iew__getnewpost


Hava a nice day !
Carine Bruyndoncx


Seen anything good relevant on the net about responsive design for ecommerce ?
You might as well post it in my responsive liive shop review thread .