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,100,066

Results 3,461 to 3,480 of 3,921
This thread is locked. New replies are disabled.
1 Oct 2010, 7:56 AM
#3461
waboose_ath avatar

waboose_ath

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

BlessIsaacola:

Do you have a site to take a look at?
yea;
https://www.perfectcirclelens.com

1 Oct 2010, 8:26 AM
#3462
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
944
Plugin Contributions:
3

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

waboose_ath:

when I finished the setup process I saw the google checkout button there once.. and then never. I did not change anything in coding and I don't know what exactly I should do to check my cache directory. should I start over? there is no easy uninstall option either...

FTP to your cache directory in your zencart installation. You will see a lot of log files. You're looking for the one that is closest to the time you accessed your site. If anything, I can help you with the install if you have time via PM.

1 Oct 2010, 9:52 AM
#3463
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

waboose_ath:

yea;
https://www.perfectcirclelens.com

Your code is not even firing on the shopping cart page. Are you sure that you have correctly installed the mod? I'd suggest just checking again. Which version of Zen Cart are you using? What error are you seeing in the debug file (if any)?

1 Oct 2010, 3:37 PM
#3464
conspicuouschick avatar

conspicuouschick

New Zenner

Join Date:
Nov 2008
Posts:
39
Plugin Contributions:
0

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

In sandbox, clicking on the google checkout button on my site would bring up a page on google checkout with shipping options (so to speak). Now that the code from the shipping generator has been added, I only get an error page. Below is the code... Is something amiss?

<?php /* **GOOGLE CHECKOUT ** v1.4.7 * @version $Id: shipping_methods.php 5852 2007-12-14 14:58:57Z ropu $ * */ // this are all the available methods for each shipping provider, // see that you must set flat methods too! // CONSTRAINT: Method's names MUST be UNIQUE // Script to create new shipping methods // <http://demo.globant.com/~brovagnati/tools> -> Shipping Method Generator /** * File: googlecheckout/shipping_methods.php file */ $mc_shipping_methods = array( 'usps' => array( 'domestic_types' => array( 'FIRST CLASS' => 'First-Class Mail (2 - 5 days)', 'PRIORITY' => 'Priority Mail (2 - 3 days)', 'PARCEL' => 'Parcel Post (4 - 7 days)', ), 'international_types' => array( 'Priority Mail International' => 'Priority Mail International (6 - 10 business days)', ), ), ); $mc_shipping_methods_names = array( 'usps' => 'United States Postal Service (1 x 0.10lbs)', ); ?>
1 Oct 2010, 9:07 PM
#3465
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
944
Plugin Contributions:
3

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

conspicuouschick:

In sandbox, clicking on the google checkout button on my site would bring up a page on google checkout with shipping options (so to speak). Now that the code from the shipping generator has been added, I only get an error page. Below is the code... Is something amiss?

<?php /* **GOOGLE CHECKOUT ** v1.4.7 * @version $Id: shipping_methods.php 5852 2007-12-14 14:58:57Z ropu $ * */ // this are all the available methods for each shipping provider, // see that you must set flat methods too! // CONSTRAINT: Method's names MUST be UNIQUE // Script to create new shipping methods // [http://demo.globant.com/~brovagnati/tools](http://demo.globant.com/%7Ebrovagnati/tools) -> Shipping Method Generator /** * File: googlecheckout/shipping_methods.php file */ $mc_shipping_methods = array( 'usps' => array( 'domestic_types' => array( 'FIRST CLASS' => 'First-Class Mail (2 - 5 days)', 'PRIORITY' => 'Priority Mail (2 - 3 days)', 'PARCEL' => 'Parcel Post (4 - 7 days)', ), 'international_types' => array( 'Priority Mail International' => 'Priority Mail International (6 - 10 business days)', ), ), ); $mc_shipping_methods_names = array( 'usps' => 'United States Postal Service (1 x 0.10lbs)', ); ?>

Log into your Google Checkout Sandbox account and then visit Tools > Integration Console and look at the most recent error message provided.

If the error message is not from Google Checkout (meaning you don't see the google checkout page), go to your zencart cache directory and bring up the most recent .log file and provide it here. Also there is a google checkout generator PROVIDED with Google Checkout in the admin panel. Not sure you should be using one provided by someone else.

1 Oct 2010, 10:38 PM
#3466
jeremy0203 avatar

jeremy0203

New Zenner

Join Date:
Sep 2010
Posts:
21
Plugin Contributions:
0

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

got a question for you guys. i have google checkout on my site and people can checkout with it by using the google checkout button.

my question is though are orders that are paid for with google supposed to show up in the admin area. it shows 0 items being processed with google. also is there some way of using gift certificates or anything with it as you have to go through the normal checkout method for it to apply it which the bypasses google and makes it useless

2 Oct 2010, 5:36 AM
#3467
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
944
Plugin Contributions:
3

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

jeremy0203:

got a question for you guys. i have google checkout on my site and people can checkout with it by using the google checkout button.

my question is though are orders that are paid for with google supposed to show up in the admin area. it shows 0 items being processed with google. also is there some way of using gift certificates or anything with it as you have to go through the normal checkout method for it to apply it which the bypasses google and makes it useless

If the orders aren't showing up in ZC after a customer completes a GoogleCheckout order, their order isn't being processed by ZC properly.

There is supposed to be a way that gift certificates are checked against the local server but I think I'm missing an option somewhere as I didn't get this to work for mine.

3 Oct 2010, 2:32 PM
#3468
conspicuouschick avatar

conspicuouschick

New Zenner

Join Date:
Nov 2008
Posts:
39
Plugin Contributions:
0

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

retched:

Log into your Google Checkout Sandbox account and then visit Tools > Integration Console and look at the most recent error message provided.

XML received:

<?xml version="1.0" encoding="UTF-8"?> <checkout-shopping-cart xmlns="http://checkout.google.com/schema/2"> <shopping-cart> <items> <item> <item-name>Wet N Wild MegaLast Long Lasting Color n Gloss - Lasting Bronze</item-name> <item-description></item-description> <unit-price currency="USD">1.75</unit-price> <quantity>1</quantity> <merchant-private-item-data> <item>YToxNTp7czozOiJxdHkiO2k6MTtzOjQ6Im5hbWUiO3M6NjM6IldldCBOIFdpbGQgTWVnYUxhc3QgTG9uZyBMYXN0aW5nIENvbG9yIG4gR2xvc3MgLSBMYXN0aW5nIEJyb256ZSI7czo1OiJtb2RlbCI7czozMjoiV05XIE1lZ2FMYXN0IC0gTGFzdGluZyBCcm56ZSAzNjciO3M6MzoidGF4IjtpOjA7czoxNToidGF4X2Rlc2NyaXB0aW9uIjtzOjk6IlNhbGVzIFRheCI7czo1OiJwcmljZSI7czo2OiIxLjc1MDAiO3M6MTE6ImZpbmFsX3ByaWNlIjtkOjEuNzU7czoxNToib25ldGltZV9jaGFyZ2VzIjtpOjA7czo2OiJ3ZWlnaHQiO2Q6MC4wNDI5OTk5OTk5OTk5OTk5OTY1NTgzMDg2MjM2NjIwMTQ3MjQ2ODY3NDE4Mjg5MTg0NTcwMzEyNTtzOjI4OiJwcm9kdWN0c19wcmljZWRfYnlfYXR0cmlidXRlIjtzOjE6IjAiO3M6MTU6InByb2R1Y3RfaXNfZnJlZSI7czoxOiIwIjtzOjIyOiJwcm9kdWN0c19kaXNjb3VudF90eXBlIjtzOjE6IjAiO3M6Mjc6InByb2R1Y3RzX2Rpc2NvdW50X3R5cGVfZnJvbSI7czoxOiIwIjtzOjI6ImlkIjtpOjM4ODtzOjg6InJvd0NsYXNzIjtzOjc6InJvd0V2ZW4iO30=</item> </merchant-private-item-data> <merchant-item-id>388</merchant-item-id> <tax-table-selector>Taxable Goods</tax-table-selector> <item-weight unit="LB" value="0.043" /> </item> </items> <merchant-private-data> <session-data>e086549e78b47401bb32f4d57d65b54f;zenid</session-data> <ip-address>69.137.242.19</ip-address> </merchant-private-data> </shopping-cart> <checkout-flow-support> <merchant-checkout-flow-support> <edit-cart-url>http://www.conspicuouschick.com/zencart/index.php?main_page=shopping_cart</edit-cart-url> <continue-shopping-url>http://www.conspicuouschick.com/zencart/index.php?main_page=http://www.conspicuouschick.com/zencart/index.php</continue-shopping-url> <shipping-methods> <carrier-calculated-shipping> <carrier-calculated-shipping-options> </carrier-calculated-shipping-options> <shipping-packages> <shipping-package> <ship-from id="Store_origin"> <city></city> <region>OH</region> <postal-code>44321</postal-code> <country-code>US</country-code> </ship-from> <width unit="IN" value="1" /> <length unit="IN" value="1" /> <height unit="IN" value="1" /> <delivery-address-category>RESIDENTIAL</delivery-address-category> </shipping-package> </shipping-packages> </carrier-calculated-shipping> </shipping-methods> <request-buyer-phone-number>true</request-buyer-phone-number> <merchant-calculations> <merchant-calculations-url>https://www.conspicuouschick.com/zencart/googlecheckout/responsehandler.php</merchant-calculations-url> <accept-merchant-coupons>true</accept-merchant-coupons> <accept-gift-certificates>false</accept-gift-certificates> </merchant-calculations> <tax-tables merchant-calculated="false"> <default-tax-table> <tax-rules> <default-tax-rule> <shipping-taxed>true</shipping-taxed> <rate>0.0625</rate> <tax-area> <us-state-area> <state>OH</state> </us-state-area> </tax-area> </default-tax-rule> </tax-rules> </default-tax-table> <alternate-tax-tables> <alternate-tax-table standalone="false" name="Taxable Goods"> <alternate-tax-rules> <alternate-tax-rule> <rate>0.0625</rate> <tax-area> <us-state-area> <state>OH</state> </us-state-area> </tax-area> </alternate-tax-rule> </alternate-tax-rules> </alternate-tax-table> </alternate-tax-tables> </tax-tables> <rounding-policy> <mode>HALF_EVEN</mode> <rule>PER_LINE</rule> </rounding-policy> </merchant-checkout-flow-support> </checkout-flow-support> </checkout-shopping-cart>

XML sent:

<?xml version="1.0" encoding="UTF-8"?> <error xmlns="http://checkout.google.com/schema/2" serial-number="70314ae6-941f-45e2-853f-3e1e96c1e2c4"> <error-message>Carrier calculated shipping options have not been provided. Must specify the carrier and delivery type.</error-message> </error>

If the error message is not from Google Checkout (meaning you don't see the google checkout page), go to your zencart cache directory and bring up the most recent .log file and provide it here. Also there is a google checkout generator PROVIDED with Google Checkout in the admin panel. Not sure you should be using one provided by someone else.

I used the shipping generator PROVIDED with google checkout. Where would there be another one??

6 Oct 2010, 12:23 PM
#3469
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

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

I have google checkout installed and working, I only use UPS for shipping, but want to add USPS for military apo only. I have created a zone but it doesn't work with google and show a message USPS shipping is not configured. I tried to add USPS to shipping method php, that didn't help do you need special code for zone shipping?
Thank you

6 Oct 2010, 3:39 PM
#3470
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

sham:

I have google checkout installed and working, I only use UPS for shipping, but want to add USPS for military apo only. I have created a zone but it doesn't work with google and show a message USPS shipping is not configured. I tried to add USPS to shipping method php, that didn't help do you need special code for zone shipping?
Thank you

Post your shipping_methods.php code here so we can see how you've configured it. Did yo try the shipping method generator once you setup your zones in Zen Cart admin? Did the generator pick it up or did it fail there too?

6 Oct 2010, 5:03 PM
#3471
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

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

Thank you for helping used shipping method generator would only pick up if I did not select zone in USPS module. I added the USPS part of shipping method from the generator with no zone selected in shipping mod.

shipping methods php:

application/x-httpd-php shipping_methods.php
PHP script text

<?php /** * File: googlecheckout/shipping_methods.php file */ $mc_shipping_methods = array( 'ups' => array( 'domestic_types' => array( 'GND' => 'Ground', '3DS' => '3 Day Select', ), 'international_types' => array( 'STD' => 'Canada Standard', ), ), 'usps' => array( 'domestic_types' => array( 'PRIORITY' => 'Priority Mail', ), 'international_types' => array( ), ), 'freeshipper' => array( 'domestic_types' => array( 'freeshipper' => 'Free Shipper' ), 'international_types' => array( 'freeshipper' => 'Free Shipper intl' ), ), ); $mc_shipping_methods_names = array( 'ups' => 'United Parcel Service', 'usps' => 'United States Postal Service', 'freeshipper' => 'Free Shipper', ); ?>
6 Oct 2010, 5:41 PM
#3472
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

If you're truly using zone as a shipping option you're going to need these two sections:

 'zones' => array(
                                    'domestic_types' =>
                                      array(
                                          'zones' => 'Zones Rates'
                                           ),

                                    'international_types' =>
                                      array(
                                          'zones' => 'Zones Rates intl'
                                           ),
                                        ),

and this as part of your shipping method names otherwise it won't show up on GCO side.

'zones' => 'Zones',
6 Oct 2010, 5:45 PM
#3473
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

sham:

I have google checkout installed and working, I only use UPS for shipping, but want to add USPS for military apo only. I have created a zone but it doesn't work with google and show a message USPS shipping is not configured. I tried to add USPS to shipping method php, that didn't help do you need special code for zone shipping?
Thank you

I think I am reading what you're trying to do wrong. By zone you mean a shipping zone as in location NOT shipping method? If that's what you're trying to do, then my last post is not necessary.

Is the zone you defined (if it's APO) working on your site for regular Zen Cart?

6 Oct 2010, 6:47 PM
#3474
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

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

UPS does not ship to an APO, so I want to add usps with a zone only for apo address. So I went to location/taxes and created a zone with the military APO's. I can get a quote when I turn google off, but with google turned on and clicking checkout you get an error that the cart has sent information containing and error.
I tried this shipping method php but had the same problem.

application/x-httpd-php shipping_methods.php
PHP script text

<?php /** * File: googlecheckout/shipping_methods.php file */ $mc_shipping_methods = array( 'ups' => array( 'domestic_types' => array( 'GND' => 'Ground', '3DS' => '3 Day Select', ), 'international_types' => array( 'STD' => 'Canada Standard', ), ), 'usps' => array( 'domestic_types' => array( 'PRIORITY' => 'Priority Mail', ), 'international_types' => array( ), ), 'freeshipper' => array( 'domestic_types' => array( 'freeshipper' => 'Free Shipper' ), 'international_types' => array( 'freeshipper' => 'Free Shipper intl' ), ), 'zones' => array( 'domestic_types' => array( 'zones' => 'Zones Rates' ), 'international_types' => array( 'zones' => 'Zones Rates intl' ), ), ); $mc_shipping_methods_names = array( 'ups' => 'United Parcel Service', 'usps' => 'United States Postal Service', 'freeshipper' => 'Free Shipper', 'zones' => 'Zones', ); ?>
6 Oct 2010, 7:19 PM
#3475
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

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

Update...

USPS has updated their APO codes, once I edited them in "zones" everything seems to work using your update for the shipping methods. Thank you so much for your help. You can view them at the link below.
http://www.usps.com/ncsc/lookups/usps_abbreviations.html

6 Oct 2010, 10:35 PM
#3476
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
944
Plugin Contributions:
3

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

conspicuouschick:

XML received:

XML sent:

<?xml version="1.0" encoding="UTF-8"?> <error xmlns="http://checkout.google.com/schema/2" serial-number="70314ae6-941f-45e2-853f-3e1e96c1e2c4"> <error-message>Carrier calculated shipping options have not been provided. Must specify the carrier and delivery type.</error-message> </error>

Sorry for not answering this sooner. Can you check your ZenCart Admin panel and tell me what the calculations are?

6 Oct 2010, 11:44 PM
#3477
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

sham:

Update...

USPS has updated their APO codes, once I edited them in "zones" everything seems to work using your update for the shipping methods. Thank you so much for your help. You can view them at the link below.
http://www.usps.com/ncsc/lookups/usps_abbreviations.html

Thanks for the feedback. When your time permits you might want to check the USPS thread and see if this information about update is there because if it's not, it should probably be just so people are aware of these code changes. Not really sure if this affects Zen Cart shipping module or not (I haven't tested APO orders lately) but it's something worth checking into.

7 Oct 2010, 8:59 PM
#3478
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

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

Hey All,
Just installed GCO on 1.3.9g and it sort of works. Does send the cart to google and they do take your money, gives an option to return to merchant and on return I'm at the checkout_success page with no order details and there's no order logged in the admin.

Have applied this fix:http://www.zen-cart.com/forum/showpost.php?p=876137&postcount=106

tried again with the same result.

Thanks in advance,
John

8 Oct 2010, 7:55 AM
#3479
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
944
Plugin Contributions:
3

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

Can you check your ZenCart Admin Panel > Modules > Payment > Google Checkout for the following option: **.htaccess Basic Authentication Mode **and please tell me if that is set to true or false. In addition, did you create the .htaccess and .htpasswd files for your /googlecheckout/ directory.

8 Oct 2010, 3:10 PM
#3480
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

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

In the admin > modules > payment GCO htaccess is set to False. I have not used htpassword on the GCO dir, should I?

Thanks,
John