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,597

Results 461 to 480 of 3,921
This thread is locked. New replies are disabled.
29 Dec 2006, 06:20
#461
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

BBG:

GldRush98: For me, the admin portion of GCO 1.0.5 worked properly right from the start, without any modification to that area. Perhaps there was a change in 1.0.5 that resolved your 1.0.4 issue? <shrug>

I have GCO 1.0.5 up and running on a live site (it's my only payment option) and have processed orders without any problem. I needed to make a few changes to get it working with calculated USPS shipping (and to offer more than 1 shipping choice), but I don't believe much (if anything) needed to be changed to get the table rate working.

I can try to help if you have any 1.0.5 related issues that I've run into, but I don't think I'll be much help in 1.0.4 since I'm not running that version.

Shawn

What did you do to make USPS shipping work? Can you elaborate? I am testing GCO1.05 on ZC 1.36 and everything pretty much works without having to do anything special (orders showing up correctly in ZC admin, and when updating order status in admin, it is reflected in seller's Google checkout account as well as buyer's account). Major problem is: shipping is still not working. I use USPS but even after I put the "fix" ropu recommended a few posts back in responsehandler.php, I am still getting the same number ($15.40) for all USPS shipping options.

29 Dec 2006, 06:33
#462
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

Another thing I want to mention: I found my response_message.log (and the error log as well) is wide open to the world. Whoever wants to see it just needs to enter

https://mycompany.com/googlecheckout/response_message.log

If the site goes live I'd be worried. I guess I could do something from Apache side to prevent this, but there should be a standard recommendation in the README how to secure the files.

29 Dec 2006, 17:00
#463
malka avatar

malka

New Zenner

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

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

I have installed GC1.0.5, and then reverted to some older files from 1.0.4 as described above because I use flat rate shipping. My server does not have getallheaders() defined. I still get the error message about "headers['Authorization'] is NULL" using the newest responsehandler.php so I still need to comment out the two sections. I do not know what is causing this behavior.

Once I went live with google checkout, I got an email from Google that my account would be suspended if I did not put a button for the gift certificate items that shows that those items are not available for Google Checkout. I don't know if that means that if there is a gift certificate in a shopping cart, then I would also need the disabled button in the shopping cart as well. I ended up taking down gift certificates as they are rarely purchased anyway.

When viewing an empty shopping cart, I get the normal message that the shopping cart is empty, followed by Featured Products and whatever else normally follows, and at the bottom it says "-Or use-" followed by a button for Google checkout not available for this purchase.

29 Dec 2006, 17:36
#464
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)

malka:

I have installed GC1.0.5, and then reverted to some older files from 1.0.4 as described above because I use flat rate shipping. My server does not have getallheaders() defined. I still get the error message about "headers['Authorization'] is NULL" using the newest responsehandler.php so I still need to comment out the two sections. I do not know what is causing this behavior.

I believe that the 1.0.5 responsehandler.php does not even have the sections that you commented out. Double-check the version of the file you have installed. It sounds like you are using 1.0.4 of responsehandler.php.

29 Dec 2006, 17:40
#465
malka avatar

malka

New Zenner

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

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

I am commenting out the equivalent sections in the 1.0.5 response handler that involve the error message:

//Parse the http header to verify the source
/* if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}
*/

and

/*
if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("Line 127: merchant_id or merchant_key does not match.\n");
exit(1);
}
*/

29 Dec 2006, 20:12
#466
gldrush98 avatar

gldrush98

New Zenner

Join Date:
Dec 2006
Posts:
10
Plugin Contributions:
0

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

dhan99:

What did you do to make USPS shipping work? Can you elaborate? I am testing GCO1.05 on ZC 1.36 and everything pretty much works without having to do anything special (orders showing up correctly in ZC admin, and when updating order status in admin, it is reflected in seller's Google checkout account as well as buyer's account). Major problem is: shipping is still not working. I use USPS but even after I put the "fix" ropu recommended a few posts back in responsehandler.php, I am still getting the same number ($15.40) for all USPS shipping options.

To get the shipping to work I had to get the entire merchant callback function re-written. The one in there is pretty useless as it doesn't properly use zen cart's functions.

Try replacing your responsehandler.php file with the one I've attached here and see if GCO will pull in the correct shipping rates then. :lamo:

30 Dec 2006, 05:13
#467
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

GldRush98:

To get the shipping to work I had to get the entire merchant callback function re-written. The one in there is pretty useless as it doesn't properly use zen cart's functions.

Try replacing your responsehandler.php file with the one I've attached here and see if GCO will pull in the correct shipping rates then. :lamo:

Thanks very much but unfortunately it does not work for my setup. I have GCO 1.0.5 which does not have the getallheaders() function (neither is it provided by the server) so I added the definition of that function from 1.0.4 code. But then I got that Authorization NULL error.

So, I guess I will need a little bit more help ... Did you start from GCO 1.04 or 1.05? What other files did you have to change to make it work?

30 Dec 2006, 20:19
#468
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)

I've upgraded to 1.3.7.

I've found that , if you want to use PayPal Express checkout too, you will have to do a bit of merging the GoogleCheckout code into the new versions of the 3 template files found in includes\templates\YOUR_TEMPLATE\templates. All of the 1.3.7 versions of those files have PayPal Express modifications in them. I found it easier to modify tpl_login_default.php and tpl_shopping_cart_default.php from the new versions by adding the GCO code. With the tpl_checkout_payment_default.php it was easier to add the PayPal Express code as it was better documented.

It appears that I have both checkout modules working together.

30 Dec 2006, 21:19
#469
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

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

Has anyone been able to get table rates working with international orders? It works fine for orders in the USA, but if you try to put in a country outside GCO says I don't ship to that country.

31 Dec 2006, 03:46
#470
bbg avatar

bbg

New Zenner

Join Date:
Dec 2006
Posts:
13
Plugin Contributions:
0

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

GldRush98: Glad to hear you have GCO 1.0.5 working properly! I'm sorry for not responding, I assumed I'd have Internet access over the holidays while I was away, unfortunately that was not the case

dhan99: How I have it set up is most likely different that what you want, I currently have it set up to offer only Priority Mail shipping unless the shopping cart contains all books- then I offer Media Mail and Priority Mail as shipping options. Since I only offer a second shipping method in certain cases, I had to hack and slash my way through a few php files- and left an ugly mess.

I'm going to check out ropu's latest fix and GldRush98's responsehandler on a fresh 1.0.5 yet this extended weekend to get multiple USPS options working w/o my hacks for Media Mail. I'll report back my progress and try my best to take notes. :)

Shawn

31 Dec 2006, 07:09
#471
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

BBG:

GldRush98: Glad to hear you have GCO 1.0.5 working properly! I'm sorry for not responding, I assumed I'd have Internet access over the holidays while I was away, unfortunately that was not the case

dhan99: How I have it set up is most likely different that what you want, I currently have it set up to offer only Priority Mail shipping unless the shopping cart contains all books- then I offer Media Mail and Priority Mail as shipping options. Since I only offer a second shipping method in certain cases, I had to hack and slash my way through a few php files- and left an ugly mess.

I'm going to check out ropu's latest fix and GldRush98's responsehandler on a fresh 1.0.5 yet this extended weekend to get multiple USPS options working w/o my hacks for Media Mail. I'll report back my progress and try my best to take notes. :)

Shawn

Happy New Year, Shawn. I just took a closer look at the responsehandler.php file from GldRush98 and I don't think it would work correctly. It seems to me $total_weight in process_merchant_calculation_callback() would need to be declared global in order for it to be picked up in the shipping function. Also, the $total_weight calculation assumes product_id's can be found in root/shopping-cart/items/item/merchant-item-id entry in the XML from Google, but in all the XML I've seen so far, the merchant-item-id entry simply doesn't exist and the product_id's can be found only in root/shopping-cart/merchant-private-data/product-data. Is it that Google API has changed at some point? Does anybody know? Logically one would think there should be a "merchant-item-id" inside <item>, which corresponds to product_id in ZenCart, but in reality it is simply not there. So I guess we will need to parse the ID's from product-data.

31 Dec 2006, 08:23
#472
bbg avatar

bbg

New Zenner

Join Date:
Dec 2006
Posts:
13
Plugin Contributions:
0

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

Ok, I wrote down the steps I took to get multiple USPS shipping options working for me. I DID NOT try it with other non-USPS shipping modules, so your mileage may vary. I should note, I tried GldRush98's responsehandler.php, but as a direct replacement, it did not work. I also tried roku's fix, but that did not work for me either.

Here's the steps I took:

  1. Installed fresh ZC 1.3.6
  2. Installed fresh GCO 1.0.5 (overwriting any existing ZC files)
  3. Modified* includes/modules/payment/googlecheckout.php*
  4. Added Media Mail in array
  5. Commented out Bound Printed Material and Library
  6. Note: I moved the ")," at end of Library line to new uncommented line
  7. ZC Admin->Modules->Shipping->USPS->Install
  8. Entered in Web Tools User ID
  9. Changed Shipping methods (only left express, priority, first class, parcel and media selected)
  10. ZC Admin-> Uninstalled all other shipping modules
  11. ZC Admin->Modules->Payment->GoogleCheckout->Install
  12. Entered Merchant ID/Key
  13. Set fallback prices for shipping methods
  14. ZC Admin->Configuration->Postal Code
  15. Set Postal Code
  16. ZC Admin->Catalog->Categories/Products
  17. Added new test category and test products
  18. sandbox.google.com Admin->Settings->Integration
  19. Set API Callback URL
  20. TEST #1
  21. Went to new store front-end, added test product (weight was 1lb) to cart
  22. Clicked Estimate Shipping button:
    Express - $25.50
    Priority - $5.60
    Parcel Post - $5.35
    Media Mail - $3.03
  23. Clicked Google Checkout button
  24. Shipping & Handling dropdown on Google Checkout page contained:
    Express - $22.20
    First Class - $22.20
    Priority - $22.20
    Parcel Post - $22.20
    Media Mail - $22.20
  25. None of the numbers match and First Class shouldn't be available!
  26. Modified googlecheckout/responsehandler.php (line 353)
    changed: ```
    global $googlepayment, $order, $db;
   to: ```
global $googlepayment, $order, $db[B], $total_weight[/B];
  1. TEST #2
  2. Shipping & Handling dropdown NOW contains:
    Express - $25.50
    First Class - $25.50
    Priority - $25.50
    Parcel Post - $25.50
    Media Mail - $25.50
  3. At least one of the numbers match but still not right, and it's still showing First Class as available!
  4. Modified googlecheckout/responsehandler.php (lines 422-441)
    replaced:
if(isset($data[$root]['calculate']['shipping'])) {
		        $shipping = get_arr_result($data[$root]['calculate']['shipping']['method']);
		        foreach($shipping as $curr_ship) {
		         	$name = $curr_ship['name'];
		            
		            //Compute the price for this shipping method and address id
		        
			        list($a, $method_name) = explode(': ',$name);
		   
			        //print_r($order);
			        $methods_hash[$method_name][0]. $methods_hash[$method_name][2]."\n";
		            $quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
		            //print_r($shipping_modules);
		            $price = $quotes[0]['methods'][0]['cost'];
		            $shippable = "true";
		            //if there is a problem with the method, i mark it as non-shippable
		            if(!isset($quotes[0]['methods'][0]['cost']) || isset($quotes[0]['error'])) {
		            	$shippable = "false";
		            	$price = "0";
		            }

with:

if(isset($data[$root]['calculate']['shipping'])) {
		        $shipping = get_arr_result($data[$root]['calculate']['shipping']['method']);
                        //Let's just get all the quotes at once
		        $quotes = $shipping_modules->quote();
		        foreach($shipping as $curr_ship) {
		         	$name = $curr_ship['name'];
		         	list($a, $method_name) = explode(': ',$name);
		         	$quote_id=0;
                        // Not all methods are returned, such as First Class if
                        // weight >13oz, so need to marked as not shippable below
					while (($quotes[0]['methods'][$quote_id]['id'] != $methods_hash[$method_name][0]) && $quote_id<count($quotes[0]['methods'])) {
						$quote_id++;
					}
		         	$price = $quotes[0]['methods'][$quote_id]['cost'];
					
					$shippable = "true";
 					if(!isset($quotes[0]['methods'][$quote_id]['cost']) || isset($quotes[0]['error'])) {
        				$shippable = "false";
        				$price = "0";
    				}
  1. TEST #3
  2. Shipping & Handling dropdown NOW contains:
    Express - $25.50
    Priority - $5.60
    Parcel Post - $5.35
    Media Mail - $3.03
  3. Finally, Google Checkout matches the Zen Cart shipping estimate!

I'm sure there's a more "programmatically correct" way to deal with it, unfortunately my PHP skills are lacking. Again, I have not tested it with other shipping modules enabled so it may not play nicely with others. Also, I didn't get a chance to try it out with tax so I'm not sure if it works with tax. I plan to have a look at that later.

Happy New Year!

Shawn

31 Dec 2006, 16:06
#473
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

BBG:

Ok, I wrote down the steps I took to get multiple USPS shipping options working for me. I DID NOT try it with other non-USPS shipping modules, so your mileage may vary. I should note, I tried GldRush98's responsehandler.php, but as a direct replacement, it did not work. I also tried roku's fix, but that did not work for me either.

Here's the steps I took:1. >

  1. Installed fresh ZC 1.3.6
  1. Installed fresh GCO 1.0.5 (overwriting any existing ZC files)
  1. Modified* includes/modules/payment/googlecheckout.php*1. >
  2. Added Media Mail in array
  1. Commented out Bound Printed Material and Library
  1. Note: I moved the ")," at end of Library line to new uncommented line
  1. ZC Admin->Modules->Shipping->USPS->Install1. >
  2. Entered in Web Tools User ID
  1. Changed Shipping methods (only left express, priority, first class, parcel and media selected)
  1. ZC Admin-> Uninstalled all other shipping modules
  1. ZC Admin->Modules->Payment->GoogleCheckout->Install1. >
  2. Entered Merchant ID/Key
  1. Set fallback prices for shipping methods
  1. ZC Admin->Configuration->Postal Code1. >
  2. Set Postal Code
  1. ZC Admin->Catalog->Categories/Products1. >
  2. Added new test category and test products
  1. sandbox.google.com Admin->Settings->Integration1. >
  2. Set API Callback URL
  1. TEST #11. >
  2. Went to new store front-end, added test product (weight was 1lb) to cart
  1. Clicked Estimate Shipping button:
  Express - $25.50
  Priority - $5.60
  Parcel Post - $5.35
  Media Mail - $3.03
  1. Clicked Google Checkout button
  1. Shipping & Handling dropdown on Google Checkout page contained:
  Express - $22.20
  First Class - $22.20
  Priority - $22.20
  Parcel Post - $22.20
  Media Mail - $22.20
  1. None of the numbers match and First Class shouldn't be available!
  1. Modified googlecheckout/responsehandler.php (line 353)

changed: global $googlepayment, $order, $db; to: ```
global $googlepayment, $order, $db[B], $total_weight[/B];

>
13. ****TEST #2****1. >
2. Shipping & Handling dropdown NOW contains:
>       **Express - $25.50**
>       First Class - $25.50
>       Priority - $25.50
>       Parcel Post - $25.50
>       Media Mail - $25.50
>
3. **At least one of the numbers match but still not right, and it's still showing First Class as available!** 
>
14. Modified *googlecheckout/responsehandler.php* (lines 422-441)
>   replaced:
> ```
if(isset($data[$root]['calculate']['shipping'])) {
                $shipping = get_arr_result($data[$root]['calculate']['shipping']['method']);
                foreach($shipping as $curr_ship) {
                     $name = $curr_ship['name'];
                    
                    //Compute the price for this shipping method and address id
                
                    list($a, $method_name) = explode(': ',$name);
           
                    //print_r($order);
                    $methods_hash[$method_name][0]. $methods_hash[$method_name][2]."\n";
                    $quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
                    //print_r($shipping_modules);
                    $price = $quotes[0]['methods'][0]['cost'];
                    $shippable = "true";
                    //if there is a problem with the method, i mark it as non-shippable
                    if(!isset($quotes[0]['methods'][0]['cost']) || isset($quotes[0]['error'])) {
                        $shippable = "false";
                        $price = "0";
                    }
```with:
> 
> ```
if(isset($data[$root]['calculate']['shipping'])) {
                $shipping = get_arr_result($data[$root]['calculate']['shipping']['method']);
                        //Let's just get all the quotes at once
                $quotes = $shipping_modules->quote();
                foreach($shipping as $curr_ship) {
                     $name = $curr_ship['name'];
                     list($a, $method_name) = explode(': ',$name);
                     $quote_id=0;
                        // Not all methods are returned, such as First Class if
                        // weight >13oz, so need to marked as not shippable below
                    while (($quotes[0]['methods'][$quote_id]['id'] != $methods_hash[$method_name][0]) && $quote_id<count($quotes[0]['methods'])) {
                        $quote_id++;
                    }
                     $price = $quotes[0]['methods'][$quote_id]['cost'];
                    
                    $shippable = "true";
                     if(!isset($quotes[0]['methods'][$quote_id]['cost']) || isset($quotes[0]['error'])) {
                        $shippable = "false";
                        $price = "0";
                    }
  1. TEST #31. >
  2. Shipping & Handling dropdown NOW contains:
  Express - $25.50
  Priority - $5.60
  Parcel Post - $5.35
  Media Mail - $3.03
  1. Finally, Google Checkout matches the Zen Cart shipping estimate!

I'm sure there's a more "programmatically correct" way to deal with it, unfortunately my PHP skills are lacking. Again, I have not tested it with other shipping modules enabled so it may not play nicely with others. Also, I didn't get a chance to try it out with tax so I'm not sure if it works with tax. I plan to have a look at that later.

Happy New Year!

Shawn

Yep, it seems to work correctly for me as well. Thanks very much for the detailed explanation. (And it is simpler to get $total_weight from _SESSION, as it is done in original v1.0.5 Google Checkout code, instead of trying to calculate from google XML.)

31 Dec 2006, 16:41
#474
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

I was hoping international shipping would work, but no. If address in buyer's google checkout account is not US location (I tried a UK address), when reaching the google checkout page there will be an error message saying "XXXX online store does not ship to this address." This is true even if I set to use flat rate only.

So does that mean international buyers cannot really use Google Checkout?

31 Dec 2006, 18:27
#475
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

dhan99:

I was hoping international shipping would work, but no. If address in buyer's google checkout account is not US location (I tried a UK address), when reaching the google checkout page there will be an error message saying "XXXX online store does not ship to this address." This is true even if I set to use flat rate only.

So does that mean international buyers cannot really use Google Checkout?

I just tried some bigger companies that use Google Checkout and found none of them seem to ship to that UK address (I am pretty sure that address itself is valid):

  • General Nutrition Centers does not ship to this address.
  • Buy.com does not ship to this address.
  • PETCO Animal Supplies, Inc. does not ship to this address.
  • Toys"R"Us & Babies"R"Us does not ship to this address.
    So is this a current Google Checkout limitation, despite their claim that "Google Checkout merchants can ship goods inside and outside the United States."? (see https://checkout.google.com/support/sell/bin/answer.py?answer=42871&topic=8664)
31 Dec 2006, 18:46
#476
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

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

dhan99:

I just tried some bigger companies that use Google Checkout and found none of them seem to ship to that UK address (I am pretty sure that address itself is valid):

  • General Nutrition Centers does not ship to this address.
  • Buy.com does not ship to this address.
  • PETCO Animal Supplies, Inc. does not ship to this address.
  • Toys"R"Us & Babies"R"Us does not ship to this address.

So is this a current Google Checkout limitation, despite their claim that "Google Checkout merchants can ship goods inside and outside the United States."? (see https://checkout.google.com/support/sell/bin/answer.py?answer=42871&topic=8664)

Try a canadian address - I'm sure they ship to Canada at least :P

31 Dec 2006, 21:33
#477
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

samad64:

Try a canadian address - I'm sure they ship to Canada at least :P

Nope. Tried a Canadian address and still got the same thing. I think those shops would gladly ship to Canadian addresses if the buyer choose one of their traditional checkout methods, not the fancy Google checkout. I guess it is a limitation for the time being. See http://code.google.com/apis/checkout/developer/index.html#internationalization

Maybe the limitation is such that if there is any shipping related tag in the initial shopping cart posted to google, and if the destination address (from buyer's Google account) is non-US, the buyer will see that "does not ship to this address" error. But what about flat-rate? What's the reason even a flat-rate cannot work for shipping outside US? I hope somebody can show us a work-around, such as flat international rate for all non-US destinations and USPS/Fedex/UPS for domestic ones....but on second thought, that probably won't work either (if my understanding of this limitation is correct): as long as shipping costs depend on ship-to address in any way, we are going to run into the same wall. So, can we reach the conclusion: if you want to ship outside the US, you cannot use Google Checkout?

31 Dec 2006, 22:46
#478
bbg avatar

bbg

New Zenner

Join Date:
Dec 2006
Posts:
13
Plugin Contributions:
0

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

dhan99:

Maybe the limitation is such that if there is any shipping related tag in the initial shopping cart posted to google, and if the destination address (from buyer's Google account) is non-US, the buyer will see that "does not ship to this address" error. But what about flat-rate? What's the reason even a flat-rate cannot work for shipping outside US? I hope somebody can show us a work-around, such as flat international rate for all non-US destinations and USPS/Fedex/UPS for domestic ones....but on second thought, that probably won't work either (if my understanding of this limitation is correct): as long as shipping costs depend on ship-to address in any way, we are going to run into the same wall. So, can we reach the conclusion: if you want to ship outside the US, you cannot use Google Checkout?

The workaround for international shipping appears to be to find out BEFORE the customer clicks the Google Checkout where it's being shipped to. If it's a non-US address, add the shipping fee as a shopping cart item and omit the shipping-methods block from the XML sent to Google Checkout.

01 Jan 2007, 07:08
#479
dhan99 avatar

dhan99

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

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

BBG:

The workaround for international shipping appears to be to find out BEFORE the customer clicks the Google Checkout where it's being shipped to. If it's a non-US address, add the shipping fee as a shopping cart item and omit the shipping-methods block from the XML sent to Google Checkout.

Yep, we could add a checkbox right underneath the Google Checkout button (if it is enabled), with a label saying "Check this box if you are shipping outside U.S.". And get some javascript in there so that the action of checking that box would trigger what you just said --constructing a new shopping cart with the shipping-methods block taken out and an additional shipping fee item added.

01 Jan 2007, 07:25
#480
bbg avatar

bbg

New Zenner

Join Date:
Dec 2006
Posts:
13
Plugin Contributions:
0

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

dhan99:

Yep, we could add a checkbox right underneath the Google Checkout button (if it is enabled), with a label saying "Check this box if you are shipping outside U.S.". And get some javascript in there so that the action of checking that box would trigger what you just said --constructing a new shopping cart with the shipping-methods block taken out and an additional shipping fee item added.

I was thinking of prompting the user when they first add an item to the shopping cart, something like "Please enter your shipping location so we can calculate shipping costs". Although, I'm not sure if that would violate Google's TOS. As a bonus, for US addresses, you could also send Google the calculated shipping values (instead of the fallback guesstimates) if you knew where it was being shipped to- although I've never seen the live callback timeout yet <knock on wood>.