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

Results 821 to 840 of 3,921
This thread is locked. New replies are disabled.
12 Mar 2007, 2:22 PM
#821
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,
I removed the module and re-installed it. I am still getting the following error:
"Fatal error: Cannot redeclare selfurl() (previously declared in /home/blumcafe/public_html/coffeeshop/googlecheckout/gcheckout.php:38) in /home/blumcafe/public_html/coffeeshop/googlecheckout/gcheckout.php on line 37"

I look in developer's tool kit to see what else calls that selfURL function, but nothing shows there. I don't know what else to do at this point. Furthermore, in your previous post, you suggested that I add a "gc_" to all GC internal functions. I am not a programmer and I am not sure I understand what that means. Does that mean wherever I see a function call, I need to add the "gc_"? for instance "function strleft($s1, $s2) {" would now be "function gc_strleft($s1, $s2) {"? Please advise. I am running ZenCart 1.3.7. I just installed the GC module 1.2RC4Rev1.

Thanks,
Blum

Hui blum, there is no need to rename any function, i put that for the TODO list in the module.

what you can do to help me, is addressing me where is the other strleft function declared.

there i can see where the error appears.

thx

ropu

12 Mar 2007, 2:25 PM
#822
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,

Is there a possibility of posting a definitive list of what Zen Cart functions/features ARE supported by your GC mod, and which functions/features are NOT supported?

Also is there any programming option available in your mod to disable Google Checkout option whenever customer:

  1. is logged in with an account associated with a non US address
  2. adds a "virtual" product to their shopping cart?
  3. for customers not logged into Zen Cart does your mod provide any feedback to the customer to make them aware that international shipping is not supported, before they spend time filling out forms at the Google Checkout site.

Or maybe update the Google Checkout logo to state "US domestic shipping only". Or can we edit te logo to show this? Otherwise how are customers to understand the shipping limitation?

I was really hoping that Google Checkout would quickly become a viable competitor to PayPal. But lacking support for international shipping and for virtual products (softgoods), that competition will not take place.

Maybe Google could hire some extra "Summer Coders" to make this happen?

Woody

Woody, hi, thx for ur comments as usual

i cannot give any dates or any thing about new features released by google because i dont know :D
but, as i told you i some latest post, there is a link to post suggestions for new features, and all of the ones u are proposing are there. so i dont think google will ignore it. because its not only u the one asking for them.

ill keep you and all merchants updated.

ps: i think google is giving a lot of effort to this project and have more than just "summer coders" working there!, i can assure that, i know some of them. ;)

ropu

12 Mar 2007, 2:28 PM
#823
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, is there a way to clean up this file /googlecheckout/gcheckout.php or align it better so that it's easier to comment out the different shipping options. The white space is all over the places that sometimes commenting a line actually creates an error.

Thanks!

bless, u shouldnt touch /googlecheckout/gcheckout.php to enable or disable shipping methods. the only place is includes/modules/payment/googlecheckout.php mc_shipping_methods and mc_shipping_methods_names methods

ropu

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

jhaase83:

I am using option B in the instructions. The mentioned files

tpl_checkout_payment_default.php
tpl_login_default.php
tpl_shopping_cart_default.php

these are the files that go in MY TEMPLETE.

I already have these files so I followed the instructions and replaced the information that I was suppose to. Do I need to completely replace these files instead of just the curtain info?

jhaase, you just need to replace the code pointed in the INSTALLATION file.,(option B)

note: This if u are using a different template than the default one.

ropu

12 Mar 2007, 2:35 PM
#825
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)

netwiser:

Hi All..

I am a Zen Wannabe LOL

I installed and configured the google checkout mod.

I have a single test product, wi:lamo: th free shipping...

I go through the check out process with no errors
and get to the check out success screen, however
when I go to my google check out account, no orders
show up..

So... Now... Im lost LOL

Id be happy to provide access to anyone that might wanna take a look and see what I mucked up??

Thanks

Bob :lamo:

Hi bob

please double check this things.

In the Admin UI, do you see the orders?
What environment is setted in the Admin UI, sandbox or production? Remember, sandbox and production have 2 different merchant id/key pairs.

when you check your checkout account, if u use sandbox, u use http://sandbox.google.com/checkout/sell ?

response_error.log shows something?

please, look at these items and see if u missed something

ropu

12 Mar 2007, 2:37 PM
#826
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:

From looking at the Sandbox Merchant Center, it appears that my API
callback handler returns the following when Google Checkout sends
merchant-calculation-callback message:

<br /> <b>Fatal error</b>: Call to undefined function: socket_create() in <b>/usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/googlecheckout/multisocket.php</b> on line <b>188</b><br />

As I metioned before I am not getting real time shipping rates (only default rates) and my orders are not showing up in the order inbox.

There seems to be a problem in the code that is causing a timeout or some other problem preventing the callback to fail. Please advise as this seems to be the major hurdle preventing me from getting my cart up and operating after waiting since Dec. to overcome some of these GC problems.

Thanks
please, try disabling multisocket feature from the Admin UI.

if this doenst help, feel free to ask again..

ps: test ur implementation with the responsehandler_test.php in my signature

ropu

12 Mar 2007, 2:39 PM
#827
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:

Oops - The class was being declared twice because instead of having the language file and the module file each called googlecheckout.php, I simply had two copies of the module file, one stores where the language file should have been. My bad, as they say.

hi nabrown
:D, np, can happen to the best :P

ropu

12 Mar 2007, 2:41 PM
#828
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)

blumcafe:

Ropu, anybody?
Could the source of my problem be due to the fact that some of the files already have paypal express embeded - ZC ver. 1.3.7. I have made too many mods to my site and really don't want to have to re-do the whole thing. Any suggestions are welcome. I saw where one other person in this forum had a similar issue but I could not find the solution? Please Help.:(
blumcafe
One quick solution, that could work, is commenting the whole strleft function in gcheckout.php try this and let me know

ropu

12 Mar 2007, 2:43 PM
#829
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:

Anyone knows is the googlecheckout sandbox is working?
I need to get a sandbox account.
This is the correct url correct? http://sandbox.google.com/checkout/sell
I keep getting a 502 Server error when I go there.
"Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds. "

tj, i really dont know what is happening with Sanbox, but there are a lot of reports on that. perhaps a maintenance on the servers... i could connect several times, but others i had that same issue.

ill ask goog people and let you know

ropu

12 Mar 2007, 2:47 PM
#830
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)

blumcafe:

Thanks all for your feedback. I did check and did verify that the modules were different. I guess I am just stumped at the moment and was wondering if I really needed this function call? If I don't need it, can someone tell me how to work around it?

Thanks

the work around as i told u is commenting the function, but be careful, the other function must do the same as the one commented :P

or, if u prefer, rename that function, and all the calls to it in the gcheckout.php file.

in fact just line 39

try replacing this
(googlecheckout/gcheckout.php line 37)

  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']; 
  }
  function strleft($s1, $s2) { 
    return substr($s1, 0, strpos($s1, $s2)); 
  }

with

  function selfURL() { 
    $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
    $protocol = gc_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
    $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
    return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
  }
  function gc_strleft($s1, $s2) { 
    return substr($s1, 0, strpos($s1, $s2)); 
  }
12 Mar 2007, 3:10 PM
#831
blumcafe avatar

blumcafe

New Zenner

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

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

ropu:

Hui blum, there is no need to rename any function, i put that for the TODO list in the module.

what you can do to help me, is addressing me where is the other strleft function declared.

there i can see where the error appears.

thx

ropu
Ropu,
In addition to the gcheckout.php file at line 39 and line 43,
strleft function is also declared in multisocket.php at lines 164 and 168

12 Mar 2007, 3:14 PM
#832
ladg avatar

ladg

New Zenner

Join Date:
Jan 2004
Posts:
47
Plugin Contributions:
1

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

Installed the latest and greatest. Copied all files to server, making sure to chagne the 'your_template' name to my template. I get the Google checkout cart showing up in the shopping cart. I don't get any Google Checkout option after that if I select the Zen check out method. The problem with this is that my shipping rates do not show up during the Google check out process. I have seen a lot of the same comments as mine, but see no resolution to this. Is there one yet?

I have table rates set up for shipping and in the Admin panel, it says "No merchant calculation shipping selected" and gives no option for me to select my shipping method.

12 Mar 2007, 3:35 PM
#833
blumcafe avatar

blumcafe

New Zenner

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

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

ropu:

the work around as i told u is commenting the function, but be careful, the other function must do the same as the one commented :P

or, if u prefer, rename that function, and all the calls to it in the gcheckout.php file.

in fact just line 39

try replacing this
(googlecheckout/gcheckout.php line 37)

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'];
}
function strleft($s1, $s2) {
return substr($s1, 0, strpos($s1, $s2));
}

>  
> with 
>  
> ```php
  function selfURL() { 
    $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
    $protocol = gc_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
    $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
    return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
  }
  function gc_strleft($s1, $s2) { 
    return substr($s1, 0, strpos($s1, $s2)); 
  }

Ropu,
Added the "gc_" but did not fix error displayed in shopping cart. I'll wait to hear from you. Thanks, Blum

12 Mar 2007, 4:38 PM
#834
jhaase83 avatar

jhaase83

New Zenner

Join Date:
Jan 2007
Location:
MO
Posts:
24
Plugin Contributions:
0

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

ropu:

jhaase, you just need to replace the code pointed in the INSTALLATION file.,(option B)

note: This if u are using a different template than the default one.

ropu

I am using the default template.
I did just replace the code. So what else could be the problem? I have the google checkout option clicked on my payment module. Which lets you pick google checkout at checkout. But there is not a blue google checkout button anywhere on my site. If you need I can give you my url so you can see what I am talking about.

12 Mar 2007, 5:04 PM
#835
ladg avatar

ladg

New Zenner

Join Date:
Jan 2004
Posts:
47
Plugin Contributions:
1

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

FYI -

I ended up using the 1.0.4r version of the module posted on zencart.com download section instead of the latest one posted on the code.google.com web site (1.2RC4rev1), which I thought was the 'latest and greatest'. After reinstalling, everything popped up fine - including the correct shipping options during checkout.

12 Mar 2007, 9:09 PM
#836
jwoodall avatar

jwoodall

New Zenner

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

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

Can someone help me get rid of the radio button on step 2 of the checkout?

I have GCO installed and working (well..some things I still need to work on).

I need to remove the radio button for GCO on step 2.

There are several references about changing this via this code:

<?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { // ** GOOGLE CHECKOUT ** if($selection[$i]['id'] == "googlecheckout") continue; // ** END GOOGLE CHECKOUT ** ?>

Can someone help me modify my code? Every time I modify it, I trash my checkout.

I'm running in sandbox mode right now if someone wants to test it.

A customer can just choose GCO from the radio button and get an order confirmation without being sent to GCO.

Should they be sent to GCO when choosing the radio button? If they choose the GCO icon on the login page, it works fine.

I also can't get GCO orders to show up in admin. In fact, my orders.php is trashed too, so I need to fix that.

I'm a Zen newbie so please point me in the right direction.

Thanks!

Joseph Woodall
http://www.hollywoodmoviemall.com

12 Mar 2007, 9:15 PM
#837
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, u shouldnt touch /googlecheckout/gcheckout.php to enable or disable shipping methods. the only place is includes/modules/payment/googlecheckout.php mc_shipping_methods and mc_shipping_methods_names methods

ropu

Actually that was an error on my part. The file I meant to reference for clean up was includes/modules/payment/googlecheckout.php mc_shipping_methods.

Thanks!

12 Mar 2007, 10:07 PM
#838
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, hi, thx for ur comments as usual

i cannot give any dates or any thing about new features released by google because i dont know :D
but, as i told you i some latest post, there is a link to post suggestions for new features, and all of the ones u are proposing are there. so i dont think google will ignore it. because its not only u the one asking for them.

ill keep you and all merchants updated.

ps: i think google is giving a lot of effort to this project and have more than just "summer coders" working there!, i can assure that, i know some of them. ;)

ropu

Hi Ropu,

A. I posted in this thread a request for a definitive list of "native" Zen Cart functionality supported by the "Google Checkout for Zen Cart" mod, because this is the only forum I could find specific to the Google Checkout for Zen Cart mod. The other locations I was referred to are general Google Checkout support forums.

B. I say again that Google not supporting international orders and soft goods (virtual goods) very much limits the usefulness of Google Checkout.

I cannot understand why such BASIC functionality was not included as part of the Google Checkout core infrastructure from the very beginning. If PayPal can do it why cannot Google?

C. I understand Google is having a difficult time finding areas to spend extra cash? Maybe they could redirect some of the cash towards:

  1. Development of Google Checkout;
  2. Development of the Google Checkout for Zen Cart mod.

Is there anyone else actively developing the GC for Zen Cart mod?

Is there a "product manager" or "development engineer" assigned to the development of this mod whom I can contact?

If you are the only one "working" on the mod then would it be possible for you could assemble a list of most often requested current Zebn Cart features which ARE supported and which ARE NOT supported (by either the mod or by Google Checkout in general)?

This would prevent much confusion and reduce the time/frustration BEFORE potential shop-owners install the mod and/or sign-up for Google Checkout, only to find out the functionality they thought Google Checkout and the mod would provide are not available.

I would hope such info would be provided in a "Before You start" document and in this thread, if not elewhere.

Woody

12 Mar 2007, 10:11 PM
#839
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)

Thank Ropu,
Disabling multisocket feature from the Admin UI seem to work as I now have real time shipping rates for UPS Ground. I thought that we had changed the code in mcshipping to enable GNDCOM, GNDRES and STD as well. Perhaps I have not enabled them somewhere else, but this is excellent progress. Can you foresee whether I should want to enable the multisocket feature in the future?
I ran an order through Sandbox, but it does not show up in the order inbox. Is it possible that Sandbox orders should NOT show up there?
Could you please explain how to test my implementation with the responsehandler_test.php in your signature? Sorry, I'm pretty php code challenged.

Dave

12 Mar 2007, 10:52 PM
#840
12stepspace_com avatar

12stepspace_com

New Zenner

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

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

I am really confused ... Shipping is always 0.00. I have 1.2 RC4 and 1.3.7 The merchant id/key are correct. I have 2 shipping zones and 2 modules for shipping.

I have spent the whole day trying to update the cart from 1.0.4 GCO and nothing ....

Any help would be appreciated. I am posting my module Info for shipping and GCO

========================================================
Per Item

Enable Item Shipping
True

Shipping Cost
10.00

Handling Fee
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
Not US

Sort Order
2

========================================================

Table Rate

Enable Table Method
True

Shipping Table
27:4.95,40:6.95,54:9.50,67:11.50,80:14.00,99.99:18.00,10000000.00:0.00

Table Method
price

Handling Fee
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
United States

Sort Order
0

GoogleCheckout

Enable GoogleCheckout Module
True

.htaccess Basic Authentication Mode
False

Merchant ID
xxxxxxxxxxxxxxx

Merchant Key
xxxxxxxxxxxxxxxxxxxxxx

Select Mode of Operation
https://checkout.google.com/

MultiSocket Shipping Quotes Retrieval
False

Select Merchant Calculation Mode of Operation
https

Default Values for Real Time Shipping Rates

Google Analytics Id
NONE

Sort order of display.
0