[Contribution] iOSC - mobile version of OSC on your iPhone
#1
Posted 04 February 2009, 16:58
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
Posted 04 February 2009, 17:45
bumbarash, on Feb 4 2009, 10:58 AM, said:
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
Posted 04 February 2009, 18:53
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
Posted 04 February 2009, 19:36
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
Posted 04 February 2009, 19:46
#6
Posted 04 February 2009, 21:36
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
Posted 05 February 2009, 02:57
bumbarash, on Feb 5 2009, 05:36 AM, said:
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
Posted 07 February 2009, 09:15
Any ideas why?
#9
Posted 08 February 2009, 11:57
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
Posted 08 February 2009, 13:41
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
Posted 08 February 2009, 17:03
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
Posted 08 February 2009, 18:27
cheers
#13
Posted 08 February 2009, 18:45
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
Posted 08 February 2009, 18:45
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
Posted 08 February 2009, 18:52
usvi4me, on Feb 8 2009, 06:45 PM, said:
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
Posted 08 February 2009, 19:26
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
Posted 08 February 2009, 19:33
chris2403, on Feb 8 2009, 06:52 PM, said:
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
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
Posted 08 February 2009, 19:35
usvi4me, on Feb 8 2009, 11:57 AM, said:
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
Posted 08 February 2009, 19:38
usvi4me, on Feb 8 2009, 07:33 PM, said:
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
Posted 08 February 2009, 19:42
usvi4me, on Feb 8 2009, 07:26 PM, said:
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














