Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Offical Google Checkout module for osCommerce Support Thread


1175 replies to this topic

#41 kryptoni

  • Community Member
  • 15 posts
  • Real Name:Bryan

Posted 15 August 2007, 18:09

View PostDriWashSolutions, on Aug 15 2007, 05:26 PM, said:

I've just had my site moved to a new server, and GC is giving me issues. No visible errors to the user, but all shipping is $0.00. I am using FedEx shipping.

Looking at the GC Integration control panel, here is the error:

We timed out waiting for your server at https://www.mydomain.com/catalog/googlechec...onsehandler.php -- the error we got is: Read timed out Your server must respond faster to merchant calculation callback requests.

What's the fix? I'm running a rather old version of GC - is the fix an upgrade or does something on the server need to be started/installed?

interesting... I'm running the newest version available and still get the $0 price feeds from UPS XML

#42 WINGMAN

  • Community Member
  • 5 posts
  • Real Name:WM

Posted 15 August 2007, 19:51

I have two problems.

First, no shipping will be applied to use google checkout. It is always zero. Even I set per item price. It is still zero.

Second, about the usps shipping the webpage http://www.uspsprioritymail.com/et_regcert.html doesn't exist any more. Anyone has an ideal how to register for the production account.

Thank you very much.

BTW, if I use paypal checkout, the shipping is alright.

#43 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 15 August 2007, 19:52

View Postdoni, on Aug 15 2007, 07:11 AM, said:

Even better, if the error occurs, instead of displaying the "Failed to Open" error text, is there a way I can replace this with (e.g.) "Please refresh screen for Google Checkout options" instead - this would at least inform the buyer that they have a Google Checkout option, and they need to refresh the screen in order to use that method ...

Their might be but I don't know about it. That is a very good idea for it to have a customized default error message instead of the generic. I will get back to you on that and let me look at the files and see if their is a debug option in the code that can be comment out. Seeing that these buttons are generate from Google most of these errors come from Google.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#44 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 15 August 2007, 20:00

Ok for everyone have shipping problems do this for me.

try adding
print_r($directory_array);

to gcheckout.php line 311

and
print_r($module_info);

in line 356

send me the results u should see in any page where the GC button appears.


Quote

Second, about the usps shipping the webpage http://www.uspsprioritymail.com/et_regcert.html doesn't exist any more. Anyone has an ideal how to register for the production account.

As far as the link goes it still works, I just tried it and took me straight to the page.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#45 kryptoni

  • Community Member
  • 15 posts
  • Real Name:Bryan

Posted 15 August 2007, 20:22

View PostSilverado05, on Aug 15 2007, 04:00 PM, said:

Ok for everyone have shipping problems do this for me.

try adding
print_r($directory_array);

to gcheckout.php line 311

and
print_r($module_info);

in line 356

send me the results u should see in any page where the GC button appears.
As far as the link goes it still works, I just tried it and took me straight to the page.

Array ( [0] => fedex1.php [1] => flat.php [2] => item.php [3] => table.php [4] => upsxml.php [5] => usps.php ) Array ( [fedex1] => Array ( [code] => fedex1 [title] => Federal Express [description] => Federal Express

You will need to have registered an account with FEDEX to use this module. Please see the README.TXT file for other requirements. [status] => 1 ) [flat] => Array ( [code] => flat [title] => Flat Rate [description] => Flat Rate [status] => 1 ) [table] => Array ( [code] => table [title] => Table Rate [description] => Table Rate [status] => 1 ) [upsxml] => Array ( [code] => upsxml [title] => United Parcel Service (XML) [description] => United Parcel Service (XML) [status] => 1 ) )

#46 WINGMAN

  • Community Member
  • 5 posts
  • Real Name:WM

Posted 15 August 2007, 20:32

View PostSilverado05, on Aug 15 2007, 04:00 PM, said:

Ok for everyone have shipping problems do this for me.

try adding
print_r($directory_array);

to gcheckout.php line 311

and
print_r($module_info);

in line 356

send me the results u should see in any page where the GC button appears.
As far as the link goes it still works, I just tried it and took me straight to the page.

WOW, thank you Silverado05,

I did not expect this lighting fast reply.

While, I did exactly what you said. I add those two lines into the bland lines in the gcheckout.php. (311, 356), it still doesn't solve the problem
In stead, when I click the cart button, it shows "Array ( ) Array ( ) " at the left side of the google checkout button.

It is a completely new web. I just replaced some icons. Nothing else had been changed.

Thank you

#47 WINGMAN

  • Community Member
  • 5 posts
  • Real Name:WM

Posted 15 August 2007, 21:05

View Postdoni, on Aug 15 2007, 04:50 AM, said:

1. Using 1.4 beta

2. Guess what - my "F5 refresh hit rate" (when I observe the Google Checkout buttone, compared to seeing the error), has improved to about 5 in 8 (from 1 in 8 yesterday).

3. I cannot locate any error files on the Google side.

4. The only error files I have on my side is "Failed to Get Basic Authentication Headers" when I ran https://mysite/googlecheckout/responsehandler.php. I had investigated this in the past, in a post rpou was having with someone else, and he suggested invoking the htaccess.php file to create the .htaccess and .htpasswd files in Googlecheckout/, but this has no effect on whether the button show or not, so I removed the .htaccess and .htpasswd files and re-set back to using without this.

5. This next point is very interesting : When I run the Shipping_Generator file, sometimes I get :

Warning: main(multishipping_generator.php): failed to open stream: No such file or directory in /mysite/googlecheckout/shipping_generator/shipping_method_generator.php on line 284

Warning: main(): Failed opening 'multishipping_generator.php' for inclusion (include_path='') in /mysite/googlecheckout/shipping_generator/shipping_method_generator.php on line 284

... and sometimes, when I refresh F5, I get the correct table showing.

6. On the face of it, it seems to me that I am having some kind of resource issues here, where the files cannot complete a task, but I have ample server space, and the traffic is very low at this time of year, so I don't think the resource issue is coming from my side. (i.e. Without GC, we can process order through HSBC fine).

I think I am very stuck.


I just saw this post. I followed it and run the responsehandler.php

I got a smilar error

Warning:

googlecheckout(/mnt/w0401/d20/s44/b02b9525/www/mysite/catalog/googlecheckout/includes/languages/english/modules/payment/googlecheckout.php) [
function.googlecheckout]: failed to open stream: No such file or directory in /mnt/w0401/d20/s44/b02b9525/www/mysite/catalog/includes/modules/payment/googlecheckout.php on line 38

Fatal error:

googlecheckout() [function.require]: Failed opening required '/mnt/w0401/d20/s44/b02b9525/www/mysite/catalog/googlecheckout/includes/languages/english/modules/payment/googlecheckout.php' (include_path='.:/usr/local/nf/lib/php:.:.') in /mnt/w0401/d20/s44/b02b9525/www/mysite/catalog/includes/modules/payment/googlecheckout.php on line 38

Anyone can help me figure out the reason?

Thank you in advance.

#48 DriWashSolutions

  • Community Member
  • 204 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 15 August 2007, 21:46

View PostSilverado05, on Aug 15 2007, 08:00 PM, said:

Ok for everyone have shipping problems do this for me.

try adding
print_r($directory_array);

to gcheckout.php line 311

and
print_r($module_info);

in line 356

send me the results u should see in any page where the GC button appears.
As far as the link goes it still works, I just tried it and took me straight to the page.

here's mine:

Array ( [0] => dly.php [1] => fedex1.php [2] => flat.php [3] => item.php [4] => spu.php [5] => table.php [6] => ups.php [7] => usps.php [8] => zones.php )

The print statement at line 356 is in the middle of a block of code - not sure it's the right spot for that. BTW, I'm using 1.3RC2
John Skurka

#49 DriWashSolutions

  • Community Member
  • 204 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 15 August 2007, 22:32

Just up-degraded from 1.3RC2 to 1.4 and am getting the following errors when viewing the shopping cart:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxx/public_html/catalog/googlecheckout/gcheckout.php on line 218

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxx/public_html/catalog/googlecheckout/gcheckout.php on line 218

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxx/public_html/catalog/googlecheckout/gcheckout.php on line 218

- Or use -

What is Google Checkout?
* The Version of the installed module in the Admin UI is MODULE_PAYMENT_GOOGLECHECKOUT_VERSION and the one of the package is GOOGLECHECKOUT_FILES_VERSION, Remove/Reinstall the module

Edited by DriWashSolutions, 15 August 2007, 22:33.

John Skurka

#50 DriWashSolutions

  • Community Member
  • 204 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 15 August 2007, 23:12

View PostDriWashSolutions, on Aug 15 2007, 10:32 PM, said:

Just up-degraded from 1.3RC2 to 1.4 and am getting the following errors when viewing the shopping cart:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxx/public_html/catalog/googlecheckout/gcheckout.php on line 218

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxx/public_html/catalog/googlecheckout/gcheckout.php on line 218

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxx/public_html/catalog/googlecheckout/gcheckout.php on line 218

- Or use -

What is Google Checkout?
* The Version of the installed module in the Admin UI is MODULE_PAYMENT_GOOGLECHECKOUT_VERSION and the one of the package is GOOGLECHECKOUT_FILES_VERSION, Remove/Reinstall the module

Disregard this one - got it figured out and am now running v1.4

however, shipping is now (--) in the GCO page.
John Skurka

#51 DriWashSolutions

  • Community Member
  • 204 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 15 August 2007, 23:17

View PostSilverado05, on Aug 15 2007, 08:00 PM, said:

Ok for everyone have shipping problems do this for me.

try adding
print_r($directory_array);

to gcheckout.php line 311

and
print_r($module_info);

in line 356

Updated results using v1.4 and moving the 2nd print line to 352:

Array ( [0] => dly.php [1] => fedex1.php [2] => flat.php [3] => item.php [4] => spu.php [5] => table.php [6] => ups.php [7] => usps.php [8] => zones.php ) Array ( [dly] => Array ( [code] => dly [title] => Local Delivery [description] => Delivered only within the limits of Tompkins County, New York, USA. [status] => 1 ) [fedex1] => Array ( [code] => fedex1 [title] => Federal Express [description] => Federal Express

You will need to have registered an account with FEDEX to use this module. Please see the README.TXT file for other requirements. [status] => 1 ) [usps] => Array ( [code] => usps [title] => United States Postal Service [description] => United States Postal Service

You will need to have registered an account with USPS at http://www.uspsprioritymail.com/et_regcert.html to use this module

USPS expects you to use pounds as weight measure for your products. [status] => 1 ) )
John Skurka

#52 DriWashSolutions

  • Community Member
  • 204 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 16 August 2007, 00:09

Update:

Shipping now works - it was an issue with my testing, and using my own GC account. Basically it was being shipped from and delivered to the same address.

Now, GCO is telling me there an issue the the response handler:

We timed out waiting for your server at https://www.xxx.com/catalog/go...onsehandler.php -- the error we got is: Read timed out Your server must respond faster to merchant calculation callback requests.

Edited by DriWashSolutions, 16 August 2007, 00:10.

John Skurka

#53 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 16 August 2007, 01:01

View Postkryptoni, on Aug 15 2007, 03:22 PM, said:

Array ( [0] => fedex1.php [1] => flat.php [2] => item.php [3] => table.php [4] => upsxml.php [5] => usps.php ) Array ( [fedex1] => Array ( [code] => fedex1 [title] => Federal Express [description] => Federal Express

You will need to have registered an account with FEDEX to use this module. Please see the README.TXT file for other requirements. [status] => 1 ) [flat] => Array ( [code] => flat [title] => Flat Rate [description] => Flat Rate [status] => 1 ) [table] => Array ( [code] => table [title] => Table Rate [description] => Table Rate [status] => 1 ) [upsxml] => Array ( [code] => upsxml [title] => United Parcel Service (XML) [description] => United Parcel Service (XML) [status] => 1 ) )


Ok that code I asked you add was to for testing purposes only to output the code above.

Have you run the shipping generator?
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#54 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 16 August 2007, 01:02

View PostWINGMAN, on Aug 15 2007, 03:32 PM, said:

WOW, thank you Silverado05,

I did not expect this lighting fast reply.

While, I did exactly what you said. I add those two lines into the bland lines in the gcheckout.php. (311, 356), it still doesn't solve the problem
In stead, when I click the cart button, it shows "Array ( ) Array ( ) " at the left side of the google checkout button.

It is a completely new web. I just replaced some icons. Nothing else had been changed.

Thank you

If you are just getting Array ( ) Array ( ) then you need to run your shipping generator. If you have run that then post your includes/configure.php here minus the database info at the bottom.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#55 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 16 August 2007, 01:04

Everyone else if you are getting this message...

Quote

We timed out waiting for your server at https://www.xxx.com/catalog/go...onsehandler.php -- the error we got is: Read timed out Your server must respond faster to merchant calculation callback requests.

This is due to timeout issues from your shipping module and Google Checkout. Really not much you can do about that right now but it has been addressed and fix for this should be released soon.

As long as you have your default shipping prices set up in the module it will default to those prices if the shipping module times out like that.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#56 kryptoni

  • Community Member
  • 15 posts
  • Real Name:Bryan

Posted 16 August 2007, 14:56

View PostSilverado05, on Aug 15 2007, 09:01 PM, said:

Ok that code I asked you add was to for testing purposes only to output the code above.

Have you run the shipping generator?
Yes. I did and modified the file as instructed. It didn't make a difference so I went back to the original file to see if that would help. Thus the array output above. Below is the output with the custom shipping generated code :


Array ( [0] => fedex1.php [1] => flat.php [2] => item.php [3] => table.php [4] => upsxml.php [5] => usps.php ) Array ( [fedex1] => Array ( [code] => fedex1 [title] => Federal Express [description] => Federal Express

You will need to have registered an account with FEDEX to use this module. Please see the README.TXT file for other requirements. [status] => 1 ) [flat] => Array ( [code] => flat [title] => Flat Rate [description] => Flat Rate [status] => 1 ) [table] => Array ( [code] => table [title] => Table Rate [description] => Table Rate [status] => 1 ) [upsxml] => Array ( [code] => upsxml [title] => United Parcel Service (XML) [description] => United Parcel Service (XML) [status] => 1 ) )


Thanks for you help!!!

Edited by kryptoni, 16 August 2007, 14:59.


#57 kryptoni

  • Community Member
  • 15 posts
  • Real Name:Bryan

Posted 16 August 2007, 15:29

View Postkryptoni, on Aug 16 2007, 10:56 AM, said:

Yes. I did and modified the file as instructed. It didn't make a difference so I went back to the original file to see if that would help. Thus the array output above. Below is the output with the custom shipping generated code :
Array ( [0] => fedex1.php [1] => flat.php [2] => item.php [3] => table.php [4] => upsxml.php [5] => usps.php ) Array ( [fedex1] => Array ( [code] => fedex1 [title] => Federal Express [description] => Federal Express

You will need to have registered an account with FEDEX to use this module. Please see the README.TXT file for other requirements. [status] => 1 ) [flat] => Array ( [code] => flat [title] => Flat Rate [description] => Flat Rate [status] => 1 ) [table] => Array ( [code] => table [title] => Table Rate [description] => Table Rate [status] => 1 ) [upsxml] => Array ( [code] => upsxml [title] => United Parcel Service (XML) [description] => United Parcel Service (XML) [status] => 1 ) )
Thanks for you help!!!

one more thing - My host is GoDaddy.... not sure if that matters....

#58 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 16 August 2007, 16:15

View Postkryptoni, on Aug 16 2007, 10:29 AM, said:

one more thing - My host is GoDaddy.... not sure if that matters....


No I doubt it has to do with GoDaddy.

Has the shipping ever shown or does it always time out?

Can you post me your googlecheckout/shipping_methods.php?
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#59 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 16 August 2007, 16:18

View PostWINGMAN, on Aug 15 2007, 03:32 PM, said:

WOW, thank you Silverado05,

I did not expect this lighting fast reply.

While, I did exactly what you said. I add those two lines into the bland lines in the gcheckout.php. (311, 356), it still doesn't solve the problem
In stead, when I click the cart button, it shows "Array ( ) Array ( ) " at the left side of the google checkout button.

It is a completely new web. I just replaced some icons. Nothing else had been changed.

Thank you


if u just see

array();

check that ur shipping modules directory is this one (line 290)

$module_directory = DIR_FS_CATALOG . DIR_WS_MODULES . 'shipping/';

try adding an echo to see content of the $module_directory variable

like this

echo $module_directory = DIR_FS_CATALOG . DIR_WS_MODULES . 'shipping/';

if its wrong, double check ur includes/configure.php file and put the correct values

for debugging, uncomment gcheckout.php line 637 to see the xml cart in the shopping_cart.php page

hope this helps
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#60 kryptoni

  • Community Member
  • 15 posts
  • Real Name:Bryan

Posted 16 August 2007, 16:30

View PostSilverado05, on Aug 16 2007, 12:15 PM, said:

No I doubt it has to do with GoDaddy.

Has the shipping ever shown or does it always time out?

Can you post me your googlecheckout/shipping_methods.php?

Yes I get quotes in the OSC checkout process it just doesn't carry over to Google. It is the same thing for Fedex and UPS XML. I even entered the default shipping values in the GC admin page and it still didn't show up in the Google Checkout. It does pass a flat or per item table value though.

Here is my shipping_methods.php file
<?php
/**
  * File: googlecheckout/shipping_methods.php file
  */
$mc_shipping_methods = array(
                        'fedex1' => array(
                                    'domestic_types' =>
                                      array(
                                          '90' => 'Home Delivery',
                                          '05' => 'Standard Overnight ',
                                          '01' => 'Priority ',

                                           ),

                                    'international_types' =>
                                      array(
                                          '03' => 'International Economy ',

                                           ),
                                        ),
                        'upsxml' => array(
                                    'domestic_types' =>
                                      array(
                                          'UPS Ground' => 'Ground',
                                          'UPS Next Day Air' => 'Next Day Air',

                                           ),

                                    'international_types' =>
                                      array(
                                          'UPS Worldwide Express' => 'Worldwide Express',
                                          'UPS Worldwide Expedited' => 'Worldwide Expedited',
                                          'UPS Worldwide Express Plus' => 'Worldwide Express Plus',

                                           ),
                                        ),
                                  );

$mc_shipping_methods_names = array(
                                         'fedex1' => 'Federal Express',
                                         'upsxml' => 'United Parcel Service',
                                        );
?>

Edited by kryptoni, 16 August 2007, 16:31.