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

Results 781 to 800 of 3,921
This thread is locked. New replies are disabled.
5 Mar 2007, 9:48 PM
#781
ropu avatar

ropu

Zen Follower

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

Google Checkout module for ZC 1.3.x (beta)

blumcafe:

Ropu,
Not sure I understand. I had 1.0.4r installed before. I reversed modifications by 1.0.4r before I installed 1.2RC3. I guess I can go back through the install docs for 1.2RC3 to make sure everything is ok. Also, I have seen mention here of a GC 1.5. What is that? Is it another checkout module version for GC? If so, where is it located? I want to make sure I am using most up to date version.
Thanks

Blum, the latest version is 1.2RC3

there is no 1.5, is 1.0.5.

ropu

6 Mar 2007, 2:34 PM
#782
vovich avatar

vovich

New Zenner

Join Date:
Mar 2007
Posts:
2
Plugin Contributions:
0

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

Hi !
I installed Google Checkout module for Zen Cart and Created sandbox account and have some troubles..
It seems to Google Checkout module not working!!
Could U explain how that module should work
There are 4 steps for creating order:

index.php?main_page=shopping_cart – shopping cart. I inserted code
// ** GOOGLE CHECKOUT **
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
// ** END GOOGLE CHECKOUT **
But it will work only when My shopping cart is empty. Then i push the button go to checkout.
And redirect to the page
index.php?main_page=checkout_shipping - type shipping info. Then push continue.

 index.php?main_page=checkout_payment . Inserted the code


 // ** GOOGLE CHECKOUT **
   if($selection[$i]['id'] == "googlecheckout")  
     continue;
 // ** END GOOGLE CHECKOUT **

And I should select a payment method. I activate only google checkout and Check\money modules at the admin part. So i see only Check/Money Order payment method at that page. Where google checkout? Should i activate any more modules for working with google checkout? How it work?
When Google Checkout module send data to the Google Checkout Account? How I could check It ? Thank You so much for Your answerers.

6 Mar 2007, 4:47 PM
#783
mutabor avatar

mutabor

New Zenner

Join Date:
Mar 2007
Posts:
1
Plugin Contributions:
0

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

vovich:

Hi !
I installed Google Checkout module for Zen Cart and Created sandbox account and have some troubles..
It seems to Google Checkout module not working!!
Could U explain how that module should work
There are 4 steps for creating order:

index.php?main_page=shopping_cart – shopping cart. I inserted code
// ** GOOGLE CHECKOUT **
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
// ** END GOOGLE CHECKOUT **
But it will work only when My shopping cart is empty. Then i push the button go to checkout.
And redirect to the page
index.php?main_page=checkout_shipping - type shipping info. Then push continue.

 index.php?main_page=checkout_payment . Inserted the code


 // ** GOOGLE CHECKOUT **
   if($selection[$i]['id'] == "googlecheckout")  
     continue;
 // ** END GOOGLE CHECKOUT **

And I should select a payment method. I activate only google checkout and Check\money modules at the admin part. So i see only Check/Money Order payment method at that page. Where google checkout? Should i activate any more modules for working with google checkout? How it work?
When Google Checkout module send data to the Google Checkout Account? How I could check It ? Thank You so much for Your answerers.

It seems I have the same problem. Please advice :cry:

7 Mar 2007, 12:43 AM
#784
dave_wilson avatar

dave_wilson

New Zenner

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

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

This is the thread suggested in the version 1.2 RC4 rev1 of the readme file, so I hope that it is the right place to post since the last here was some months ago.

Having installed the new version I am getting the following error messages instead of the Google Checkout button in ZenCart:

Warning: main(googlecheckout/gcheckout.php): failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7

Warning: main(googlecheckout/gcheckout.php): failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7

Warning: main(googlecheckout/gcheckout.php): failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7

Warning: main(): Failed opening 'googlecheckout/gcheckout.php' for inclusion (include_path='.:/usr/local/4admin/apache/lib/php') in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7

It seemed to work fine with the older version only sans the new shipping modules.

I also do not get a blank page at the API callback URL, but instead get NOT FOUND message for requested URL.

I note that the Installation Notes for this version shows two files to be installed as such:

YOUR_ZENCART_FOLDER/admin/includes/htaccess.php
YOUR_ZENCART_FOLDER/admin/includes/multisock.html

While the downloaded file positioning would seem to show them as:

YOUR_ZENCART_FOLDER/admin/htaccess.php
YOUR_ZENCART_FOLDER/admin/multisock.html

Which positioning is correct?

7 Mar 2007, 3:27 AM
#785
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)

ropu:

Bless, thanks for your feedback, i think i found the bug

I was using a different way to find out If there are multiple shipping options selected and they use different shipping tax tables or some dont use tax tables.

I was comparing count(DV) instead of count(shipping providers), its a bug from the time i added Merchant calculations.

Thanks again.

change this in googlecheckout/gcheckout.php line 431

if(sizeof($tax_class_unique) == 1 &&
sizeof($options) == sizeof($tax_class)) {

> 
> ```php
  if(sizeof($tax_class_unique) == 1  && 
       sizeof($module_info) == sizeof($tax_class)) {
 

and

change this in googlecheckout/gcheckout.php line 469

if(sizeof($tax_class_unique) > 1 ||
(sizeof($tax_class_unique) == 1 &&
sizeof($options) != sizeof($tax_class) )) {
$googlepayment->variant = "disabled";
$current_checkout_url = selfURL();
}

> 
> 
> ```php
  if(sizeof($tax_class_unique) > 1 || 
    (sizeof($tax_class_unique) == 1 && 
     sizeof($module_info) != sizeof($tax_class) ))  {
    $googlepayment->variant = "disabled";    
    $current_checkout_url = selfURL();
  }
```im updating the SVN, and later the RC
> 
> and issa, please tell us if this worked for you.
> 
> 
> ropu


Good news and bad news!

The good news is with the new updates, the button is now enabled when Taxable Goods is set true for all shipping methods.

The bad news is on Flat Rate option works for shipping without a problem. Different options create different errors.

Enabling Flat Rate and Free Shipping Option when order >= $150 generates the following error:

 **<?xml version="1.0" encoding="UTF-8" ?> 
- <error xmlns="http://checkout.google.com/schema/2" serial-number="a9158602-2d08-4eff-b259-05431e1dbe4a">
- <warning-messages>
  <string>XML failed to validate against the schema at line: 36, column: 36, with error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'.</string> 
  <string>XML failed to validate against the schema at line: 36, column: 36, with error: cvc-complex-type.2.2: Element 'price' must have no element [children], and the value must be valid.</string> 
  </warning-messages>
  <error-message>Error parsing XML; message from parser is: Invalid value for body of price in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/flat-rate-shipping: Required field must not be blank</error-message> 
  </error>**

Enabling multiple shipping options i.e UPS/Flat Rate/USPS generates error that we do not ship to the customer's country. Obviously, there are still issues with this mod.
7 Mar 2007, 3:45 AM
#786
anticide avatar

anticide

New Zenner

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

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

Ropu,

I'm not sure if you use CGI basic authentication, but here's the errors from someone who does, using the most up-to-date RC4, and all of the installation/readme instructions followed. I have attempted it several times, and here is what I get:

Settings:
.htaccess - True
Operation - Sandbox
Multisocket - True
Merchant Calculation - http

Default values are set for shipping, googlecheckout has my return url for callback. ht files set up properly.

When .htaccess option is true, my server sends the mercant calculation results, which must have an error in the xml, because googlecheckout says "Anticides Emporium does not ship to this address". Yet my XML that sends to the server says it does, here is the xml it sends:

<?xml version="1.0" encoding="utf-8"?> <merchant-calculation-results xmlns="http://checkout.google.com/schema/2">
  <results>
    <result shipping-name="UPS: Next Day Air" address-id="326363196030853">
      <shipping-rate currency="USD">26.69</shipping-rate>
      <shippable>true</shippable>
    </result>
    <result shipping-name="UPS: Next Day Air Saver" address-id="326363196030853">
      <shipping-rate currency="USD">24.09</shipping-rate>
      <shippable>true</shippable>
    </result>
    <result shipping-name="UPS: 2nd Day Air" address-id="326363196030853">
      <shipping-rate currency="USD">15.3</shipping-rate>
      <shippable>true</shippable>
    </result>
    <result shipping-name="UPS: 3 Day Select" address-id="326363196030853">
      <shipping-rate currency="USD">11.07</shipping-rate>
      <shippable>true</shippable>
    </result>
    <result shipping-name="UPS: Ground" address-id="326363196030853">
      <shipping-rate currency="USD">8.25</shipping-rate>
      <shippable>true</shippable>
    </result>
  </results>
</merchant-calculation-results>
```However, if I set the .htaccess option to false, with or without the htaccess files made, my server DOES NOT send the xml of calculation results to the server, and googlecheckout uses my default values already sent. 


Therefor, the cgi option being true is correct and working (it sends the xml), however the xml formatting or something is incorrect, as googlecheckout isn't updating the price and shutting down checkout by saying we do not ship to that address. Please help, as I am one of the few on this board that has a clue how to get past the install/readme files, as it's apparent people dont read. LOL

Thanks in advance, and your help and hard work is EXTREMELY appreciated,
Anticide
7 Mar 2007, 4:56 AM
#787
eva01 avatar

eva01

New Zenner

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

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

Can someone help me out?

I reinstalled everything, new Zen 1.3.7 and installed the new GCO 1.2 RC4. Doing sandbox, and put in correct merchant ID and Key. No errors on url/googlecheckout/responsehandler.php.

However, the GCO logo is nowhere. I'm trying to only use GCO, the only mention of it is on step 2/3 in the payment process where it says payment method. However, I go through the whole process, confirm order, it congratulates me and I'm done. But of course, never went to GCO so no order really happens. Any ideas?

I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.

7 Mar 2007, 2:36 PM
#788
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)

eva01:

Can someone help me out?

I reinstalled everything, new Zen 1.3.7 and installed the new GCO 1.2 RC4. Doing sandbox, and put in correct merchant ID and Key. No errors on url/googlecheckout/responsehandler.php.

However, the GCO logo is nowhere. I'm trying to only use GCO, the only mention of it is on step 2/3 in the payment process where it says payment method. However, I go through the whole process, confirm order, it congratulates me and I'm done. But of course, never went to GCO so no order really happens. Any ideas?

I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??

I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.

hi eva

have alook to the INSTALLATION file

  • Note: The folder YOUR_TEMPLATE refers to the folder that contains your templates.

you must put the files in /includes/templates/YOUR_TEMPLATE/ in your own templates dir

there you should see the GC buy button.

ropu

7 Mar 2007, 3:03 PM
#789
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)

anticide:

Ropu,

I'm not sure if you use CGI basic authentication, but here's the errors from someone who does, using the most up-to-date RC4, and all of the installation/readme instructions followed. I have attempted it several times, and here is what I get:

Settings:
.htaccess - True
Operation - Sandbox
Multisocket - True
Merchant Calculation - http

Default values are set for shipping, googlecheckout has my return url for callback. ht files set up properly.

When .htaccess option is true, my server sends the mercant calculation results, which must have an error in the xml, because googlecheckout says "Anticides Emporium does not ship to this address". Yet my XML that sends to the server says it does, here is the xml it sends:

<?xml version="1.0" encoding="utf-8"?> <merchant-calculation-results xmlns="http://checkout.google.com/schema/2"> <results> <result shipping-name="UPS: Next Day Air" address-id="326363196030853"> <shipping-rate currency="USD">26.69</shipping-rate> <shippable>true</shippable> </result> <result shipping-name="UPS: Next Day Air Saver" address-id="326363196030853"> <shipping-rate currency="USD">24.09</shipping-rate> <shippable>true</shippable> </result> <result shipping-name="UPS: 2nd Day Air" address-id="326363196030853"> <shipping-rate currency="USD">15.3</shipping-rate> <shippable>true</shippable> </result> <result shipping-name="UPS: 3 Day Select" address-id="326363196030853"> <shipping-rate currency="USD">11.07</shipping-rate> <shippable>true</shippable> </result> <result shipping-name="UPS: Ground" address-id="326363196030853"> <shipping-rate currency="USD">8.25</shipping-rate> <shippable>true</shippable> </result> </results> </merchant-calculation-results> ```However, if I set the .htaccess option to false, with or without the htaccess files made, my server DOES NOT send the xml of calculation results to the server, and googlecheckout uses my default values already sent. > > > Therefor, the cgi option being true is correct and working (it sends the xml), however the xml formatting or something is incorrect, as googlecheckout isn't updating the price and shutting down checkout by saying we do not ship to that address. Please help, as I am one of the few on this board that has a clue how to get past the install/readme files, as it's apparent people dont read. LOL > > Thanks in advance, and your help and hard work is EXTREMELY appreciated, > Anticide

hi anticide

as i can see, ur under CGI. so .htaccess file must be added, and setted to true, and DV are shown.

TIP, if u are using only one shipping provider that has to call a WS (ie. fedex, usps, ups, etc) multisocket is recomended to be set in false, because will only add overhead, (must add this to the docs :D)

If GC page says that ur store doenst ship to some address is because all shipping results are set to false, but is not the example u sent in the xml above.

my suggest, try multsocket false, and test it with the responsehandler_test.php in my signature.

BTW, if you want (or any one) i have an other script that works as a proxy between Zencart and sandbox, there you can log all http messages with the server. but this requires a little more configuration and some DB mods. (not big deal), but is a good debuging tool.

please, send your feedback when trying my suggest

thx

ropu

7 Mar 2007, 5:50 PM
#790
lhhgbh avatar

lhhgbh

Zen Follower

Join Date:
Mar 2006
Posts:
177
Plugin Contributions:
0

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

I finally got it to work right.. I click on the Google Checkout button and it takes me to google.. So now how do I charge shipping because it doesnt show any shipping. I set my admin to flat rate shipping..

7 Mar 2007, 5:54 PM
#791
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)

Dave Wilson:

I note that the Installation Notes for this version shows two files to be installed as such:

YOUR_ZENCART_FOLDER/admin/includes/htaccess.php
YOUR_ZENCART_FOLDER/admin/includes/multisock.html

While the downloaded file positioning would seem to show them as:

YOUR_ZENCART_FOLDER/admin/htaccess.php
YOUR_ZENCART_FOLDER/admin/multisock.html

Which positioning is correct?

Hi dave, that a doc's typo

files hould be in
YOUR_ZENCART_FOLDER/admin/htaccess.php
**YOUR_ZENCART_FOLDER/admin/multisock.html
**
as they are packaged

First where as doc, but there they cannot be executed.

ropu

7 Mar 2007, 7:57 PM
#792
eva01 avatar

eva01

New Zenner

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

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

ropu:

hi eva

have alook to the INSTALLATION file

  • Note: The folder YOUR_TEMPLATE refers to the folder that contains your templates.

you must put the files in /includes/templates/YOUR_TEMPLATE/ in your own templates dir

there you should see the GC buy button.

ropu

Thanks, but I did that already before. I use to have the GCO button when using 1.0.4, but had issues with the shipping. With this new release I did a fresh installation of Zen 1.3.7 and then installed the new GCO after it. Now there is no button image, nothing.

7 Mar 2007, 8:04 PM
#793
eva01 avatar

eva01

New Zenner

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

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

Ok, I thought I did that, and I did, but just for the hell of it I put those files under /public_html/includes/templates/template_default/templates/
as well. I thought I was suppose to put them in /public_html/includes/templates/simple_zen/
which is the template I'm using. Anyway, that works. Hopefully the shipping works now too, thanks Ropu!

7 Mar 2007, 8:29 PM
#794
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)

eva01:

Ok, I thought I did that, and I did, but just for the hell of it I put those files under /public_html/includes/templates/template_default/templates/
as well. I thought I was suppose to put them in /public_html/includes/templates/simple_zen/
which is the template I'm using. Anyway, that works. Hopefully the shipping works now too, thanks Ropu!

the best thx is a working site!

thx to you for using GC :D

ropu

7 Mar 2007, 10:22 PM
#795
anticide avatar

anticide

New Zenner

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

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

Ropu,

When I disabled MultiSocket Shipping Quotes Retrieval and everything worked perfectly, definitely needs to be added to the readme for users using cgi ;) Many thanks appreciated!

8 Mar 2007, 4:31 AM
#796
eva01 avatar

eva01

New Zenner

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

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

You rock Ropu, I don't know how you handle working on this and helping everyone here too, thanks again.

8 Mar 2007, 4:53 AM
#797
eva01 avatar

eva01

New Zenner

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

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

Looks like I'm still getting shipping errors. Whenever I test an international address, it says my site does not ship to this address. Has anyone had luck with this? I remember I wasn't the only one that had problems with this before.

I'm using zone shipping method btw.

8 Mar 2007, 6:06 AM
#798
awnold avatar

awnold

New Zenner

Join Date:
Mar 2007
Posts:
1
Plugin Contributions:
0

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

ropu:

hi eva

have alook to the INSTALLATION file

  • Note: The folder YOUR_TEMPLATE refers to the folder that contains your templates.

you must put the files in /includes/templates/YOUR_TEMPLATE/ in your own templates dir

there you should see the GC buy button.

ropu

ropu, can consider putting this mistake under "MOST COMMON MISTAKES"?
thanks, it ate up more time than I am willing to admit =)

8 Mar 2007, 1:32 PM
#799
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)

eva01:

Looks like I'm still getting shipping errors. Whenever I test an international address, it says my site does not ship to this address. Has anyone had luck with this? I remember I wasn't the only one that had problems with this before.

I'm using zone shipping method btw.

eva, Int'l shipping is not yet available for GC. So any shipping outside US, will be marked as not-shippable.

ropu

8 Mar 2007, 1:34 PM
#800
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)

awnold:

ropu, can consider putting this mistake under "MOST COMMON MISTAKES"?
thanks, it ate up more time than I am willing to admit =)

Thanks awnold for your suggestion, ive just add it to that section.

any other docs suggestions are very welcome, i must understand that as the developer of the code, lost of things i have them as a default, but for many merchants may mean big trouble!, so feedback for documentation are very helpful :D

thx again

ropu