Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

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


471 replies to this topic

#1 bumbarash

  • Community Member
  • 92 posts
  • Real Name:Andrey
  • Gender:Male
  • Location:USA

Posted 04 February 2009, 16:58

This is Release v1.0 of iOSC - mobile version of OSCommerce for iPhone.
iOSC Mobile v1.0

It will allow navigating through your website frontend easily using mobile devices.
All standard pages were redesigned to fit 320x420 iPhone and iPod Touch screens.
Based of standard version of OSC v2.2

See live example at
http://zaramir.com/osc/mobile


Feedback is greatly appreciated

Andrey

#2 homegrownglass

  • Community Member
  • 13 posts
  • Real Name:David

Posted 04 February 2009, 17:45

View Postbumbarash, on Feb 4 2009, 10:58 AM, said:

This is Release v1.0 of iOSC - mobile version of OSCommerce for iPhone.
iOSC Mobile v1.0

It will allow navigating through your website frontend easily using mobile devices.
All standard pages were redesigned to fit 320x420 iPhone and iPod Touch screens.
Based of standard version of OSC v2.2

See live example at
http://zaramir.com/osc/mobile


Feedback is greatly appreciated

Andrey

I haven't tried this yet but this is a excellent contribution. I am always looking at websites on my computer!

#3 lindsayanng

  • Community Member
  • 4,258 posts
  • Real Name:Lindsay
  • Gender:Female
  • Location:Milford, Connecticut U.S.A.

Posted 04 February 2009, 18:53

that can be very useful for certain industries.. awesome
A great place for newbies to start
Road Map to oscommerce File Structure
DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

Proud Memeber of the CODE BREAKERS CLUB!!

#4 lightshine

  • Community Member
  • 36 posts
  • Real Name:Lightshine
  • Location:Singapore

Posted 04 February 2009, 19:36

Dear Andrey,

After i have installed the mod stated above on osc v2.2RCa, i encountered the problem below:

500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
URL:http://www.abc.com/shop/mobile/

this is the <configure.php> file that on the server,

<?php
define('DIR_WS_HTTP_CATALOG', '/shop/mobile/');
define('DIR_WS_IMAGES', '../images/');
define('DIR_WS_INCLUDES', '../includes/');

define('DIR_MOBILE_IMAGES', 'images/');
define('DIR_MOBILE_INCLUDES', 'includes/');
define('DIR_MOBILE_MODULES', DIR_MOBILE_INCLUDES . 'modules/');
define('DIR_MOBILE_CLASSES', DIR_MOBILE_INCLUDES . 'classes/');
define('DIR_MOBILE_HEADERS', DIR_MOBILE_INCLUDES . 'headers/');
define('DIR_MOBILE_LANGUAGES', 'includes/languages/');

define ('MOBILE_IMAGE_WIDTH', '80px');
define ('MOBILE_IMAGE_HIGHT', '80px');

define ('FILENAME_MOBILE', 'mobile.php');
define ('FILENAME_PRODUCTS', 'products.php');
define ('FILENAME_ABOUT', 'about.php');
define ('FILENAME_SEARCH', 'search.php');
define ('FILENAME_LANGUAGES', 'languages.php');
?>

Is there any solution to resolved it?

Edited by lightshine, 04 February 2009, 19:40.


#5 homegrownglass

  • Community Member
  • 13 posts
  • Real Name:David

Posted 04 February 2009, 19:46

DOH! I meant I always look at websites on my PHONE lol

#6 bumbarash

  • Community Member
  • 92 posts
  • Real Name:Andrey
  • Gender:Male
  • Location:USA

Posted 04 February 2009, 21:36

Sounds like redirect configuration error.
Do you have any more details?
Do you use custom redirect and if so what is in your .htaccess file?
Could you access files directly?

Try
http://www.abc.com/shop/mobile/mobile.php
http://www.abc.com/shop/mobile/includes/mobile.css
can you see them?

#7 lightshine

  • Community Member
  • 36 posts
  • Real Name:Lightshine
  • Location:Singapore

Posted 05 February 2009, 02:57

View Postbumbarash, on Feb 5 2009, 05:36 AM, said:

Sounds like redirect configuration error.
Do you have any more details?
Do you use custom redirect and if so what is in your .htaccess file?
Could you access files directly?

Try
http://www.abc.com/shop/mobile/mobile.php
http://www.abc.com/shop/mobile/includes/mobile.css
can you see them?

It was due to the file permission setting, as I use the file manager in the osCommerce v2.2RCa to upload my file to the server and creating folder for it.
I have resolved the issue by setting back the file permission from '777' to '644' from my FTP client.

This contribution is a good ones, keep it up!

Btw the store link and the image layout of the webpage is set too exact to the border, maybe some modification would make it even better.

#8 Jon53

  • Community Member
  • 62 posts
  • Real Name:Jon

Posted 07 February 2009, 09:15

I installed iOSC Mobile v1.0 and all I get is a blank page.
Any ideas why?

#9 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009, 11:57

I installed this contribution on my localhost to see how this works.

I use featured listings. Those added to the featured listings display twice in the category pages.

Any assistance to correct this will be greatly appreciated.

Edited by usvi4me, 08 February 2009, 11:58.


#10 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009, 13:41

Another question:

The contribution does not have a sub-directory in the mobile directory called images.

I do not wish to copy images from the catalog/images/ directory to the catalog/mobile/images/ directory.

I played around with the configure.php file in the catalog/mobile directory but I can not seem to make this work.

Anyone ?

#11 chris2403

  • Community Member
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009, 17:03

Great Contribution, tried to do this myself but failled.

couple of points, when i view my site on the iphone, the product listings stretch the site so it is slightly wider than the browser and it kind of spoils the look, is there a way of correcting this or would it be possible to have the products listed vertically in a list.

secondly, when viewing on the iphone i get a stramge question mark icon on the right of the categories listing that i cant seem to shift.

apart from that a great contribution, many thanks, Chris

#12 chris2403

  • Community Member
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009, 18:27

also, is there any way of changing the date format from mm/dd/yyyy to dd/mm/yyyy

cheers

#13 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009, 18:45

After a customer signs on and wishes to view MY ORDERS a database error occurs:

MYSQL QUERY ERROR REPORT
---------------------------------------
1054 - Unknown column 's.public_flag' in 'where clause'

select count(*) as total from orders o, orders_total ot, orders_status s where o.customers_id = '77' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '1' and s.public_flag = '1'
---------------------------------------
Remote Address: 174.151.234.6
Referer : http://www.mydomainname.com/mobile/account.php
Requested : /mobile/account_history.php

Can anyone else check to see if they get this error please.

#14 chris2403

  • Community Member
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009, 18:45

i tried editing my post but it wouldnt let me do it, sorry for multiple posts.

Ive corrected the issue with the question mark (i just gave in and copied the images over) above but am still figuring out the date format and the layout issue, if it could be edited to show in a vertical list that would be brilliant.

#15 chris2403

  • Community Member
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009, 18:52

View Postusvi4me, on Feb 8 2009, 06:45 PM, said:

After a customer signs on and wishes to view MY ORDERS a database error occurs:

MYSQL QUERY ERROR REPORT
---------------------------------------
1054 - Unknown column 's.public_flag' in 'where clause'

select count(*) as total from orders o, orders_total ot, orders_status s where o.customers_id = '77' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '1' and s.public_flag = '1'
---------------------------------------
Remote Address: 174.151.234.6
Referer : http://www.mydomainname.com/mobile/account.php
Requested : /mobile/account_history.php

Can anyone else check to see if they get this error please.

i dont get any errors when viewing that part of the site

check for the field public_flag in the order_status table in phpmyadmin

if not, back up your database in phpmyadmin and run this in the query window

alter table orders_status add public_flag int DEFAULT '1';
alter table orders_status add downloads_flag int DEFAULT '0';

another thing to ask the contribution maker, where does the payment processor name come from for your contribution?

cheers, chris

Edited by chris2403, 08 February 2009, 19:02.


#16 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009, 19:26

Error in the mobile/includes/config.php

line 22 should read:

define ('MOBILE_IMAGE_HEIGHT', '80px');

instead of

define ('MOBILE_IMAGE_HIGHT', '80px');

ALSO:

in mobile/includes/modules/products.php
Should line 31 read:
$img = tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], MOBILE_IMAGE_WIDTH, MOBILE_IMAGE_HEIGHT);

instead of:
$img = tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

????

I still cannot display any images even though the browser source indicates the correct directories.

#17 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009, 19:33

View Postchris2403, on Feb 8 2009, 06:52 PM, said:

i dont get any errors when viewing that part of the site

check for the field public_flag in the order_status table in phpmyadmin

if not, back up your database in phpmyadmin and run this in the query window

alter table orders_status add public_flag int DEFAULT '1';
alter table orders_status add downloads_flag int DEFAULT '0';

another thing to ask the contribution maker, where does the payment processor name come from for your contribution?

cheers, chris
Hi Chris,

Thanks for your response. I checked in the order_status table and there is no field called public_flag

The fields are:
orders_status_id
language_id
order_status_name

Can I add this without creating any harm ??

Which contribution adds the public_flag to the order_status_table ? Do you know ?

#18 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009, 19:35

View Postusvi4me, on Feb 8 2009, 11:57 AM, said:

I installed this contribution on my localhost to see how this works.

I use featured listings. Those added to the featured listings display twice in the category pages.

Any assistance to correct this will be greatly appreciated.

Note:

Featured listings is NOT the reason why two links are displayed in the categories.
The image is not displayed correctly hence the second link.

#19 chris2403

  • Community Member
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009, 19:38

View Postusvi4me, on Feb 8 2009, 07:33 PM, said:

Hi Chris,

Thanks for your response. I checked in the order_status table and there is no field called public_flag

The fields are:
orders_status_id
language_id
order_status_name

Can I add this without creating any harm ??

Which contribution adds the public_flag to the order_status_table ? Do you know ?

hi, no problem,

im pretty sure it was something to do with an update to the core files but im not 100%, if you run the query i posted above it will add them for you and no harm will be done, although as always backup your database before you do anything.

#20 chris2403

  • Community Member
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009, 19:42

View Postusvi4me, on Feb 8 2009, 07:26 PM, said:

Error in the mobile/includes/config.php

line 22 should read:

define ('MOBILE_IMAGE_HEIGHT', '80px');

instead of

define ('MOBILE_IMAGE_HIGHT', '80px');

ALSO:

in mobile/includes/modules/products.php
Should line 31 read:
$img = tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], MOBILE_IMAGE_WIDTH, MOBILE_IMAGE_HEIGHT);

instead of:
$img = tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

????

I still cannot display any images even though the browser source indicates the correct directories.

the second change here is correct, it has solved my layout problem with the page width. thanks