Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


bumbarash

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 

Bingo - works on the localhost.

 

Thank you.

 

Now if I only could get the images to display.

Link to comment
Share on other sites

Bingo - works on the localhost.

 

Thank you.

 

Now if I only could get the images to display.

 

your welcome, i tried to get that to work but seeing as i have a massive amount of free space on my server i simply mirrored the images folder over and have my ftp program set to sync the files everytime a backup is made to a seperate server and a local machine (ie twice a day).

 

all i need now is to find out where the name for the payment module is defined and also solve the problem whereby if the name of a product is too short the products list on the cart page doesnt fill right across and im laughing

Edited by chris2403
Link to comment
Share on other sites

Another thing that is happening.

 

I have the contribution SEO URLs installed.

 

When SEO urls is enabled, the link in iphone contribution redirects it to the "original" product eventhough the browser address still states localhost:8888/mobile/

 

When I disable SEO urls, all works like it should.

 

Anyway to make this contribution compatible with SEO URL's ?

Link to comment
Share on other sites

Another thing that is happening.

 

I have the contribution SEO URLs installed.

 

When SEO urls is enabled, the link in iphone contribution redirects it to the "original" product eventhough the browser address still states localhost:8888/mobile/

 

When I disable SEO urls, all works like it should.

 

Anyway to make this contribution compatible with SEO URL's ?

 

i think that may be a problem with the seo contribution not being compatible with links in seperate folders, you may get more joy asking over at the seo support thread.

Link to comment
Share on other sites

your welcome, i tried to get that to work but seeing as i have a massive amount of free space on my server i simply mirrored the images folder over and have my ftp program set to sync the files everytime a backup is made to a seperate server and a local machine (ie twice a day).

 

all i need now is to find out where the name for the payment module is defined and also solve the problem whereby if the name of a product is too short the products list on the cart page doesnt fill right across and im laughing

What about a symbolic link ?

from

catalog/mobile/images/

to

catalog/images ???

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