Jump to content



Photo
* * * * * 3 votes

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


  • Please log in to reply
1411 replies to this topic

#1401 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 542 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 20 January 2015 - 07:54

Okay, got these sorted out it seems and now i've got another issue.

http://whoolie.com/m...ctmohktrnq66ds1

when I go to a category and actually pull up an item there is no information shown, do I need to make modifications to my database to get this part to work?   I haven't run the db setup php file yet but didn't see that it was required and would rather not modify my database unless its required!

@whoolieshop, yes sure it's required.


Edited by raiwa, 20 January 2015 - 07:56.


#1402 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 542 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 20 January 2015 - 13:50

@whoolieshop, yes sure it's required.

To clear this a little bit up:

- the database modifications for mobile will add a configuration group and configuration sttings for mobile. They will not interfere with your existing store configuration and setup.

- However , as always before modifying the database, you should do a backup of your database before applying any modifications.

 

regards

Rainer


Edited by raiwa, 20 January 2015 - 13:51.


#1403   whoolieshop

whoolieshop
  • Members
  • 10 posts
  • Real Name:Shane Martin

Posted 20 January 2015 - 14:57

@raiwa  Thanks, yes that changed things a lot and the store seems to have picked up the theme..

 

New question, I am able to create a new account via mobile but not login via mobile.

the buttons, text fields etc all show up under create account but they do not when you click account or sign in.

The only options visible on sign in are the classic view button and the main navigation.

 

http://whoolie.com/mobile/login.php

 

 

Also some product images are not showing up when on product_info.php, all images seem to appear when

For Example:

http://whoolie.com/m...?products_id=43   <-- No photo

http://whoolie.com/m...?products_id=80  <-- Works

 

All three of these are in the same category.

http://whoolie.com/m...?products_id=96  <- Works

http://whoolie.com/m...products_id=101 <- No Photo

http://whoolie.com/m...products_id=104 <- Works 

 

No HTML is used for the product photos in the catalog, all products have at least two photos, one photo being common through most of them.

 

All photos show up as thumbnails in products.php properly.  Occasionally ill get a spinning wait icon in the center of the site which does not seem to go away unless I reload the page then select the product again.   Once I reload and select the product it pulls up the product info page, these seem to almost never load the product photo...   Is this a resize failure?



#1404 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 542 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 20 January 2015 - 17:01

Hello @whoolieshop,

 

It seems you installed the wrong mobile version. On mobile you used the files for OsC 2.3.4 with jquery1.11 and colorbox :

<script src="ext/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="http://whoolie.com/ext/photoset-grid/jquery.photoset-grid.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://whoolie.com/ext/colorbox/colorbox.css" />
<script type="text/javascript" src="http://whoolie.com/ext/colorbox/jquery.colorbox-min.js"></script>

Your main store seems to be an older 2.3 version which uses jquery 1.8 and fancybox image box:

<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.22.css" />
<script type="text/javascript" src="ext/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.22.min.js"></script>

<script type="text/javascript">
// fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484
if ( $.attrFn ) { $.attrFn.text = true; }
</script>


<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>

That explains both problems:

The mobile login page uses the content modules included in OsC 2.3.4. If your main store is not 2.3.4 it doesn't use content modules.

The mobile 2.3.4 image box needs the correspondent version present in the main store. If your main version is older, you need the colorbox scripts to be added to mobile and another mobile header with the correct path to them.

 

Please use the mobile files and installation instructions for your exact main store version.

 

regards

Rainer


Edited by raiwa, 20 January 2015 - 17:04.


#1405   whoolieshop

whoolieshop
  • Members
  • 10 posts
  • Real Name:Shane Martin

Posted 20 January 2015 - 19:01

@raiwa you are a wizard.   Thanks so much for helping me get this sorted out.

I think I have one final question.

 

I use auth . net for payment processing, is there something that needs to be updated in the payment module to send the user to the correct referrer/return url for the mobile site?  I don't see a place to set that under the admin panel, but like several of these problems perhaps I just missed something!

 

I am currently getting the following error:

(14) The referrer, relay response or receipt link URL is invalid.

 

I have logged into authorize.net and added the following urls as valid response/return urls.

 

http://whoolie.com/m...out_process.php     http://whoolie.com/m...out_success.php             http://www.whoolie.c...out_process.php     http://www.whoolie.c...out_success.php

 



#1406 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 542 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 20 January 2015 - 19:27

 

@raiwa you are a wizard.   Thanks so much for helping me get this sorted out.

I think I have one final question.

 

I use auth . net for payment processing, is there something that needs to be updated in the payment module to send the user to the correct referrer/return url for the mobile site?  I don't see a place to set that under the admin panel, but like several of these problems perhaps I just missed something!

 

I am currently getting the following error:

(14) The referrer, relay response or receipt link URL is invalid.

 

I have logged into authorize.net and added the following urls as valid response/return urls.

 

http://whoolie.com/m...out_process.php     http://whoolie.com/m...out_success.php             http://www.whoolie.c...out_process.php     http://www.whoolie.c...out_success.php

 

@whoolieshop, which exact module and version do you use?



#1407   whoolieshop

whoolieshop
  • Members
  • 10 posts
  • Real Name:Shane Martin

Posted 20 January 2015 - 21:23

@raiwa

 

Authorize.net Server Integration Method (SIM)

 Version: 2.0

 API Version: 3.1

 

The desktop side is working fine and accepting payments, the mobile site gives the error 14



#1408 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 542 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 21 January 2015 - 08:21

@raiwa

Authorize.net Server Integration Method (SIM)
Version: 2.0
API Version: 3.1

The desktop side is working fine and accepting payments, the mobile site gives the error 14

Hello @whoolieshop,

I do not use that payment module myself , do not have an account and no possibility to research it.

So I can only guess by coding:

1. In the payment module: catalog/includes/modules/payment/authorizenet_cc_sim.php, line 108 and 130, the "x_relay_url" and "x_cancel_url" is defined with the tep_href_link function, this means it should be correct defined for mobile url.
'x_relay_url' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false),
'x_cancel_url' => tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'),
Make sure you did the modification of that function in: catalog/includes/functions/html_output.php. Installation instructions point 4.

2. Is there a response/return url added in your authorizenet account for the main store?
If yes, the correct mobile URL would be the same, just adding mobile/ to the URL.
If there is no URL defined there for the main store, you shouldn't need to define one neither for mobile.

For the URLs you added:
They are incorrect (old mobile version, not in use any more):
http://www.whoolie.c...out_success.php
http://www.whoolie.c...out_process.php
It should be:
http://www.whoolie.c...out_success.php
http://www.whoolie.c...out_process.php
or maybe only:
http://www.whoolie.com/mobile/

See also:
https://support.auth...content&id=A601

regards
Rainer

Edited by raiwa, 21 January 2015 - 08:33.


#1409   whoolieshop

whoolieshop
  • Members
  • 10 posts
  • Real Name:Shane Martin

Posted 22 January 2015 - 16:27

@raiwa  

 

The problem seemed to be that I used the old versions on my authorize.net allowed url's page.

adding

http://whoolie.com/m...out_success.php

http://whoolie.com/m...out_process.php

 

seems to have resolved the error.

 

http://www.whoolie.c...out_success.php

http://www.whoolie.c...out_process.php

alone were not enough i had to add both so anyone else who is looking to use this module should add BOTH to their authorize.net configuration.   I will run a test sale through it in a bit to confirm 100% that it is working.



#1410 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 542 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 22 January 2015 - 16:31

@whoolieshop,

 

O.K., thank you. Please confirm and I'll add it to the instructions in the next update.

 

regards

Rainer



#1411   whoolieshop

whoolieshop
  • Members
  • 10 posts
  • Real Name:Shane Martin

Posted 22 January 2015 - 20:15

@raiwa

Okay just to confirm,   Authorize.net's SIM module seems to work just fine with the mobile version with no config changes or code modifications on the OSC side.

 

You will have to add the following urls to your response/relay url page on your authorize.net control panel to allow the customer to check out via the mobile site.

http://<yourstore.url>/mobile/checkout_process.php

http://<yourstore.url>/mobile/checkout_success.php

 

it is also advised (by authorize.net) to add the same url with the www. ahead of it but my particular configuration would not work with the www before the domain name alone, i had to add the domain without the www before it would stop giving the error.

 

Thanks for your help getting this set up, now just to get the mobile site looking the way I want!

 

*Edit*

 

On another note, what files can i safely delete from my server that were installed from the old version?  is everything now in the /mobile/ directory?    can I get rid of all the mobile_somefile.php in the root ?


Edited by whoolieshop, 22 January 2015 - 20:17.


#1412 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 542 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 23 January 2015 - 08:39

@raiwa

Okay just to confirm,   Authorize.net's SIM module seems to work just fine with the mobile version with no config changes or code modifications on the OSC side.

 

You will have to add the following urls to your response/relay url page on your authorize.net control panel to allow the customer to check out via the mobile site.

http://<yourstore.url>/mobile/checkout_process.php

http://<yourstore.url>/mobile/checkout_success.php

 

it is also advised (by authorize.net) to add the same url with the www. ahead of it but my particular configuration would not work with the www before the domain name alone, i had to add the domain without the www before it would stop giving the error.

 

Thanks for your help getting this set up, now just to get the mobile site looking the way I want!

 

*Edit*

 

On another note, what files can i safely delete from my server that were installed from the old version?  is everything now in the /mobile/ directory?    can I get rid of all the mobile_somefile.php in the root ?

@whoolieshop,

 

yes, all actual mobile files are inside the "mobile/" directory.

 

There may be also some obsolete files in:

mobile/includes/classes/

mobile/includes/functions/

mobile/includes/modules/

mobile/includes/

 

Please compare with the original directories.

 

regards

Rainer