Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

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


471 replies to this topic

#41 bumbarash

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

Posted 09 February 2009, 18:03

View Postpact-shop, on Feb 9 2009, 05:09 PM, said:

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

1. You could change some color, text size and borders playing with stylesheet
catalog\mobile\includes\mobile.css

2. Thanks for pointing thisout. I'll add this to list of fixes for the next release
For now please line 41 in your index.php and mobile.php to this

print tep_mobile_selection($path, array(tep_image(DIR_WS_IMAGES . $item['categories_image'], $item['categories_name'], 40), $item['categories_name']));

3. Change line 31 in your
catalog\mobile\includes\modules\products.php to

$img = tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], MOBILE_IMAGE_WIDTH, MOBILE_IMAGE_HEIGHT);
and line 14 in
catalog\mobile\includes\configure.php
to
define ('MOBILE_IMAGE_HEIGHT', '80px');
All this changes will be included in new release later this week

#42 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 09 February 2009, 18:04

View Postbumbarash, on Feb 9 2009, 06:43 PM, said:

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');

Works like a charm - thanks.

#43 bumbarash

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

Posted 09 February 2009, 19:25

View Postusvi4me, on Feb 9 2009, 07:03 PM, said:

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

If you use Auto Thumbnailer then you need to create new file
catalog\mobile\product_thumb.php

and add this line to it:
<?php
	require_once("../includes/configure.php");
	require_once("../product_thumb.php");
?>

Let me know if it help, I'll add it to the next release

#44 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 09 February 2009, 19:41

View Postbumbarash, on Feb 9 2009, 08:25 PM, said:

If you use Auto Thumbnailer then you need to create new file
catalog\mobile\product_thumb.php

and add this line to it:
<?php
	require_once("../includes/configure.php");
	require_once("../product_thumb.php");
?>

Let me know if it help, I'll add it to the next release

YES, the images are now displaying.

Thank you for this great contribution.

I have another request. I have the following contributions installed in the shop and am wondering if they are compatible with iOSC.

1) Product Extra Fields
2) Extra Images

Again, you've done a great job and thanks for being here to assist us.

#45 bumbarash

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

Posted 10 February 2009, 16:19

View Postusvi4me, on Feb 9 2009, 08:41 PM, said:

I have another request. I have the following contributions installed in the shop and am wondering if they are compatible with iOSC.
1) Product Extra Fields
2) Extra Images

Due OSCommerce design only modules (payment, shipping and order_total) are compatible,because they have a common interface.
All other contributions need to be manually added to iOSC Mobile.

#46 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 11 February 2009, 12:08

View Postbumbarash, on Feb 10 2009, 05:19 PM, said:

Due OSCommerce design only modules (payment, shipping and order_total) are compatible,because they have a common interface.
All other contributions need to be manually added to iOSC Mobile.

I've been able to add the Extra Fields Contribution - although still working on alignment challenges.

In your next release, can you capitalize the Search button in the top menu.

#47 bumbarash

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

Posted 11 February 2009, 22:34

New version is released

Changes in v1.1
Support for some other addons: SEO URL, Thumbnailer
Misspell for MOBILE_IMAGE_HEIGHT
New color schema
"PC Site" button
Layout error are corrected

#48 lightshine

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

Posted 12 February 2009, 05:31

View Postbumbarash, on Feb 12 2009, 06:34 AM, said:

New version is released

Changes in v1.1
Support for some other addons: SEO URL, Thumbnailer
Misspell for MOBILE_IMAGE_HEIGHT
New color schema
"PC Site" button
Layout error are corrected
The new version is great but if i change it to language button selection to chinese it would show garbage character for the some of the chinese words on the webpage. :)

#49 burt

  • Community Sponsor
  • 6,958 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 12 February 2009, 11:35

Andrey - just made a test order in your zaramir store on my iPhone. Went well.

Nice work!
The Dirty Little Secrets that no osCommerce template sellers want you to know...revealed...

Support is commercially available. The question is whether you value your business
highly enough to spend money on it.

For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/

#50 idefix-69

  • Community Member
  • 13 posts
  • Real Name:Tom

Posted 12 February 2009, 12:12

Hello,

I have downloaded the new file 1.1 and it works.

But now I have the following problem on the version 1.1:

>> when I click on the categories; i have a redirection directly to my main shop and the belonging category (full web version, not the mobile version!)

So I cannot see anylonger all products in the mobile version. So this makes no sense because no, I´m on the standard webshop.
I saw on your demo shop it´s working, you can navigate thru your categories and subcategories and you see your product in ioscommerce.


Any ideas and solutions for this problem? I think there must be a redirection problem. But where :-(

Thanks a lot

Edited by idefix-69, 12 February 2009, 12:16.


#51 bumbarash

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

Posted 12 February 2009, 20:01

View Postlightshine, on Feb 12 2009, 06:31 AM, said:

The new version is great but if i change it to language button selection to chinese it would show garbage character for the some of the chinese words on the webpage. :)

Currently I tested iOSC with English, German and Spanish.
For all other languages the content of the page should be the same as main catalog.
There are few new text strings need to be translated
Copy catalog/mobile/includes/languages/english.php to catalog/mobile/includes/languages/chinese.php
In chinese.php translate English text ('Store', 'Account' and etc.) to Chinese

If it solve the problem would send me the chinese.php translation file to be included in the next release
Thanks

#52 bumbarash

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

Posted 12 February 2009, 20:03

View Postburt, on Feb 12 2009, 12:35 PM, said:

Nice work!

Thanks :) Any piece of advise how to make it more compatible with gazillion other contributions?

#53 bumbarash

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

Posted 12 February 2009, 20:16

View Postidefix-69, on Feb 12 2009, 01:12 PM, said:

when I click on the categories; i have a redirection directly to my main shop and the belonging category (full web version, not the mobile version!)
Any ideas and solutions for this problem? I think there must be a redirection problem. But where :-(

It might be redirection problem or configuration problem.
If you are on http://www.yoursite.com/catalog/mobile/index.php and you move your cursor over "About" button what link do you see in the browser status bar?
Is it http://www.yoursite.com/catalog/mobile/about.php? If not then it's a configuration problem
if you type directly http://www.yoursite.com/catalog/mobile/about.php and end up somewhere else it's a redirect.
Could you send me your website url, so I could take a look?

#54 idefix-69

  • Community Member
  • 13 posts
  • Real Name:Tom

Posted 13 February 2009, 11:39

Hallo,

thanks for your answer and again thanks a lot for your help on e-mal some days ago!!

If I do so I´m coming up to http://www.yoursite.com/catalog/mobile/about.php

This is working. Only that there is nothing under it, no entries.

If I move pver the products, the link is the following: http://www.yoursite.com/catalog/mobile/productxycv123.html
When I cclick on it I´m comning to the product of the main website.

Maybe somthing wrong in the config.php - I don´t know

Also something important, I don´t know also: the shop is not under "http://www.yoursite.com/catalog/.....

I don´t have the file catalog, it´s directly under "http://www.yoursite.com/index.php and I placed the moblie in the main directory

like "http://www.yoursite.com/mobile/

Edited by idefix-69, 13 February 2009, 11:43.


#55 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 13 February 2009, 15:09

View Postidefix-69, on Feb 13 2009, 11:39 AM, said:

Hallo,

thanks for your answer and again thanks a lot for your help on e-mal some days ago!!

If I do so I´m coming up to http://www.yoursite.com/catalog/mobile/about.php

This is working. Only that there is nothing under it, no entries.

If I move pver the products, the link is the following: http://www.yoursite.com/catalog/mobile/productxycv123.html
When I cclick on it I´m comning to the product of the main website.

Maybe somthing wrong in the config.php - I don´t know

Also something important, I don´t know also: the shop is not under "http://www.yoursite.com/catalog/.....

I don´t have the file catalog, it´s directly under "http://www.yoursite.com/index.php and I placed the moblie in the main directory

like "http://www.yoursite.com/mobile/

Try making your changes in the mobile/includes/config.php to the following

<?php
define('DIR_MAIN_HTTP_CATALOG', '');

define('DIR_WS_HTTP_CATALOG', '/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_HEIGHT', '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');



define ('SEO_ENABLED', 'false');

?>

Take out the "osc" reference

#56 bugywugy

  • Community Member
  • 1 posts
  • Real Name:Marian

Posted 13 February 2009, 17:07

is there a way to determine if the visitor is using an iPhone or a computer and redirect him to the apropriate version mobile or standard?

thanks

#57 bumbarash

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

Posted 13 February 2009, 19:08

View Postbugywugy, on Feb 13 2009, 06:07 PM, said:

is there a way to determine if the visitor is using an iPhone or a computer and redirect him to the apropriate version mobile or standard?
Yes, add this at the end of your catalog/includes/application_top.php
   define(DIR_MOBILE_CLASSES , 'mobile/includes/classes/');
   require(DIR_MOBILE_CLASSES . 'mobile_redirect.php');
   $mobileRedirect = new mobileRedirect;


#58 idefix-69

  • Community Member
  • 13 posts
  • Real Name:Tom

Posted 13 February 2009, 19:56

I had this code before, nothing with osc. But I changed it to your reference like:
<?php
define('DIR_MAIN_HTTP_CATALOG', '');
define('DIR_WS_HTTP_CATALOG', '/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_HEIGHT', '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');
define ('SEO_ENABLED', 'false');
?>

And it´s still the same. I come directly to the main website when I click on one of the category names :blush:

Maybe something interesting, it worked better with the first version, there I had only the problem, wehn I had only a main catergory without a subcategory I was directly linked to the main website. It worked well when I had subcategories. Everything was seen perfectly.

So now nothing ois working, I have a direct relinking to the main shop.

Any ideas what is going on because I really like this contri!!

Thanks a lot

#59 usvi4me

  • Community Member
  • 127 posts
  • Real Name:Letty

Posted 13 February 2009, 20:17

View Postidefix-69, on Feb 13 2009, 07:56 PM, said:

define ('SEO_ENABLED', 'false');
?>

And it´s still the same. I come directly to the main website when I click on one of the category names :blush:

Maybe something interesting, it worked better with the first version, there I had only the problem, wehn I had only a main catergory without a subcategory I was directly linked to the main website. It worked well when I had subcategories. Everything was seen perfectly.

So now nothing ois working, I have a direct relinking to the main shop.

Any ideas what is going on because I really like this contri!!

Thanks a lot

I had the same kind of problem but it was fixed with the line define ('SEO_ENABLED', 'false');

Perhaps removing this line will help ????
Do you have SEO URL active

Just a thought.

I really like this contribution as well.

#60 idefix-69

  • Community Member
  • 13 posts
  • Real Name:Tom

Posted 13 February 2009, 21:02

So I tried it again.

First remove this line >> nothing changed, just the same redirect

Change it from false to true >> nothing changed, just the same redirect


Sorry :blush:

Any further ideas??? I really hope.