Zen Cart Logo
Forums / Addon Payment Modules / Google Checkout module for ZC 1.3.x (beta)

Google Checkout module for ZC 1.3.x (beta)

Locked

Views: 1,099,928

Results 1,621 to 1,640 of 3,921
This thread is locked. New replies are disabled.
4 Jun 2007, 1:14 PM
#1621
mzeblu avatar

mzeblu

New Zenner

Join Date:
May 2007
Posts:
7
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

mzeblu:

I am getting an error when I attempt to verify google checkout in the payment-modules in the admin panel.

"Cannot redeclare class googlecheckout line 507.bmp" includes/modules/payment/googlecheckout.php

the only think in this line is a }

I'm am attempting to install v1.3.7 v1.3RC2

Thanks for any help.

desperate bump,, anyone??

also,, anyone using google checkout without this mod, any suggestions?
thx! :cool:

4 Jun 2007, 5:11 PM
#1622
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

Kokonutmama:

  1. Charges too much for UPS ground. Orders processed through Zen and PayPal work out perfectly with shipping prices, through GC they come out about $10 too much.

When you say "charges too much" can you provide specific examples? What is being charged with GC? What is suppose to be charged? What are your product details (weight, product price) and shipping config (handling fee, tare weight, etc)?

The assumption here is you are testing in the Sellers sandbox?

When you obtain the UPS "quote" is the ship cost actually coming from UPS? Or is the amount quoted the default shipping cost you yourself have configured in the GC payment mod?

Whenever you attempt to obtain ship quote from UPS what appears in your GC response and/or error logs?

As stated above for tj1, please post your configuration details... as much info you can provide about your shipping configuration, merchant calculations set-up, and observed errors the better.

For testing, when you run the shipping generator to create the shipping code for UPS ground only, did you leave out all other shipping methods and other USP shipping options? Then manually edit the two merchant calculation arrays within /modules/includes/payment/googlecheckout.php

mc_shipping_methods
mc_shipping_methods_names

Please post your code for the above. The point here is test each shipping option individually. Then add back shipping options, to help find which options may be negatively effecting each other.

Kokonutmama:

  1. On the Payment Options page along the 'regular' checkout route GC is listed, albeit with no radio button, and I think that looks sloppy and confusing, particularly since I only offer one other payment option, but the user must click it..
    Yes this has been previously discussed. The code to patch Zen Cart 1.37 has been posted here by me and others.

Kokonutmama:

I think this has been covered before but when the code to change was given, my files didn't match the ones given by the helpful folks here.

The posted patch for tpl_checkout_payment_default.php works well with default Zen Cart 1.37.

Post snippets of your code where it is different from the patch. Or attach your file to your post and someone can run a quick compare. Again the assumption here is you are patching a copy of the default Zen Cart 1.37, and copying to your template directory and have not made any other modifications to the template file.

Woody

4 Jun 2007, 10:09 PM
#1623
optikalsaint avatar

optikalsaint

New Zenner

Join Date:
Aug 2006
Posts:
31
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I have been reading through this thread for days trying to find a solution for the problem I am having. Unfortunately, I have been unable to do so.

Every time an order is placed via Google Checkout no data is sent back to my administration section for the order. When I pull up the Intergration section of Google Checkout, I am presented with the following error:

Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback

I have done a ton of searching through Google as well as this forums search functions and I cannot find anything that can help me tackle this problem. I have also contacted Google themselves and all they said was:

The merchant calculation callback is when Google Checkout sends information to your server regarding the address of the buyer so your server can calculate shipping costs, taxes, etc and return it to Google Checkout. Your server is not returning information in the reply to the merchant calculation callback.

It looks like you're using Zen Cart, please refer to the Zen Cart manual to correctly set up the merchant calculation callback for Google Checkout.

If anyone can help me out here, I would really appreciate it!

Thanks in advance!

4 Jun 2007, 11:11 PM
#1624
optikalsaint avatar

optikalsaint

New Zenner

Join Date:
Aug 2006
Posts:
31
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

optikalsaint:

I have been reading through this thread for days trying to find a solution for the problem I am having. Unfortunately, I have been unable to do so.

Every time an order is placed via Google Checkout no data is sent back to my administration section for the order. When I pull up the Intergration section of Google Checkout, I am presented with the following error:

I have done a ton of searching through Google as well as this forums search functions and I cannot find anything that can help me tackle this problem. I have also contacted Google themselves and all they said was:

If anyone can help me out here, I would really appreciate it!

Thanks in advance!

I fixed it! It turns out it was a problem with my version of PHP (version 5.2.2). For some reason, the $HTTP_RAW_POST_DATA was not being populated. After adding the following code my responsehandler.php file, everything was working wonderfully!

$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : file_get_contents("php://input");

5 Jun 2007, 12:04 AM
#1625
teebo avatar

teebo

Zen Follower

Join Date:
Jun 2007
Posts:
104
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Hi forum.

I just got into the zen cart thing, and wanted to implement GCO. I just installed zen, and followed the information in the readme, but when I goto modules-payment to see if its there I get

Fatal error: Cannot redeclare class googlecheckout in /home/.houston/site/http/www.site.com/includes/modules/payment/googlecheckout.php on line 507

Anyone have any ideas?
[/B]

5 Jun 2007, 1:18 AM
#1626
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

teebo:

Hi forum.

I just got into the zen cart thing, and wanted to implement GCO. I just installed zen, and followed the information in the readme, but when I goto modules-payment to see if its there I get

Fatal error: Cannot redeclare class googlecheckout in /home/.houston/site/http/www.site.com/includes/modules/payment/googlecheckout.php on line 507

Anyone have any ideas?
[/B]

I can't find a file named googlecheckout.php with 507 lines in it. What version of GCO are you using? Did it come from the zen-cart downloads?

Did you use the shipping configuration tool to set up your shipping options? The filed named in your error message is the one that would be affected.

5 Jun 2007, 1:34 AM
#1627
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

optikalsaint:

I fixed it! It turns out it was a problem with my version of PHP (version 5.2.2). For some reason, the $HTTP_RAW_POST_DATA was not being populated. After adding the following code my responsehandler.php file, everything was working wonderfully!

I do not fully understand your 'added code.' I am not good with the code.

Are you changing the entire line from $HTTP_RAW_POST_DATA to $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : file_get_contents("php://input");

or are you making the line $HTTP_RAW_POST_DATA become isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : file_get_contents("php://input");


thank you,
jund

5 Jun 2007, 1:42 AM
#1628
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Originally Posted by mzeblu
I am getting an error when I attempt to verify google checkout in the payment-modules in the admin panel.

"Cannot redeclare class googlecheckout line 507.bmp" includes/modules/payment/googlecheckout.php

the only think in this line is a }

I'm am attempting to install v1.3.7 v1.3RC2

Thanks for any help.
teebo:

Hi forum.

I just got into the zen cart thing, and wanted to implement GCO. I just installed zen, and followed the information in the readme, but when I goto modules-payment to see if its there I get

Fatal error: Cannot redeclare class googlecheckout in /home/.houston/site/http/www.site.com/includes/modules/payment/googlecheckout.php on line 507

Anyone have any ideas?
[/B]

OK - I found the version you are using. It was from the Google code site rather than the zen-cart download site.

My suggestion is that you use the zen-cart down load instead of the Google version. It is the one that works for those of us not having problems. http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_48&products_id=314

5 Jun 2007, 1:50 AM
#1629
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Just a side note -

I got confirmation that the USPS International Priority Shipping option works fine in GCO. I got an order in my zen-cart for 2 books. The customer info was there, the shipping address was all there, the quantities were properly decremented, and the status was Pending. All was as it should be!

The kicker was that I had to go to Google site to find out that the payment had been denied as the credit card was not accepted. I cancelled the order through the Google interface.

5 Jun 2007, 2:17 AM
#1630
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

chain_man, Priority Mail International is the only USPS international option that shows up for USPS. Issac and I were trying to figure why this is the only that shows up, but couldn't figure out why.

I just tested your shop and Priority Mail International is also the only option available.

It would be nice if we could get first-class international and express showing up as well.

5 Jun 2007, 3:47 AM
#1631
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

tj1:

chain_man, Priority Mail International is the only USPS international option that shows up for USPS. Issac and I were trying to figure why this is the only that shows up, but couldn't figure out why.

I just tested your shop and Priority Mail International is also the only option available.

It would be nice if we could get first-class international and express showing up as well.

tj,

I believe I read something in the shipping modules area about the problem being more with USPS than zen-cart or GCO. Of course those posts were right around the time the PO cut over to its new rates, but it might still apply...

5 Jun 2007, 5:36 AM
#1632
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Woodymon:

Yes it is correct for PayPal to show up on step 2 page, just not GC. See my other post regarding removing the C label from the GC step 2 page (the template file that needs editing is tpl_checkout_payment_default.php).

Woody, Are you sure about this? I removed the couple of lines that the old GC asked to add to this file but the GoogleCheckout still showing in page 2 of 3 of the payment, then i replaced the file with the original file that was never been edited and this GoogleCheckout is not going a way:lamo: I think it is reading from a database or another file, any idea? Thanks

5 Jun 2007, 5:54 AM
#1633
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

chain_man:

OK - I found the version you are using. It was from the Google code site rather than the zen-cart download site.

My suggestion is that you use the zen-cart down load instead of the Google version. It is the one that works for those of us not having problems. http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_48&products_id=314

Chain_man, i did not see any difference between the 2 sets of files, the date and the size are exactly the same.

5 Jun 2007, 1:22 PM
#1634
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

TamyA:

Chain_man, i did not see any difference between the 2 sets of files, the date and the size are exactly the same.

I did a Winmerge compare on the file that is giving the problem (includes/modules/payment/googlecheckout.php). The Google code has 509 lines, the zen download has 481. The difference is that the Google code is trying to implement a function to select which zen file to use when returning to zen from GCO.

5 Jun 2007, 2:20 PM
#1635
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I downloaded the latest from the zen downloads area and when I go to http://www.doodlebuckets.com/store/googlecheckout/shipping_generator/multishipping_generator.php and click Generate, I get the following output:

**Warning: Invalid argument supplied for foreach() in /home/doodlebu/www/www/store/googlecheckout/shipping_generator/multigenerator.php on line 18

Warning: Invalid argument supplied for foreach() in /home/doodlebu/www/www/store/googlecheckout/shipping_generator/multigenerator.php on line 61

<?php /** * File: includes/modules/payment/googlecheckout.php class * Add this code to the correct properties */ $this->mc_shipping_methods = array( ); $this->mc_shipping_methods_names = array( ); ?> **

Am I doing something wrong? Please advise. I have freeoptions, store pickup and usps shipping enabled.
Thanks! Amy

5 Jun 2007, 5:48 PM
#1636
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

chain_man:

tj,

I believe I read something in the shipping modules area about the problem being more with USPS than zen-cart or GCO. Of course those posts were right around the time the PO cut over to its new rates, but it might still apply...

The USPS shipping module works perfectly. Initially there were some problems with the naming of some international options that caused them not to show up, but that issue was quickly addressed.

I have updated the GC mod with the new USPS naming, but still, I'm not sure what prevents first-class international and Express international from showing up.
All the ZC shops with the GC mod that I've seen show this same issue.

I ship a lot of packages weighing as little as 2 ounces. I don't think many people would want to pay $22 for shipping a small two ounce package. I would've preferred that if only one international shipping option was going to be available, that it'd be first-class.

6 Jun 2007, 7:51 AM
#1637
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

tj1:

I have updated the GC mod with the new USPS naming, but still, I'm not sure what prevents first-class international and Express international from showing up.

TJ1-

It's been repeatedly requested that you post the content of the two arrays in your GC payment module file. But you have yet to do that. Why?

Woody

6 Jun 2007, 7:53 AM
#1638
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

TamyA:

Woody, Are you sure about this?
Ummm...yes.

TamyA:

I removed the couple of lines that the old GC asked to add to this file but the GoogleCheckout still showing in page 2 of 3 of the payment, then i replaced the file with the original file that was never been edited and this GoogleCheckout is not going a way
Did you download and install the patch code I recommended? From your above statement it appears you have not.

Woody

6 Jun 2007, 8:13 AM
#1639
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

Doodlebuckets:

I get the following output:
[B]Warning: Invalid argument supplied for foreach() in /home/doodlebu/www/www/store/googlecheckout/shipping_generator/multigenerator.php on line 18

Warning: Invalid argument supplied for foreach() in /home/doodlebu/www/www/store/googlecheckout/shipping_generator/multigenerator.php on line 61

Amy-

  1. At first glance It appears you don't have the GC mod uploaded/installed correctly.

Note the path in the above errors. /www is repeated in the path in both errors

  1. Also, generally when hard coding the store path anywhere (e.g. your two Zen Cart configure.php files) should use /public_html instead of "/www". But you may have have a non-standard hosting configuration (check with your hosting provider if not sure).

Woody

6 Jun 2007, 9:08 AM
#1640
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

Doodlebuckets:

Hi, I've just installed this mod and everything has gone along nicely except when I try to do the shipping methods generator, I get this error:

Fatal error: Cannot redeclare class freeoptions in /home/doodlebu/www/www/store/includes/modules/shipping/freeoptions.php on line 10

Any help with this? Everything else seems to be working just great :o)
Amy
https://www.doodlebuckets.com

  1. I don't observe GoogleCheckout (GC) is installed on your site. The GC does not appear on either the login or shopping cart pages.

Maybe you have a development site where you are testing GC mod?

  1. Also on your live site the add to cart button is not not redirecting to the shopping cart page.If not certain how to resolve that may want to ask on one of the Configuring Zen Cart boards.

  2. The error above appears related to the other errors you reported today. I suspect you have some code from different GC mod versions uploaded. Possibly did not overwrite an older mod file when upgrading the mod?

Woody