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

Results 1,021 to 1,040 of 3,921
This thread is locked. New replies are disabled.
4 Apr 2007, 4:15 PM
#1021
chain_man avatar

chain_man

Zen Follower

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

Google Checkout module for ZC 1.3.x (beta)

Woodymon:

For testing purposes I removed the 'freeshipper' references from both arrays. So the only references in the two arrays were 'itemnational' and 'iteminternational'.

Then I submitted an order. This time the order went through!

After logging into Google Checkout server with the buyers sandbox account, I observed 'itemnational' was the only ship method displayed in the shipping dropdown.

The amount of time for the shipping dropdown to render in the browser was unexpectedly long, and I almost clicked on the submit order button before the shipping dropdown was displayed...not sure of the effect had I done so.

So far, so fair.

However the shipping amount displayed in the dropdown and added to the total was $0.00. Should have been $5.

Also the dropdown did not display "USPS Media Mail" label as expected. Likely need to tweak my array configuration to solve this last one.

But the $0 shipping amount, and having to remove 'freeshipper', and the performance issues are problems.

And as always your ideas are welcome.

Woody

The $0 shipping was probably the default value you have in your GCO Admin module. It was probably displayed because the connection timed out - as indicated by the long rendering time. That's what the default value is for. I think you indicated in a previous post that you had a place to enter a default value for itemnational while editing the GCO module in admin. I think that the dropdown display not showing "USPS Media Mail" is for the same reason. On mine it pulls that label from the mc_shipping_methods_names = array.

The display of only itemnational is logical as the test account you used most likely has a US address. Offering international shipping would not make sense.

I wonder if your duplicate free shipping was because the names you used in the domestic portion and the international portion of the freeshipper array were the same? ie: the 'freeshipper' => entries.

4 Apr 2007, 4:16 PM
#1022
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)

Woodymon:

And I was not get auto redirected back to the shop website as expected. Had to click the "Return to Shopping Center" link.

Woody

I have the same action. I think it might be the normal behavior. Or it might be because it was the sandbox and not production...?

4 Apr 2007, 7:48 PM
#1023
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)

Woody,

Please list the shipping options that you'd like to offer that you currently have installed in admin-module-shipping. Please indicate if the shipping module is stock or a contribution installed.

I will test them for you on my end. I think you array is messed up the way it is constructed.

Isaac.

4 Apr 2007, 8:43 PM
#1024
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)

chain_man:

The $0 shipping was probably the default value you have in your GCO Admin module. It was probably displayed because the connection timed out - as indicated by the long rendering time. That's what the default value is for. I think you indicated in a previous post that you had a place to enter a default value for itemnational while editing the GCO module in admin. I think that the dropdown display not showing "USPS Media Mail" is for the same reason. On mine it pulls that label from the mc_shipping_methods_names = array.
After I edited the array files to what was proposed by the shipping generator and also to match your previous post, and then removed freeshipper, no form field with a numeral zero or otherwise appeared adjacent to itemnational in the mod admin within Zen cart.

chain_man:

The display of only itemnational is logical as the test account you used most likely has a US address. Offering international shipping would not make sense. Of course ;-) That was one thing that worked correctly. Thought I emphasized that.

chain_man:

I wonder if your duplicate free shipping was because the names you used in the domestic portion and the international portion of the freeshipper array were the same? ie: the 'freeshipper' => entries.That's how freeshipper is configured in the stoick googglecheckout.php file and how the shipping gnerator output looked also. And most other arrays use the duplicate names for both the domestic and international types. And Zen Cart only knows the shipping mod name by 'freeshipper' as it is a shipping mod installed in Zen Cart by default, you should have it too, unless you uninstalled. Either way I need freeshipping to both national and international folks.

This kind of configuration stuff is very difficult to describe via the forum.

Thanks for all ideas,
Woody

4 Apr 2007, 8:54 PM
#1025
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)

BlessIsaacola:

Please list the shipping options that you'd like to offer that you currently have installed in admin-module-shipping. Please indicate if the shipping module is stock or a contribution installed.

I will test them for you on my end. I think you array is messed up the way it is constructed.

Woodymon:

  1. I have only three shipping modules installed:
  • freeshipper
  • iteminternational
  • itemnational

Those are the three I have and want installed. The first is a Zen Cart default. The other two are the same as from the mod below.

Woodymon:

For reference, the "National and International Per Item Shipping" shipping mod available in the download area replicates the exact same shipping configuration steps I've employed. See here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_51&products_id=334

Thanks for testing,
Woody

4 Apr 2007, 8:57 PM
#1026
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)

chain_man:

I have the same action. I think it might be the normal behavior. Or it might be because it was the sandbox and not production...?
Doug, How does it behave in your production shop? Well I guess you would need to order something from yourself to test.

Woody

4 Apr 2007, 9:24 PM
#1027
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)

Further on up in googlecehckout.php ln 50-53

$this->shipping_support = array("flat", "item", "table",  'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
     
    $this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
    $this->ship_flat_ui = "Standard flat-rate shipping";

Maybe I need to edit these entries also?

Woody

4 Apr 2007, 10:23 PM
#1028
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)

How do you test Google Checkout international shipping? Does Google allow you to set-up a second Buyers sandbox account, using a fictional foreign address? Maybe a question for Google support but wondering how you all do it.

Woody

4 Apr 2007, 10:35 PM
#1029
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)

Has anyone been able to get international (USPS) shipping options working?

I want GC to be an option for my international customers.

4 Apr 2007, 10:39 PM
#1030
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)

Woodymon:

Further on up in googlecehckout.php ln 50-53

$this->shipping_support = array("flat", "item", "table", 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');

$this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
> Maybe I need to edit these entries also?
Follow-up: I removed 'freeshipper' from the two array lists above and kept 'freeshipper' in the two mc_ arrays. And resumitted an order. Same error as before.

<error-message>Duplicate shipping name FREE SHIPPING! found.</error-message>


What we need is very clear step-by-step instructions/documentation on how to support a 'custom' shipping module. Since 'flexible' shipping module support is very new to the Google Checkout module, and the code framework is still being revised, I can understand why documentation takes second priority. But on the other hand how can we test if there is no documented procedures to follow? A paradigm if you will.

Maybe provide a clear step-by-step example for one or two shipping modules only. A good candidate for an example are the basic itemnational/iteminternational ship modules which I'm trying make work nice with Google Checkout :wink2:

Woody
4 Apr 2007, 10:57 PM
#1031
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)

Woodymon:

Doug, How does it behave in your production shop? Well I guess you would need to order something from yourself to test.

Woody

You're right...it's hard to test without buying something. Whatever the behavior, I would guess it's part of the Google end of things rather than the zen part.

4 Apr 2007, 11:03 PM
#1032
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)

Woodymon:

Maybe provide a clear step-by-step example for one or two shipping modules only. A good candidate for an example are the basic itemnational/iteminternational ship modules which I'm trying make work nice with Google Checkout :wink2:
Woody

What an amazing coincidence!!

Woodymon:

Further on up in googlecehckout.php ln 50-53

Code:
$this->shipping_support = array("flat", "item", "table", 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');

$this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
$this->ship_flat_ui = "Standard flat-rate shipping";Maybe I need to edit these entries also?

I don't know quite how these settings work. May ropu can enlighten us after he recovers from his holiday...

5 Apr 2007, 3:38 AM
#1033
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)

While continuing to troubleshoot my Google Checkout shipping config issues, I am also observing some peculiar order processing behaviors in ZC admin.

  1. When I attempted to submit an order status "update" via ZC admin, with standard boilerplate text entered into the order comments box, and clicked the "update" button I observed error:
Error 400: Bad request. The parameters passed to the service did not match as expected. The exact error is returned in the XML response.

When I inserted a very brief three word comment the update submitted correctly.

I observe no errors in response_error.log.

However I observe in response_message.log

Messages cannot be longer than 255 characters.

Why the limitation?

My same boilerplate test works with other payment modules including PayPal.

  1. The original order submission email was delivered to admin email address and to customer email address.

However the order "update" email message was not delivered to the admin address, only to the customer email address. I had both the 'Notify Customer" and "Append Comments' checkboxes checked. (copies of the order update emails should be delivered to admin address as well as to the customer, or at least an option provided to enable/disable delivery of order updates to admin email).

  1. "Shipper Tracking Information" form field with tracking number and shipper type dropdown displays at bottom of orders page, even though not employing third party or MC type shipping. Would like to be able to disable the display of this info on admin orders form (so helpers won't get confused).

  2. ALL Google Checkout server responses are displayed in the comments column. This info is accessible to customers via their MyAccount link (that is if they had a password initialized for them to allow them to log into Zen Cart). Thinking best if much of this info is displayed on the admin orders page (like PayPal IPN does) and not accessible to customer.

  3. On a related note if no shipping tracking info is submitted in order status update this is info is indicated in server response comments.

04/03/2007 12:23:17 	True 	Shipped 	
Shipping Tracking Data:
Carrier:
Tracking Number: 

Would like option to be able to disable inclusion of this info in the server response messages/comments. We will manually include tracking info in order status update comments as needed.

  1. Also the time in message above indicates time for web hosting provider. When possible would prefer time based on timezone location of shop be applied. Otherwise all the various order update comments get out of synch in listing on admin orders page. I will provide more detailed observations on this later.

  2. What happens if customer creates a ZC account. And then later checks out though Google Checkout (not logged into ZC) and submits an order thru GC using the same email address which was used to register ZC account?

Is a second ZC account with that same email addy created in ZC admin? Will customer whom created the ZC account be able to login to ZC and view the details of the GC order?

And then vice versa, if no ZC account is created, customer submits order thru GC. This auto creates a ZC account (but customer would not have a password). and then later attempts to sign up for ZC account. Does the customer see a message that an account with that email addy already exists? Can i click password forgotten link on login page to retrieve a password for an account created by GC? What are the validation issues and what should be expected behaviors here?

  1. If customer is logged into ZC account and clicks "Checkout" in main menu, browser is directed to step one page of standard ZC checkout procedure. That means they will miss opportunity to checkout via Google Checkout.

Just some casual observations. Even if GC is only suppose to be an "Express" checkout option for ZC, there are many interaction possibilities (permutations) between Zen Cart and Google Checkout to think about. Wrapping one's head around all the code and logic needed to deal with the possibilities must be mind numbing. I'm sure Ropu can infom us in detail.

Suggestions or comments on the above?

Woody

5 Apr 2007, 5:22 AM
#1034
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)

Can someone help me out here? I thought I had everything working, but I just encountered a problem.
I believe this is related to installing the GC module, as I wasn't having this problem before installing it.

If going through the regular checkout process, on the second step I get this error:

Parse error: syntax error, unexpected T_ELSE in /includes/templates/classic/templates/tpl_checkout_payment_default.php on line 147

This is what I have in that part of the file

<?php
    if (sizeof($selection) > 1) {

    // ** GOOGLE CHECKOUT **
      if($selection[$i]['id'] == "googlecheckout") 
        continue;
    // ** END GOOGLE CHECKOUT **
  ?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php   } ?>
<?php
    } else {
    	
?>

And this is what the original ZC stock file has

<?php
    if (sizeof($selection) > 1) {
        if (empty($selection[$i]['noradio'])) {
 ?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php   } ?>
<?php
    } else {
    	
?>

I really don't see what the problem is. However, when comparing the file to that posted here by chain_man, I see his doesn't have this line:

<?php   } ?>

Do I need to delete this line?

Thanks.

5 Apr 2007, 5:45 AM
#1035
apinkpony11 avatar

apinkpony11

Zen Follower

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

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

apinkpony11:

Hi Everyone,

Google has been working fine but recently (last few days) I have gotten a few "bad signature" type notices. I'm not sure what to do with these. When I click to find out more it shows me the whole xml cart that we sent them, and then a little xml they sent... not sure what to do with this.

Help appreciated. Thank you.

Don't let the little guy get left in the dust!

5 Apr 2007, 7:11 AM
#1036
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)

apinkpony11:

Don't let the little guy get left in the dust!
Ropu is on vacation until next week. I'm suspecting your issue is not something specific to the ZC mod but to Google Checkout service (but don't take my word for it as I don't know much).

Are you seeing any relevant entries in either your response_error.log or response_message.log?

I don''t recommend posting the info in your logs as they can contain personal info. But if you do post relevant sections, be sure to "obfuscate" first.

You might want to try posting in Google Checkout support forums on Google Groups (see below). Also contact Google support directly.

Link is in your Sellers account help area. Also here:
http://checkout.google.com/support/sell/bin/request.py
(then select "Technical issues and integrating with Google Checkout")

Merchant Help Center
http://checkout.google.com/support/sell/

Merchant Forum
http://groups.google.com/group/google-checkout-merchants-forum

Developers Forum
http://groups.google.com/group/google-checkout-developers-forum

(until ropu returns from holiday, posting in the last forum above may be your best bet.)

And as an extra bonus there is the "official" Google Checkout Blog
http://googlecheckout.blogspot.com/

Good luck.

Woody

5 Apr 2007, 8:49 AM
#1037
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:

If going through the regular checkout process, on the second step I get this error:
Below is what I'm using for that relevant portion of code and works fine:

<?php
  $radio_buttons = 0;
  for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
    if (sizeof($selection) > 1) {
// ** BOF Google Checkout **
      if($selection[$i]['id'] == "googlecheckout")
        continue;
// ** EOF Google Checkout **
        if (empty($selection[$i]['noradio'])) {
 ?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php   } ?>
<?php
    } else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
    }
?>

Woody

5 Apr 2007, 10:27 AM
#1038
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)

Hi, I've been asking in this thread about supporting "instant downloads". The responses I've received have appeared to indicate that Google Checkout does not support instant downloads

However I've been scanning through the Google Checkout forums for ideas, tips, solutions and workarounds. On the Merchants discussion forum I found this Q&A:

Subject: How can I redirect?

Question: How can I redirect a buyer to a download page right after receiving a payment?

Answer: You have to use the XML API and use the <continue-shopping-url> tag.

So this appears to indicate Google Checkout supports "instant downloads", does it not?.

Ropu, I know you have much on your plate with supporting other Zen Cart/Google Checkout features. But is "instant downloads" support something you plan to eventually (soon) integrate into your mod? If you need a tester for such functionality please let me know.

Thanks,
Woody

5 Apr 2007, 10:07 PM
#1039
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)

If you desire and request a feature in the Google Checkout for Zen Cart mod, sometimes it's good to know if such functionality is supported by Google Checkout.
Here's a posting board with the latest "wishlist".

New Feature Suggestions for Google Checkout
http://groups.google.com/group/google-checkout-developers-forum/web/new-feature-suggestions-for-google-checkout

Note the URL is a long one...

5 Apr 2007, 10:20 PM
#1040
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)

Woodymon:

Below is what I'm using for that relevant portion of code and works fine:

<?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <?php if (sizeof($selection) > 1) { // ** BOF Google Checkout ** if($selection[$i]['id'] == "googlecheckout") continue; // ** EOF Google Checkout ** if (empty($selection[$i]['noradio'])) { ?> <?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?> <?php } ?> <?php } else { ?> <?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?> <?php } ?>
> 
> Woody

Thanks :), that works too.