Jump to content
bumbarash

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

Recommended Posts

Has anyone got this working with Google checkout level 2? I have a very modified shop, and all else seems to be working ok. But there seems to be a conflict with Google checkout. level 2, v.1.5_rc1

Share this post


Link to post
Share on other sites

Hi all,

 

I did install the contribution successfully on my very old and modded (loaded) store. Just some minor tweaking was needed.

Can anybody test with an iphone browser? I never managed to get one :D

website is here


Outside links in signatures are not allowed!

Share this post


Link to post
Share on other sites

O.K. I now have this working very well with Paypal direct payment, Points and rewards, held orders, margin report and ccgv. In the mobile checkout all points are calculated correctly, points are eared when an account is created. The gift vouchers are calculated correctly and will even catch an expired coupon code. The only problem I am having, is when I select paypal "not paypal direct payment", instead of the payment page I am redirected to paypals main signin page but my location bar is showing this address:

 

"https://www.paypal.com/cgi-bin/webscr?gv_redeem_code="

 

There is obviously something wrong, with my transfer into paypal. And I would deem it safe to say it is most likely with ccgv. Does anyone possibly have any idea what would cause this? :blink:

 

Thanks

Share this post


Link to post
Share on other sites

Hello!

 

I also use "Ultimate Seo Urls" ... same problem as Georgio has... I have also a htaccess

in the root of my webshop...

 

so does anyone has an issue? everytime i get reconnected to the pc-version on iphone...

 

thx - the rest is great, great contrib!!!

 

 

edit:

when I TURN OFF the seo_enabled in configure.php I get a blank window when I

try to get to product details...

Edited by cannapot

Share this post


Link to post
Share on other sites

I have this contribution all up and running. Even able to except payments from paypal. I have it operational with points and rewards, ccgv, held orders and more. At the current, I am working on Ultimate Seo Urls to be adapted to work with this contribution. I would greatly appreciate it if there is someone who would like to help with this. Here is a link to my mobile site: My Mobile

Share this post


Link to post
Share on other sites

I have this contribution all up and running. Even able to except payments from paypal. I have it operational with points and rewards, ccgv, held orders and more. At the current, I am working on Ultimate Seo Urls to be adapted to work with this contribution. I would greatly appreciate it if there is someone who would like to help with this. Here is a link to my mobile site: My Mobile

 

lupole, you have made IOSC do some really cool stuff! I'm still getting through some of the configuration issues myself.

Share this post


Link to post
Share on other sites

Hi

I installed this contribution, but my shop is heavely redesigned, so I don't know if its me or the shop who give me problems.

on http://www.slotworld.dk/shop/mobile_index.php

I have this index site to work, also categories, but when clicking a categori I am send to the standard shop,

just like the login site are being redirected to the standard shop.

what is going wrong here?

Share this post


Link to post
Share on other sites

Nice work!!

 

I have this contribution all up and running. Even able to except payments from paypal. I have it operational with points and rewards, ccgv, held orders and more. At the current, I am working on Ultimate Seo Urls to be adapted to work with this contribution. I would greatly appreciate it if there is someone who would like to help with this. Here is a link to my mobile site: My Mobile

Share this post


Link to post
Share on other sites

so does this work with osc 2.2rc2? where do the mobile files that are not listed in the mobile folder go? Do I need to modify the files to match my modded osc website files?


If the only tool you have is a hammer, all your problems look like nails

Share this post


Link to post
Share on other sites

I have this contribution all up and running. Even able to except payments from paypal. I have it operational with points and rewards, ccgv, held orders and more. At the current, I am working on Ultimate Seo Urls to be adapted to work with this contribution. I would greatly appreciate it if there is someone who would like to help with this. Here is a link to my mobile site: My Mobile

 

 

It;s not working on my side: http://www.lemon-en-lime.nl/shop/mobile_index.php

Share this post


Link to post
Share on other sites

 

One of the issues on your site is that the line items of your mobile shopping cart don't show the correct line total. This can be fixed by changing this line in mobile_shopping_cart.php (about line 113):

 

'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']),0, $products[$i]['quantity']) . '</b>');

 

to

 

'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');

 

Basically, you are just getting rid of "0," from the line.

Share this post


Link to post
Share on other sites

One of the issues on your site is that the line items of your mobile shopping cart don't show the correct line total. This can be fixed by changing this line in mobile_shopping_cart.php (about line 113):

 

'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']),0, $products[$i]['quantity']) . '</b>');

 

to

 

'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');

 

Basically, you are just getting rid of "0," from the line.

 

 

Thanks!!

Share this post


Link to post
Share on other sites

It's fully operational now!!

 

Have you tried creating an account using the mobile site? I tried on yours and kept getting an "MATC_ERROR", whatever that is. I also get the same thing on mine.

Share this post


Link to post
Share on other sites

Have you tried creating an account using the mobile site? I tried on yours and kept getting an "MATC_ERROR", whatever that is. I also get the same thing on mine.

 

I got this one figured out. MATC is apparently another add-on for Terms and Conditions. So if you don't already have this add-on, you will get errors. If you don't want to install this, simply remove (or comment out) the lines in your mobile_create_account.php file at around line 48 that look like this:

 

//-----   BEGINNING OF ADDITION: MATC   -----// 
if (tep_db_prepare_input($HTTP_POST_VARS['TermsAgree']) != 'true' and MATC_AT_REGISTER != 'false') {
$error = true;
$messageStack->add('create_account', MATC_ERROR);
}
//-----   END OF ADDITION: MATC   -----//

 

...and also at the bottom (around line 363) that look like this:

 

<h1>Conditions générales de vente</h1>
<label for="cgv" class="float"><?php echo 'CGV'; ?> *</label>
<?php
//-----   BEGINNING OF ADDITION: MATC   -----// 
if(MATC_AT_REGISTER != 'false'){
require(DIR_MOBILE_MODULES . 'matc.php');
}
//-----   END OF ADDITION: MATC   -----//
?>

Edited by B!!!

Share this post


Link to post
Share on other sites

Found another bug. On the Order Confirmation page, mobile_checkout_confirmation.php, change this line at about 183:

 

echo '<div class="gras">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'],0, $order->products[$i]['qty']) . '' . '</div>' .

 

to

 

echo '<div class="gras">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '' . '</div><br />' .

 

Again, I got rid of the "0," so that actual prices display. I also added a "<br />" code in there to force line breaks between multiple products so things line up correctly when there are product options.

Share this post


Link to post
Share on other sites

Have another...

 

(and by the way, looked through most of these 20 pages for bug fixes, so my apologies if these have been previously posted)

 

Clicking the Confirm Order button confirms your order, but puts you back on the non-mobile site.

 

Fix:

Add this line to the mobile/includes/configure.php file.

define('FILENAME_MOBILE_CHECKOUT_PROCESS', 'mobile_checkout_process.php');

 

In mobile_checkout_confirmation.php, change the line on about 86 from:

 

$form_action_url = tep_mobile_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');

 

to this:

 

$form_action_url = tep_mobile_link(FILENAME_MOBILE_CHECKOUT_PROCESS, '', 'SSL');

Share this post


Link to post
Share on other sites

The following code also doesn't seem to fit in with the mobile version - redirect to full shop

 

I mobile_product_info.php from line 130

<?php
			$path = tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params());
?>
				<?php echo tep_mobile_selection(tep_mobile_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('module'))), array(BOX_HEADING_REVIEWS)); ?>

 

I tried adding in config.php a new define for mobile_product_reviews.php and changed $path = tep_href_link to $path = tep_mobile_link but no change

 

Please help with this code


Thanks to all source contributors, 2.3.4 Edge just works fine

https://github.com/gburton/Responsive-osCommerce/archive/master.zip

Share this post


Link to post
Share on other sites

I got this one figured out. MATC is apparently another add-on for Terms and Conditions. So if you don't already have this add-on, you will get errors. If you don't want to install this, simply remove (or comment out) the lines in your mobile_create_account.php file at around line 48 that look like this:

 

//-----   BEGINNING OF ADDITION: MATC   -----// 
if (tep_db_prepare_input($HTTP_POST_VARS['TermsAgree']) != 'true' and MATC_AT_REGISTER != 'false') {
$error = true;
$messageStack->add('create_account', MATC_ERROR);
}
//-----   END OF ADDITION: MATC   -----//

 

...and also at the bottom (around line 363) that look like this:

 

<h1>Conditions générales de vente</h1>
<label for="cgv" class="float"><?php echo 'CGV'; ?> *</label>
<?php
//-----   BEGINNING OF ADDITION: MATC   -----// 
if(MATC_AT_REGISTER != 'false'){
require(DIR_MOBILE_MODULES . 'matc.php');
}
//-----   END OF ADDITION: MATC   -----//
?>

 

 

 

Remove it and it's working! Thanks.

Edited by westernunity

Share this post


Link to post
Share on other sites

The following code also doesn't seem to fit in with the mobile version - redirect to full shop

 

I mobile_product_info.php from line 130

<?php
			$path = tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params());
?>
				<?php echo tep_mobile_selection(tep_mobile_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('module'))), array(BOX_HEADING_REVIEWS)); ?>

 

I tried adding in config.php a new define for mobile_product_reviews.php and changed $path = tep_href_link to $path = tep_mobile_link but no change

 

Please help with this code

 

Change it to:

 

<?php

$path = tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params());

?>

<?php echo tep_mobile_selection(tep_mobile_link(FILENAME_MOBILE_PRODUCT_REVIEWS, tep_get_all_get_params(array('module'))), array(BOX_HEADING_REVIEWS)); ?>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×