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

Results 1,141 to 1,160 of 3,921
This thread is locked. New replies are disabled.
16 Apr 2007, 1:28 AM
#1141
darkazrael avatar

darkazrael

New Zenner

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

Google Checkout module for ZC 1.3.x (beta)

I have the following set up as shipping options:

Modules Sort Order Action
Flat Rate flat
Free Shipping Options freeoptions
FREE SHIPPING! freeshipper
Per Item item 1
Per Unit perweightunit
Store Pickup storepickup
Table Rate table
United Parcel Service ups
United States Postal Service usps
Zone Rates zones

Only per item is enabled atm.

I am not sure what you are referring to about the generate button, could you give me a little more detail about that?

16 Apr 2007, 1:54 AM
#1142
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)

DarkAzrael:

I have the following set up as shipping options:

I am not sure what you are referring to about the generate button, could you give me a little more detail about that?

You did not post which version of the GC mod you have installed?

If the shipping modules are not installed in Zen Cart then the Google Checkout mod cannot see them when generating the correct shipping config for GC.

Did you not install the run the shipping generator script? Info on this subject is in the readme/installtion docs in latest version (1.3RC2).

Woody

16 Apr 2007, 2:16 AM
#1143
darkazrael avatar

darkazrael

New Zenner

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

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

I have 1.3RC1 installed, I can not find 1.3RC2. I am not sure which shipping script you are referring to, I don't see anything about it in the documentation. The link where I found the "latest version" : http://code.google.com/p/google-checkout-zencart/

Should I be getting it from somewhere else?

16 Apr 2007, 2:36 AM
#1144
darkazrael avatar

darkazrael

New Zenner

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

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

Found the latest beta version and reinstalled, it's working fine now. Thanks for the help!

16 Apr 2007, 3:31 AM
#1146
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:

Well it appeared this was working last eve, but now it appears not. If anyone has suggestions to repair my noob logic above, please do suggest.

I've posted a related more general question here.
http://www.zen-cart.com/forum/showthread.php?t=63446

Any knowledgeable PHP programmers out there with a tip?

Thanks,
Woody

16 Apr 2007, 7:03 AM
#1147
wildwayne avatar

wildwayne

New Zenner

Join Date:
Mar 2007
Location:
Medford, OR
Posts:
4
Plugin Contributions:
0

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

Can someone install Google Checkout on my Zen Cart Site?

16 Apr 2007, 10:07 AM
#1148
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)

Wildwayne:

Can someone install Google Checkout on my Zen Cart Site?

There is a "commercial help wanted" board where you can post your need.

But since the mod is still beta I recommend that unless you are familiar with shipping and payment module configuration, and editing templates, it is best to wait a while until both the mod and the checkout system matures. Otherwise you will be repeatedly paying someone to constantly upgrade for you. Just a thought.

Woody

16 Apr 2007, 10:43 AM
#1149
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

misty:

ROPU..http://200.69.205.154/~brovagnati/zen_demo2/
Add product to cart produces errors...

Thx misty

they are NO error, just debug info... the first is the shipping modules installed and the second the XML cart sent to google!

but thx for the remark, they shouldnt be there... :D

ropu

16 Apr 2007, 11:06 AM
#1150
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Woodymon:

ropu,

On the Zen Cart admin orders index page, a line item appears for each order, which includes the shipping method employed to process the order.

So in my installation "itemnational" or "iteminternational" or "free", should display for the shipping method.

However on the admin orders index page "table" is displayed as the "shipping method" when purchasing with Google Checkout.

Any suggestions on displaying the actual shipping module name instead? (as other payment modules do).

Thanks,
Woody
hi woody, true! i've never been aware of that issue... i'll fix it!

thx again!

ropu

16 Apr 2007, 11:18 AM
#1151
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Jay42:

I'm about ready to scrap this, but figured I'd give it one more shot....

I ran the Responsehandler test again and got these results:

I was encouraged by the fact my response time was far less than 3 seconds, so again I placed a sandbox order and got the default shipping rates - not the UPS rates. Then, I logged into my Merchant Sandbox and retreived the following error message:

I've read and re-read all the posts in this forum over and over again, and am really at a loss as to what is causing these errors.

I'm not a programmer and certainly no expert on the meaning of the results in the above test, so perhaps there is something you can tell me that can help me fix it???

Also, what I'd really like to know is....who are you, Ropu? Do you work for Google? I can't imagine you'd spend as much time on this mod as you seem to if you were doing it for free, or for a few Paypal donations.

The obvious reason that store owners want this mod installed is for the free charges until the end of the year. My average order is about $500, so the 2.5% savings I would experience equals $12.50 more in my pocket on just about every order I fill. That adds up. But I really can't become a Google Beta tester...I simply don't have the time....I have a business to run.

So if you do work for Google, Ropu, tell them you need help in getting a stable release to market for the Zen Cart community ASAP....a release that even a novice user can install effortlessly. If you are doing this from the kindness of your heart, and not getting paid, then please email me when you have a stable production version and I will Paypal you my donation. And please let us all know who you are.:lookaroun
hI jay

as u can see in the XML response, u have sent an invalid XML message. it seems that u didn't put any XML in the textarea. try adding the xml that the integration section shows u as an error and try again

thx

ropu

16 Apr 2007, 1:12 PM
#1152
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Woodymon:

Well it appeared this was working last eve, but now it appears not. If anyone has suggestions to repair my noob logic above, please do suggest.

Thanks,
Woody

woody, i use this code to detect virtual goods

    <?php
      if(MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $cart->get_content_type() != 'physical' ) {
        echo '<div class="warning">' . MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_VIRTUAL . '</div>';
      }
    ?>

hope this helps

ropu

16 Apr 2007, 1:29 PM
#1153
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Woodymon:

ropu,

On the Zen Cart admin orders index page, a line item appears for each order, which includes the shipping method employed to process the order.

So in my installation "itemnational" or "iteminternational" or "free", should display for the shipping method.

However on the admin orders index page "table" is displayed as the "shipping method" when purchasing with Google Checkout.

Any suggestions on displaying the actual shipping module name instead? (as other payment modules do).

Thanks,
Woody
Will be in RC2

thx

ropu

16 Apr 2007, 1:53 PM
#1154
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Woodymon:

  1. Regards to Google Checkout info posted to ZC admin orders page...

I observe ALL the responses from Google Checkout display in the comments area in Zen Cart admin orders page.

Keep in mind all info posted to the comments area is available to the customer if they log into their Zen Cart (via MyAccount) which is possible if an customer with an preexisting Zen Cart account submits an order through Google Checkout or if a new customer wants access to their order through Zen Cart... which will likely be the case when downloads are supported by Google Checkout.

So it would be best if the Google Checkout mod posted most of the responses to an area on the orders page which is only accessible to the admin. (similar to as the PayPal IPN payment mod does... display the data in an HTML table above the order comments area).

The only Google Checkout responses that should be displayed in the comments area is info that the customer should specifically have access to and would also likely be submitted to the customer through an email notification. That would include state changes from pending to processing (or other orders status changes such as canceled or refunded). (again just like the PayPal IPN mod does).

If you don't have PayPal IPN mod installed or not sure which I refer to please let me know and I can show you an example of what data PayPal data shows in the comment boxes (and thus is accessible by the customer) and what data is posted to the admin orders page (which is NOT accessible by the customer).

  1. On a related admin issue...

For an order submitted through Google Checkout I observe displayed in the first comment box on the ZC admin orders page "Buyer's Password: 34600848543"

If a customer already has a Zen Cart account, then checks out through Google Checkout with the same email address, it appears Google Checkout relates that order data to the preexisting Zen Cart account. If this is the case is the previous customer Zen Cart password overwritten with the new password created by Google Checkout, or does the pre-existing Zen Cart customer account password still hold true?

Also say if a customer whom never has set-up a Zen Cart account checks out with Google Checkout, and then later revisits the shop and decides to set-up a new account. How does that process work? Zen Cart would see an account was already set-up with that specific email address and thus not allow the customer to create a new Zen Cart account with that email address.

But the customer might not understand this and become confused. What is the mechanism in place to deal with such an issue. Maybe prompt customer to click on "password forgotten" link to obtain via email the account password created by Google Checkout.

And are there any security risks to consider here?

Hope this all makes sense.

Thanks,
Woody

woody, i dont have Paypal IPN, y u can mail me screenshoots would be nice :D

i've also added that if the user is a prexistance one, (he bought logged in Zencart), the User/pass line wont be shown, as his pass is not changed. (v1.3RC2 NOT beta)

Regarding the user creation, is inevitable to create one. This users are stored in google_checkout table for cross reference GC buyer id- zencart buyer id.

The password is the buyer number id. but created just the first time. if he logs in, and changed, that one will be preserved.

i he tries to create a user with his GC mail, he must prompt for a forgotten password... any other idea to get by passed this??

ropu

16 Apr 2007, 1:54 PM
#1155
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Woodymon:

ropu,

Here is some strangeness I'm observing while testing the mod in sandbox mode...

As a customer I add a single item to my shop cart then check out via Google Checkout. Then on the Google Checkout page I decide to not complete the transaction (for any reason) and then I close my browser window. Then I later revisit the shop. When I do, I unexpectedly observe the shopping cart sidebox is displayed. And the contents of the SC sidebox is "1 ea. - " with "Total $0.00". That is no actual product name is listed, just 1 each with no price and then a zero total.

This is strange as the shopping cart sidebox should not display when there were no items in the shop cart. It appears that Zen Cart is attempting to recall contents of the abandoned shop cart (when the Google Checkout order was not completed) but cannot. It's as if a 'ghost" non-item is still in the shopping cart.

But this does not become a real issue until I add an item to shop cart then proceed to the shopping cart page. At that point a yellow warning box appears stating the item in my shop cart is no longer available in inventory and has been deleted from my shopping cart.

Although this applies to the "ghost" item and not the item I just added to my shop cart, it is confusing nevertheless and not suppose to be occurring. A customer might think like I did that the message had to do with the item I just added to the shopping cart.

I installed the new Google Checkout mod on two different ZC 1.37 test shop installs and observe the same behavior. Anyone else able to replicate?

Woody

please post the step-by-step to reproduce it, and i'll test it

also tell me if u can do it in http://demo.globant.com/~brovagnati/zen_demo2/

thx

ropu

16 Apr 2007, 2:25 PM
#1156
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)

ropu:

woody, i use this code to detect virtual goods

<?php
  if(MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $cart->get_content_type() != 'physical' ) {
    echo '<div class="warning">' . MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_VIRTUAL . '</div>';
  }
?>

Thanks ropu,

Just tried that and this portion of the code
```php
$cart->get_content_type() != 'physical' 

causes the page to not fully load.

Error in web server error log is:

PHP Fatal error:  Call to a member function get_content_type() on a non-object in /home/myaccount/public_html/myshop/includes/templates/mytemplate/templates/tpl_product_info_display.php on line 130

Uncertain how to interpret "Call to a member function on a non-object"
Something to do with passing a parameter correctly and/or data type?

In /includes/classes/shopping_cart.php I see

class shoppingCart extends base {
    .
    .
    .
  function get_content_type($gv_only = 'false') {
    global $db;
    .
    .
    .
    if ($gv_only == 'true') {
      return $gift_voucher;
    } else {
      return $this->content_type;
    }
  }

Any ideas?

Thanks,
Woody

16 Apr 2007, 2:49 PM
#1157
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Woodymon:

Thanks ropu,

Just tried that and this portion of the code

$cart->get_content_type() != 'physical'

> 
> Error in web server error log is:
> ```
PHP Fatal error:  Call to a member function get_content_type() on a non-object in /home/myaccount/public_html/myshop/includes/templates/mytemplate/templates/tpl_product_info_display.php on line 130
```Uncertain how to interpret "Call to a member function on a non-object"
> Something to do with passing a parameter correctly and/or data type?
> 
> In /includes/classes/shopping_cart.php I see
> ```php
class shoppingCart extends base {
    .
    .
    .
  function get_content_type($gv_only = 'false') {
    global $db;
    .
    .
    .
    if ($gv_only == 'true') {
      return $gift_voucher;
    } else {
      return $this->content_type;
    }
  }
```Any ideas? 
> 
> Thanks,
> Woody

yes, sorry my mistake, i forgot to add this

```php
$cart = $_SESSION['cart'];

:D

btw, the error is saying that u are trying to call to a method on a variable that is not an object.
ropu

16 Apr 2007, 2:57 PM
#1158
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

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

Woodymon:

Hi ropu-

Your 1.3-RC2beta update fixed my shipping issues!!!!! Thank you!!!!

With that said below are some suggestions for mod improvement (in order of priority):

  1. Email formatting issues for messages sent to both shop admin and customer, accepting email in text format only. (test email format support is a MUST!)

  2. Email addressing issues (customer should at least be able to reply to the "Order Receipt" message and thus the reply to address should be the shop admin email address).

  3. On the last Google Checkout page which displays after an order is processed, provide an option for a link and a redirect to a Zen Cart checkout success page.

  4. Support for "split login page" functionality built into Zen Cart 1.37.

Other suggestions:

  • a few additional clarifications/edits in the mod docs
  • clean-up of "shipping methods generator" readme and more comprehensive explanation/example on how to use the "shipping methods generator" is needed.

I will PM you my suggestions regards to the above.

Also is it possible to generate a wishlist in this thread for features we would like to see implemented in the Google Checkout for Zen Cart mod. Of course with an understanding of the current limitations and status of the Google Checkout system itself.

Thanks again for making shipping happen. Now we can test the mod more thoroughly ;-)

Woody

woody, the email format is a google issue, i've mail them with ur last suggestions.

yes, u are right bout the shipping_genaration readme, but know that i wrote it in 5 mins after finishing on friday, i'll update it.

regarding the wish list, i PM dr Byte asking if we can have a forum just like pay pal, where inside it we can have different thread (as u suggested me :D), one could be that wish list.

im waiting for a positive answer from him :P

ropu

16 Apr 2007, 3:43 PM
#1159
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)

ropu:

yes, sorry my mistake, i forgot to add this

$cart = $_SESSION['cart'];

> 
> btw, the error is saying that u are trying to call to a method on a variable that is not an object.
> ropu

getting closer...I think.

I used this code
```php
<?php
	$cart = $_SESSION['cart']; 
	if ( MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $cart->get_content_type() != 'physical' ) {
		echo '<div class="warning">' . MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_VIRTUAL . '</div>';
      }
?>

Then I visited an eBook product page. The page rendered as normal but the expected warning text did not display.

So after:
$cart = $_SESSION['cart'];

For debugging I added:
echo $cart;

And I observed:

Object id #4

Any ideas?

Thanks,
Woody

16 Apr 2007, 3:48 PM
#1160
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

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

Thank you ropu and everyone for their diligence in developing GCO for ZC. I gave up testing around page 30, but have been tuning in to these forums ever since.

since ZC as of 1.3.7 has Paypal Express Checkout code in the core files, I wanted to suggest that in the next version of GCO be compatible with the existing PPE (have both PPE and GCO working at the same time). As it stands now, there is merging of some template files, to get both working....which isn't a big deal (as a computer novice it will take me a few days to do correctly or copy chain_man's code (thanks!) )....but I don't think I can stay on-top of merging files, with every ZC/paypal express update.

I have learned a great deal about ZC, mods and editing code in these last few months, but think when it comes to accepting payments, this should be along with paypal part of the core/base files, and not a mod left to a few hard working people....but fully supported by the ZC developers and included in each new ZC release.