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

Results 941 to 960 of 3,921
This thread is locked. New replies are disabled.
30 Mar 2007, 11:01 PM
#941
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)

I'll be out next week, in Argentina we are in hollydays

i'll be having a look to the forum, but not as regularly as usual

ropu

31 Mar 2007, 1:25 AM
#942
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,

This is parsing the XML output in the shopping cart and you have to scroll so far to the right to see the Google Checkout button. This obviously, is an unacceptable behavior as no Merchant will want the XML output to their customers.

Also, the button issue still hasn't been resolved. It's displaying the standard button instead of the promotion button.

Thanks for this new release.

31 Mar 2007, 5:42 AM
#943
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)

I'm getting the same as BlessIsaacola. International shipping is not working either (I use USPS calculated shipping).

Many nice features, unfortunately cannot be used in a live shop as it is right now.

31 Mar 2007, 12:17 PM
#944
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)

BlessIsaacola:

ropu,

This is parsing the XML output in the shopping cart and you have to scroll so far to the right to see the Google Checkout button. This obviously, is an unacceptable behavior as no Merchant will want the XML output to their customers.

Also, the button issue still hasn't been resolved. It's displaying the standard button instead of the promotion button.

Thanks for this new release.

Sotty about that debug info

please delete googlecheckout/gcheckout.php line 692

<xmp>
<?=$gcheck->getXml();?>
</xmp>

and regarding the button, im pretty sure that the 10% promotion, is for production, and is not shown when u are in sandbox

because the code for buttons is the same

im uploading the new version,
http://google-checkout-zencart.googlecode.com/files/google-checkout-zencart-v1.3RC1rev1.zip

ropu

31 Mar 2007, 5:21 PM
#945
nabrown78 avatar

nabrown78

New Zenner

Join Date:
Feb 2007
Location:
Santa Cruz, CA
Posts:
14
Plugin Contributions:
0

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

Hi All.
I saw one other person post with this issue, but no real solution. Everything is working fine with my Google checkout, but on an empty shopping cart page, I get the following error and a greyed-out GCO button:

Fatal error:  Cannot redeclare selfurl() (previously declared in /home/sally/public_html/store/googlecheckout/gcheckout.php:38) in /home/sally/public_html/store/googlecheckout/gcheckout.php on line 42
```I have done searched the code of the entire site, and there is only one declaration of selfURL().

Any ideas? 

Thanks for any help...
31 Mar 2007, 7:44 PM
#946
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)

nabrown78:

Hi All.
I saw one other person post with this issue, but no real solution. Everything is working fine with my Google checkout, but on an empty shopping cart page, I get the following error and a greyed-out GCO button:

Fatal error: Cannot redeclare selfurl() (previously declared in /home/sally/public_html/store/googlecheckout/gcheckout.php:38) in /home/sally/public_html/store/googlecheckout/gcheckout.php on line 42

> 
> Any ideas? 
> 
> Thanks for any help...
Hi nabrown

i don'y really know the cause of the issue

but this should solve it

replace in googlecheckout/gcheckout.php 38

```php
   function selfURL() { 
      $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
      $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
      $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
      return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
    }
```with this

```php
  if (!function_exists('selfURL')) {
    function selfURL() { 
      $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
      $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
      $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
      return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
    }
  }

please send your feedbacks

hope this helps

ropu

31 Mar 2007, 9:38 PM
#947
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,

I am reporting back that everything so far works flawlessly except tax. It's not calculating taxes but UPS merchant calculated shipping as well as others are currently working.

This is a major improvement. Thanks!

31 Mar 2007, 11:59 PM
#948
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)

BlessIsaacola, when you say tax isn't working, what exactly do you mean?

The only problem I have with the tax calculation is that GC is not rounding according to the settings I specified, I have set it to Total and Half Up, so that if for example total tax is 10.825, it should round to 10.83, but instead it seems to keep using the default and rounding to 10.82

There's still a problem with international shipping. It doesn't work yet. Does it work for you BlessIsaacola?

Also, if I want to go with installation Option B, e.i., manually editing orders.php, tpl_checkout_payment_default.php, tpl_login_default.php and tpl_shopping_cart_default.php, I'm having a bit of hard time trying to figure out where the edits go in the in the three template files because the instructions seem to be based on an older version and not the latest current ZC 1.3.7, the instructions refer to slightly different code and line number than that found in the latest files.
Perhaps you could take a look at the latest files and change the instructinos to refer to the exact code and line number.

1 Apr 2007, 12:12 AM
#949
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)

tj1:

BlessIsaacola, when you say tax isn't working, what exactly do you mean?

The only problem I have with the tax calculation is that GC is not rounding according to the settings I specified, I have set it to Total and Half Up, so that if for example total tax is 10.825, it should round to 10.83, but instead it seems to keep using the default and rounding to 10.82

There's still a problem with international shipping. It doesn't work yet. Does it work for you BlessIsaacola?

Also, if I want to go with installation Option B, e.i., manually editing orders.php, tpl_checkout_payment_default.php, tpl_login_default.php and tpl_shopping_cart_default.php, I'm having a bit of hard time trying to figure out where the edits go in the in the three template files because the instructions seem to be based on an older version and not the latest current ZC 1.3.7, the instructions refer to slightly different code and line number than that found in the latest files.
Perhaps you could take a look at the latest files and change the instructinos to refer to the exact code and line number.

Actually, the template files did not change from previous version so if you have a working template from previous version you should be good.

I tried checking out with a shipping address that you be taxed because it's one of the states included in the zone for taxing. Unfortunately, when I go to check out it did not include tax.

As far as internationaly goes, I got shipping option during checkout instead of the standard "We currently do not ship to your location" but not all options returned calculated shipping so I still have to look more into this.

This is definitely hit and miss and I haven't tested for all scenarios. My main tests are for soft goods, calculated shipping and tax calculation. We do not have too many international customers currently so I am not too concern about that. At least I can handle them with table rate or zones if calculated doesn't work.

I will continue testing and report back.

1 Apr 2007, 12:15 AM
#950
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)

tj1:

BlessIsaacola, when you say tax isn't working, what exactly do you mean?

The only problem I have with the tax calculation is that GC is not rounding according to the settings I specified, I have set it to Total and Half Up, so that if for example total tax is 10.825, it should round to 10.83, but instead it seems to keep using the default and rounding to 10.82

There's still a problem with international shipping. It doesn't work yet. Does it work for you BlessIsaacola?

Also, if I want to go with installation Option B, e.i., manually editing orders.php, tpl_checkout_payment_default.php, tpl_login_default.php and tpl_shopping_cart_default.php, I'm having a bit of hard time trying to figure out where the edits go in the in the three template files because the instructions seem to be based on an older version and not the latest current ZC 1.3.7, the instructions refer to slightly different code and line number than that found in the latest files.
Perhaps you could take a look at the latest files and change the instructinos to refer to the exact code and line number.

tj, orders.php is based on 1.3.7
but templates, im not sure... the truth is that i missed up checking that.

thx for the reminder...

regarding intl shipping, what is the issue?

please double check that ur shipping option is under the internationl_types in includes/modules/payment/googlecheckout.php

if is not there, it wont be show for countries different form US.

that way i now added flat intl, table intl, etc

btw im runing a batch script comparing fedex and ups response times usign zencart shipping class, and times for ups arent good, ill post results and teh scrip so u can also test it, and the send results to google guys!

hope this helps

ropu

1 Apr 2007, 1:14 AM
#951
dkerfoot avatar

dkerfoot

New Zenner

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

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

Payments are making it to GoogleCheckout, but they aren't showing up in Admin.

Ran this: http://demo.globant.com/~brovagnati/tools/responsehandler_test.php

Got this response:
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:func(144):reason(134)

I do have an SSL Cert (not shared)

Help!

1 Apr 2007, 12:59 PM
#952
cheezylu avatar

cheezylu

New Zenner

Join Date:
Feb 2007
Location:
Chicago, IL
Posts:
56
Plugin Contributions:
0

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

I was wondering if anyone was experiencing a problem using Google Checkout with IE 7 for Windows. It works perfectly on my Mac, but the shipping options dropdown menu doesn't display on IE for Windows and thus the "Place your order" button is grayed out. The browser lists the following error...

Line: 307
Char: 3
Error: Element not found
Code: 0
URL: https://checkout.google.com/view/buy?o=shoppingcart&shoppingcart=605635435640838&tzfp=wg168r1g12CrC

1 Apr 2007, 1:05 PM
#953
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)

dkerfoot:

Payments are making it to GoogleCheckout, but they aren't showing up in Admin.

Ran this: http://demo.globant.com/~brovagnati/tools/responsehandler_test.php

Got this response:
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:func(144):reason(134)

I do have an SSL Cert (not shared)

Help!

try with HTTP instead of https, the issue is with the responsehandler_test cert, not urs

ropu

1 Apr 2007, 1:07 PM
#954
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)

cheezylu:

I was wondering if anyone was experiencing a problem using Google Checkout with IE 7 for Windows. It works perfectly on my Mac, but the shipping options dropdown menu doesn't display on IE for Windows and thus the "Place your order" button is grayed out. The browser lists the following error...

Line: 307
Char: 3
Error: Element not found
Code: 0
URL: https://checkout.google.com/view/buy?o=shoppingcart&shoppingcart=605635435640838&tzfp=wg168r1g12CrC

hi, please
Please contact the google team directly through:
http://checkout.google.com/support/sell/bin/request.py

ropu

1 Apr 2007, 2:19 PM
#955
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)

BlessIsaacola:

ropu,

I am reporting back that everything so far works flawlessly except tax. It's not calculating taxes but UPS merchant calculated shipping as well as others are currently working.

This is a major improvement. Thanks!

BlessIsaacola -

I see you have multiple shipping methods working. I tried to install the latest last night but still have shipping issues. My question is this:

Did you comment all the shipping methods in the includes/modules/payment/googlecheckout.php file except the ones you use? For instance, I use only USPS and Table rate. Am I supposed to comment out all the other array definitions in that file?

Oddly enough, the tax part DID work, but the shipping options on the Google site were still showing $0 for all but the ones in USPS that had default values entered in the Admin. These showed the default values that I entered instead of the calculated postage. I will say that I got a LOT more options, though, including international options for my California address, even though they all showed $0.

For now, I'm back to the 1.0.4 versions of that googlecheckout.php and the gcheckout.php in the /googlecheckout folder. This lets me use calculated table rates at least.

Thanks for any hints you can provide.

1 Apr 2007, 3:15 PM
#956
greyboy avatar

greyboy

New Zenner

Join Date:
May 2006
Location:
Cleveland, Ohio
Posts:
2
Plugin Contributions:
0

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

ropu,

I just installed the 3RC1Rev1 version of GC and everything I am using is working perfectly. We have a site using CGI with the UPS shipping module installed. No defaults set for 1day air, 2day air and ground shipping and the calc callback is working great. Thanks so much for all your hard work. We are going live with this site this Thursday and I was starting to sweat.... Got the fix I needed just in the nick of time!

Thanks Again:clap:

BTW: Someone in this thread was asking if godaddy turbossl certs worked with GC. We have this cert and it works fine.

1 Apr 2007, 5:58 PM
#957
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)

BlessIsaacola:

Actually, the template files did not change from previous version so if you have a working template from previous version you should be good.

I believe the template files are based on 1.3.6, not 1.3.7.
In 1.3.7, the files contain code for PayPal Express and as someone else mentioned, if you also want to use PayPal Express, you'd need to merge both files otherwise one or the other payment modules will be broken.

ropu, it would be great if you could base the template files and instructions on 1.3.7 this way no code will be broken or one won't have to merge code from two files.

Here are the version ids of the template files:

Current: tpl_checkout_payment_default.php 5414 2006-12-27 07:51:03Z drbyte
Used on GC: tpl_checkout_payment_default.php 4332 2006-09-01 04:33:16Z ajeh

Current: tpl_login_default.php 5419 2006-12-28 05:56:39Z drbyte
Used on GC: tpl_login_default.php 2834 2006-01-11 22:16:37Z birdbrain

Current: tpl_shopping_cart_default.php 5414 2006-12-27 07:51:03Z drbyte
Used on GC: tpl_shopping_cart_default.php 4140 2006-08-15 03:37:53Z drbyte

1 Apr 2007, 6:32 PM
#958
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)

ropu:

tj, orders.php is based on 1.3.7
but templates, im not sure... the truth is that i missed up checking that.

thx for the reminder...

regarding intl shipping, what is the issue?

please double check that ur shipping option is under the internationl_types in includes/modules/payment/googlecheckout.php

if is not there, it wont be show for countries different form US.

that way i now added flat intl, table intl, etc

btw im runing a batch script comparing fedex and ups response times usign zencart shipping class, and times for ups arent good, ill post results and teh scrip so u can also test it, and the send results to google guys!

hope this helps

ropu

Hi ropu, I'm using USPS international shipping methods, it does appear in includes/modules/payment/googlecheckout.php

I get this message when trying to checkout with an international address
'Merchant does not ship to this address'

1 Apr 2007, 9:01 PM
#959
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

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

Ayone got any idea whats causing this error?

I have tried everyhting I can think of

Oops!
Sprite Mobile Ltd. has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try checking out again.

1 Apr 2007, 10:49 PM
#960
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)

chain_man:

BlessIsaacola -

I see you have multiple shipping methods working. I tried to install the latest last night but still have shipping issues. My question is this:

Did you comment all the shipping methods in the includes/modules/payment/googlecheckout.php file except the ones you use? For instance, I use only USPS and Table rate. Am I supposed to comment out all the other array definitions in that file?

Oddly enough, the tax part DID work, but the shipping options on the Google site were still showing $0 for all but the ones in USPS that had default values entered in the Admin. These showed the default values that I entered instead of the calculated postage. I will say that I got a LOT more options, though, including international options for my California address, even though they all showed $0.

For now, I'm back to the 1.0.4 versions of that googlecheckout.php and the gcheckout.php in the /googlecheckout folder. This lets me use calculated table rates at least.

Thanks for any hints you can provide.

The only shipping options available are the ones that we've actually configured on the admin side module-shipping.

ropu, helped me out with out to set this up to work correctly (I have a feeling ropu will release a tool in the future to help others).

There was actually a duplicate fedex1 in the originally file downloaded by ropu and that was completely deleted from my file after getting help from ropu.

considering that merchant shipping calculation is pretty touched it's important to have things set right.

Here is a sample of what a cleaned up code looks like from googlecheckout.php:

// this are all the available methods for each shipping provider, 
	// see that you must set flat methods too!
	// CONSTRAINT: Method's names MUST be UNIQUE
	$this->mc_shipping_methods = array(
                        'usps' => array(
                                    'domestic_types' =>
                                      array(
                                          'Express' => 'Express Mail',
                                          'First Class' => 'First-Class Mail',
                                          'Priority' => 'Priority Mail'
                                           ),

                                    'international_types' =>
                                      array(
                                          'Express' => 'Global Express Mail (EMS)',
                                          'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
                                          'Airmail Letter' => 'Airmail Letter Post'
                                           ),
                                        ),
                        'fedex1' => array(
                                    'domestic_types' =>
                                      array(

                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'ups' => array(
                                    'domestic_types' =>
                                      array(
                                          '1DA' => 'Next Day Air',
                                          '1DAPI' => 'Next Day Air Intra (Puerto Rico)',
                                          '1DP' => 'Next Day Air Saver',
                                          '2DA' => '2nd Day Air',
                                          '3DS' => '3 Day Select',
                                          'GND' => 'Ground'
                                           ),

                                    'international_types' =>
                                      array(
                                          'STD' => 'Canada Standard',
                                          'XPR' => 'Worldwide Express',
                                          'XPD' => 'Worldwide Expedited'
                                           ),
                                        ),
                        'zones' => array(
                                    'domestic_types' =>
                                      array(
                                          'zones' => 'Zones Rates'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'fedexexpress' => array(
                                    'domestic_types' =>
                                      array(
                                          '03' => 'FedEx 2Day',
                                          '05' => 'FedEx Standard Overnight',
                                          '06' => 'FedEx First Overnight',
                                          '20' => 'FedEx Express Saver'
                                           ),

                                    'international_types' =>
                                      array(
                                          '03' => 'FedEx International Economy',
                                          '06' => 'FedEx International First'
                                           ),
                                        ),
                        'fedexground' => array(
                                    'domestic_types' =>
                                      array(
                                          '90' => 'FedEx Home Delivery',
                                          '92' => 'FedEx Ground Service'
                                           ),

                                    'international_types' =>
                                      array(
                                          '90' => 'International Home Delivery',
                                          '92' => 'International Ground Service'
                                           ),
                                        ),
                        'freeoptions' => array(
                                    'domestic_types' =>
                                      array(
                                          'freeoptions' => 'Free Options'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'freeshipper' => array(
                                    'domestic_types' =>
                                      array(
                                          'freeshipper' => 'Free Shipper'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'perweightunit' => array(
                                    'domestic_types' =>
                                      array(
                                          'perweightunit' => 'Perweight Unit'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'storepickup' => array(
                                    'domestic_types' =>
                                      array(
                                          'storepickup' => 'Store Pickup'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'flat' => array(
                                    'domestic_types' =>
                                      array(
                                          'flat' => 'GOOGLECHECKOUT_FLAT_RATE_SHIPPING'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'item' => array(
                                    'domestic_types' =>
                                      array(
                                          'item' => 'GOOGLECHECKOUT_ITEM_RATE_SHIPPING'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'table' => array(
                                    'domestic_types' =>
                                      array(
                                          'table' => 'GOOGLECHECKOUT_TABLE_RATE_SHIPPING'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                                  );

$this->mc_shipping_methods_names = array(
                                         'usps' => 'USPS',
                                         'fedex1' => 'FedEx',
                                         'ups' => 'UPS',
                                         'zones' => 'Zones',
                                         'fedexexpress' => 'Fedex Express',
                                         'fedexground' => 'Fedex Ground',
                                         'freeoptions' => 'Free Options',
                                         'freeshipper' => 'Free Shipper',
                                         'perweightunit' => 'Perweight Unit',
                                         'storepickup' => 'Store Pickup',
                                         'flat' => 'Flat Rate',
                                         'item' => 'Item',
                                         'table' => 'Table',
                                        );

Okay, I just realized the above code I posted is from my 1.2RC4REV1. I will post updated code based on 1.3