Jump to content



Latest News: (loading..)

* * * * * 2 votes

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


  • Please log in to reply
846 replies to this topic

#21   usvi4me

usvi4me
  • Members
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009 - 07:43 PM

View Postchris2403, on Feb 8 2009, 07:38 PM, said:

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.

#22   chris2403

chris2403
  • Members
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009 - 07:52 PM

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

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, 08 February 2009 - 07:55 PM.


#23   usvi4me

usvi4me
  • Members
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009 - 07:56 PM

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 ?

#24   chris2403

chris2403
  • Members
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009 - 07:58 PM

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

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.

#25   usvi4me

usvi4me
  • Members
  • 127 posts
  • Real Name:Letty

Posted 08 February 2009 - 08:07 PM

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

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

#26   chris2403

chris2403
  • Members
  • 51 posts
  • Real Name:chris jackson

Posted 08 February 2009 - 08:14 PM

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

What about a symbolic link ?
from
catalog/mobile/images/
to
catalog/images ???

for some reason that didnt work for me, never really used them so im not sure about the ins and outs of it.

#27   bumbarash

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

Posted 08 February 2009 - 09:34 PM

Hello everyone. Thanks for your interest in this contribution

Jon53 - What do you see if you go to http://www.yoursite.com/mobile/mobile.php? Is it still blank?

usvi4me - you don't have to copy images from catalog/images/ directory to the catalog/mobile/images/
I'm assuming copied mobile directory inside of catalog
In mobile/includes/configure.php I'm redefining image directory as following

define('DIR_WS_IMAGES', '../images/');

telling all mobile bages that image directory is one level up.
Let me know if your directory structure is different


usvi4me - there two new columns were introduced recently to order_status table (public_flag and downloads_flag). I think it was done in OSCv2.2. If you don't have those columns you could add them manually or just remove public_flag from SQL statement in account_history.php (line 23)
$history_query_raw = "select o.orders_id, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total, s.orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' order by orders_id DESC";


chris2403 - i forgot to include an image file to my contribution. This is why you see a question mark on the right of your category listing. I'll update a contibution to correct errors in couple of days.

chris2403 - which dd/mm/yy field you need to change?

#28   Jon53

Jon53
  • Members
  • 62 posts
  • Real Name:Jon

Posted 09 February 2009 - 02:25 AM

Quote

Jon53 - What do you see if you go to http://www.yoursite.com/mobile/mobile.php? Is it still blank?

Yes..Still blank white page.

#29   usvi4me

usvi4me
  • Members
  • 127 posts
  • Real Name:Letty

Posted 09 February 2009 - 12:06 PM

View Postbumbarash, on Feb 8 2009, 10:34 PM, said:

Hello everyone. Thanks for your interest in this contribution


usvi4me - you don't have to copy images from catalog/images/ directory to the catalog/mobile/images/
I'm assuming copied mobile directory inside of catalog
In mobile/includes/configure.php I'm redefining image directory as following

define('DIR_WS_IMAGES', '../images/');

telling all mobile bages that image directory is one level up.
Let me know if your directory structure is different
The directory structure is not different.

In catalog/mobile/includes/configure.php I have the following two lines related to images:

define('DIR_WS_IMAGES', '../images/');

define('DIR_MOBILE_IMAGES', 'images/');

There is only one reference to define('DIR_MOBILE_IMAGES', 'images/'); in the general.php file

I have tried everything but to no avail - all I get is ? for images

#30   chris2403

chris2403
  • Members
  • 51 posts
  • Real Name:chris jackson

Posted 09 February 2009 - 02:58 PM

View Postbumbarash, on Feb 8 2009, 09:34 PM, said:

chris2403 - i forgot to include an image file to my contribution. This is why you see a question mark on the right of your category listing. I'll update a contibution to correct errors in couple of days.

chris2403 - which dd/mm/yy field you need to change?

No problem, the formats i need to change are the order date in the account_history.php file and the account_history_info.php file, they are currently mm/dd/yyyy when in the uk they should be dd/mm/yyyy. also, could you tell me how i can change the name of a payment processor in your contribution, ive changed it on the main site but for some reason it stays the same on the mobile version.

cheers

chris

Edited by chris2403, 09 February 2009 - 02:58 PM.


#31   bumbarash

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

Posted 09 February 2009 - 03:19 PM

View Postusvi4me, on Feb 9 2009, 01:06 PM, said:

The directory structure is not different.

In catalog/mobile/includes/configure.php I have the following two lines related to images:

define('DIR_WS_IMAGES', '../images/');

define('DIR_MOBILE_IMAGES', 'images/');

There is only one reference to define('DIR_MOBILE_IMAGES', 'images/'); in the general.php file

I have tried everything but to no avail - all I get is ? for images


iOSC is using DIR_WS_IMAGES for images from your catalog.
Could you right-click on question mark , check properties and see full path to the image. Is it were your images are located? If not could you send me path to correct image and "lost" image

#32   bumbarash

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

Posted 09 February 2009 - 03:35 PM

View Postchris2403, on Feb 9 2009, 03:58 PM, said:

No problem, the formats i need to change are the order date in the account_history.php file and the account_history_info.php file, they are currently mm/dd/yyyy when in the uk they should be dd/mm/yyyy. also, could you tell me how i can change the name of a payment processor in your contribution, ive changed it on the main site but for some reason it stays the same on the mobile version.

What about timestams on your main website? Are they in the correct format?
There is a global setting in OSCv2.2 for all dates. You could find it in catalog/includes/languages/english.php
Change lines 21 - 23 to following

define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()

Payment processor name (for example "Cash on Delivery" at zaramir.com/osc/mobile) is the name of the payment module.
Language files for payment modules are located at
catalog\includes\languages\english\modules\payment\

#33   bumbarash

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

Posted 09 February 2009 - 03:39 PM

View PostJon53, on Feb 9 2009, 03:25 AM, said:

Yes..Still blank white page.

Jon, Could you send me a message with content of your catalog/includes/application_top.php file?
Also, what's your url?

#34   sultanos

sultanos
  • Members
  • 42 posts
  • Real Name:Javier
  • Gender:Male
  • Location:Spain

Posted 09 February 2009 - 03:50 PM

OK if you have a blank page maybe your server is config not to send the error messages, place this code at the top of your aplication top, and maybe you will get the error message.
  error_reporting(E_ALL & E_NOTICE );
ini_set('display_errors','1');

If you are not part of the solution, you are part of the problem

#35   sultanos

sultanos
  • Members
  • 42 posts
  • Real Name:Javier
  • Gender:Male
  • Location:Spain

Posted 09 February 2009 - 03:53 PM

I get no redirection at all, when i log in with my iphone.
besides i cannot see my images, i am using a "product thumbnail contrib" so i believe maybe  is that , i have mess arround with the configure files but still not able to see any pics.
If you are not part of the solution, you are part of the problem

#36   chris2403

chris2403
  • Members
  • 51 posts
  • Real Name:chris jackson

Posted 09 February 2009 - 03:59 PM

View Postbumbarash, on Feb 9 2009, 03:35 PM, said:

What about timestams on your main website? Are they in the correct format?
There is a global setting in OSCv2.2 for all dates. You could find it in catalog/includes/languages/english.php
Change lines 21 - 23 to following

define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()

Payment processor name (for example "Cash on Delivery" at zaramir.com/osc/mobile) is the name of the payment module.
Language files for payment modules are located at
catalog\includes\languages\english\modules\payment\

they are set correctly on my main website, ill have a look at the paymnt processor name now.

#37   pact-shop

pact-shop
  • Members
  • 8 posts
  • Real Name:Brian Marsch

Posted 09 February 2009 - 04:09 PM

i just tried it
5 minutes to install and modify.
It works pretty good.
The redirection works perfect... (turned off now but it works)

...but there was a errormessage about sts_template.

I am using STS

I copied the ststemplates folder to the /mobile/includes..
after that the error was gone. (the template does not work though)

Now here my questions:

1.How do we change the look of the iShop?

2.Why are my category images not being resized properly?

3.The categories show 3 products in a row. 2 would fit exactly on the page how come there are 3?


CLICK HERE TO SEE MY iOSC

#38   chris2403

chris2403
  • Members
  • 51 posts
  • Real Name:chris jackson

Posted 09 February 2009 - 04:49 PM

View Postbumbarash, on Feb 9 2009, 03:35 PM, said:

What about timestams on your main website? Are they in the correct format?
There is a global setting in OSCv2.2 for all dates. You could find it in catalog/includes/languages/english.php
Change lines 21 - 23 to following

define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()

Payment processor name (for example "Cash on Delivery" at zaramir.com/osc/mobile) is the name of the payment module.
Language files for payment modules are located at
catalog\includes\languages\english\modules\payment\

got these problems sorted, thanks

#39   bumbarash

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

Posted 09 February 2009 - 05:43 PM

If you use SEO URL, you could experience some problems.
For now, just turn SEO URL off for all mobile pages
Go to catalog/mobile/includes/configure.php

and add

define ('SEO_ENABLED', 'false');

#40   usvi4me

usvi4me
  • Members
  • 127 posts
  • Real Name:Letty

Posted 09 February 2009 - 06:03 PM

View Postbumbarash, on Feb 9 2009, 04:19 PM, said:

iOSC is using DIR_WS_IMAGES for images from your catalog.
Could you right-click on question mark , check properties and see full path to the image. Is it were your images are located? If not could you send me path to correct image and "lost" image

As Javier mentioned, I believe the following contributions causes the images not to display:
'On the Fly' Auto Thumbnailer using GD Library

here is what shows for the properties of the image:
mydomainname.com/mobile/product_thumb.php?img=../images/5-Star.jpg&w=75&h=80px

The home page shows:
www.mydomainname.com/product_thumb.php?img=images/5-Star.jpg&w=141&h=150

Hope this helps.