-
Re: Google Checkout module for Zen Cart (beta)
Thanks Ropu for the clarification. I figured it might not hurt to put the two files in both locations, so I as far as I can tell I have resolved that issue.
I am still having problems getting UPS Ground to show up in my cart once the GC button is clicked. The only shipping options that show up are 1DM, 1DML and XPD even though they show as commented out in mcshipping. I deleted line 117 so UPS Ground was NOT commented out, but as a novice, perhaps that was the wrong move. Perhaps you could give me some guidance here?
-
Re: Google Checkout module for Zen Cart (beta)
I am still having the same problem I had b4. No google check button. when I do try to check out it goes through the process on my web site then when you click confirm order it does not go to the google web site I get a smtp error page.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Dave Wilson
Thanks Ropu for the clarification. I figured it might not hurt to put the two files in both locations, so I as far as I can tell I have resolved that issue.
I am still having problems getting UPS Ground to show up in my cart once the GC button is clicked. The only shipping options that show up are 1DM, 1DML and XPD even though they show as commented out in mcshipping. I deleted line 117 so UPS Ground was NOT commented out, but as a novice, perhaps that was the wrong move. Perhaps you could give me some guidance here?
hi dave
try this
PHP Code:
'ups' => array('domestic_types' =>
array('1DM' => 'Next Day Air Early AM',
'1DML' => 'Next Day Air Early AM Letter',
'GND' => 'Ground',
'XPD' => 'Worldwide Expedited')
),
the idea is NOT to delete the one you want, is to uncomment it
tell me how this works.
btw, 'XPD' wont work for address outside us, basically because GC dont yet do int'l shipping
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I am still having the same problem I had b4. No google check button. when I do try to check out it goes through the process on my web site then when you click confirm order it does not go to the google web site I get a smtp error page.
hi jhaase83,
just to know, have u tried this?
Quote:
Originally Posted by
ropu http://www.zen-cart.com/forum/images...s/viewpost.gif
have a look 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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
hi jhaase83,
just to know, have u tried this?
ropu
Yes I did. I do have some of the files that where in the download. I copied and pasted the html over into them like the instructions said. Should I completly change the files to what is on the download?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
eva, Int'l shipping is not yet available for GC. So any shipping outside US, will be marked as not-shippable.
ropu
Ok then, I'll wait until that's been fixed. In the mean time, can I send an invoice to my international customers and can they pay that way?
-
Re: Google Checkout module for Zen Cart (beta)
I have overcome the previous problem by pasting new UPS shipping code into mcshipping, but like Alik I see that real time rates are not showing up in GC. I see it has been advised to use multisocket, but I also see that some seem to be experiencing problems with this feature. Am I just inviting more problems going this route? I am also experiencing the same problem others seem to see with test orders in Sandbox not showing up in GC order box. Is this all related to time out problem? Thanks again for your help Ropu
-
Re: Google Checkout module for Zen Cart (beta)
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
yes it should, but i can tell you way, that function is already declared. i think your installation is mixed or not fully v1.2. Or you have a other contribution with the same function name.
im adding to the TODO list,
- add "gc_" to all GC internal functions
ropu
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
hi dave
try this
PHP Code:
'ups' => array('domestic_types' =>
array('1DM' => 'Next Day Air Early AM',
'1DML' => 'Next Day Air Early AM Letter',
'GND' => 'Ground',
'XPD' => 'Worldwide Expedited')
),
the idea is NOT to delete the one you want, is to uncomment it
tell me how this works.
btw, 'XPD' wont work for address outside us, basically because GC dont yet do int'l shipping
ropu
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!
-
Re: Google Checkout module for Zen Cart (beta)
I am using option B in the instructions. The mentioned files
[FONT=Courier New][/FONT]
[FONT=Courier New]tpl_checkout_payment_default.php [/FONT]
[FONT=Courier New]tpl_login_default.php [/FONT]
[FONT=Courier New]tpl_shopping_cart_default.php[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]these are the files that go in MY TEMPLETE. [/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]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? [/FONT]
-
Re: Google Checkout module for Zen Cart (beta)
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:
-
Re: Google Checkout module for Zen Cart (beta)
>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
-
Re: Google Checkout module for Zen Cart (beta)
Hi Ropu and Others,
I have just installed all the new files for the latest ZC Google Checkout module, and when I go to Admin>Modules>Payment, I get the following error:
Code:
Fatal error: Cannot redeclare class googlecheckout in <mystore>/includes/modules/payment/googlecheckout.php on line 377
(I replaced the actual file path with <mystore>.)
I did have gc installed previously, but I removed it as a payment option from Admin before I installed the new files.
Any help is appreciated.
Thanks.
-
Re: Google Checkout module for Zen Cart (beta)
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.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
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.:(
-
Re: Google Checkout module for Zen Cart (beta)
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. "
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
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.
If I understood Ropu correctly, he made a note to himself to change the function names in future versions of the code. I don't think he was suggesting that we do this.
As indicated by nabrown78 above, check that the like-named modules in different folders are actually different modules.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
yes it should, but i can tell you way, that function is already declared. i think your installation is mixed or not fully v1.2. Or you have a other contribution with the same function name.
im adding to the TODO list,
- add "gc_" to all GC internal functions
ropu
Quote:
Originally Posted by
chain_man
If I understood Ropu correctly, he made a note to himself to change the function names in future versions of the code. I don't think he was suggesting that we do this.
As indicated by nabrown78 above, check that the like-named modules in different folders are actually different modules.
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
I just downloaded a copy of my site to my local machine and used dreamweaver to search all files for the selfURL declaration. I found that the only other place it shows up besides the gcheckout.php file is in the mulitsocket.php file. Could this be the source of my problems? I doubt it since there does not seem to be too many folks experiencing the same problems. Any thoughts? If this is indeed my issue please advise on how I might correct this.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I am using option B in the instructions. The mentioned files
[FONT=Courier New]tpl_checkout_payment_default.php [/FONT]
[FONT=Courier New]tpl_login_default.php [/FONT]
[FONT=Courier New]tpl_shopping_cart_default.php[/FONT]
[FONT=Courier New]these are the files that go in MY TEMPLETE. [/FONT]
[FONT=Courier New]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? [/FONT]
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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)
PHP Code:
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 Code:
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));
}
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (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.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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)
PHP Code:
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 Code:
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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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.
-
Re: Google Checkout module for Zen Cart (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.
-
Re: Google Checkout module for Zen Cart (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
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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
-
Re: Google Checkout module for Zen Cart (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
-
Re: Google Checkout module for Zen Cart (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
-
Re: Google Checkout module for Zen Cart (beta)
I can't get any shipping to work the way I want. Basically I want to charge $5 for shipping on the first item, $2 each additional item.
Table rate didn't work, it charge $5 regardless of how many items. I did set table rate to per item calculation. However during Google Checkout, it says Table: Vary by Weight/Price.
Here are my settings:
Table Rate
Enable Table Method
True
Shipping Table
1:5.00,2:7.00,3:9.00,4:11.00, 5:13.00,6:15.00,7:17.00,8:19.00, 9:21.00,10:23.00,11:25.00,12:27.00, 13:29.00,14:31.00,15:33.00,16:35.00
Table Method
item
Handling Fee
0
Tax Class
--none--
Tax Basis
Shipping
Shipping Zone
--none--
Sort Order
0
Then I figured maybe I could work around this by doing per item and setting a handling fee. It should work basically the same:
Per Item
Enable Item Shipping
True
Shipping Cost
2.00
Handling Fee
3
Tax Class
--none--
Tax Basis
Shipping
Shipping Zone
--none--
Sort Order
0
However all this does is make shipping $3.00 regardless of the number of items. Has anyone got this working, and did you have to do anything special? Am I missing something?
-
Re: Google Checkout module for Zen Cart (beta)
I set up a test store on which I try new things before trying them on my live store. I installed the GoogleCheckout module and I think everything is working OK.
After logging on to my test store today I noticed there were 10 new customers. I was surprised as this is a new test store no one knows about it and there aren't any links to it.
After clicking on the new customers' details I realized these were the same customers who had made payments for eBay and Yahoo auctions using GoogleCheckout.
So my question is, will a new account be created in my ZC store for anyone that sends me a GoogleCheckout payment?
If that's the case, I guess a separate GoogleCheckout account is needed for each separate store one might have. Does anyone know if one is allowed to have more than one seller account?
Also, does anyone if the customers received notification of the accounts created in the test store?
Thanks.
-
Re: Google Checkout module for Zen Cart (beta)
Gave up on 1.2RC4 and have gone back to 1.0.4r which works fine other than the fact that I have to manually update the stock on the event of a sale.
Must say I am very disappointed by the level of support for releases .. Documentation is apalling and the engineering is subpar.
My 2 cents.
Quote:
Originally Posted by
12stepspace.com
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
-
Re: Google Checkout module for Zen Cart (beta)
Any way to integrate the normal checkout with GCO or remove the normal checkout button all together? I want to try to use GCO exclusively, but one of two things happens:
Add to cart> regular checkout button>payment method says google checkout>confirm order> THE END....but of course it never goes to gco, no payment has really been made, no errors, looks like a successful transaction.
or
Customer sees the GCO button and just uses that. That's fine, but there still seem to be issues for a lot of people that orders don't show up in admin, which I'm having problems with too.
If you only use GCO, having that regular checkout button basically leads to nowhere for customers. Clicking it doesn't eventually lead anyone to GCO my only option. It doesn't tell the customer there is no other payment method and to go back. Is there any way to either get rid of it, or integrate the GCO button into that process?
-
Re: Google Checkout module for Zen Cart (beta)
I don't think you should use GCO only since you will limit your customer base to US only.
About this GCO plug-in, is there anyway to use my Zone rates shipping fee for this GC?
-
Re: Google Checkout module for Zen Cart (beta)
Thanks, but I'll deal the international shipping issue later. I'm sure they'll get that working eventually.
I'm not the only one that is trying to do this, someone started a new thread on it, but I'm asking about it here to keep it organized.
-
Re: Google Checkout module for Zen Cart (beta)
Another suggested fix:
If you are using the urchin tracker and have SSL enabled, the following code (around line 548 in gcheckout.php) will cause a cert warning, possibly driving off some customers:
Code:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
This should probably be replaced with:
Code:
<script src="<?php echo ($_SERVER['SERVER_PORT']=='443') ? 'https://ssl.google-analytics.com/urchin.js' : 'http://www.google-analytics.com/urchin.js'; ?>" type="text/javascript">
However, given that google's urchin.js is currently broken under firefox, I suggest following the suggestion here:
http://giantrobot.co.nz/gr/2006/11/2...r-not-defined/
In that case, you'd host a copy of urchin.js on your own server and refer to it in the src instead.
-
Re: Google Checkout module for Zen Cart (beta)
In following a bit more with Zen conventions its even better to switch it to:
PHP Code:
<script src="' . <?php echo (($request_type == 'SSL') ? 'https://ssl.google-analytics.com/urchin.js' : 'http://www.google-analytics.com/urchin.js' ); ?> . '" type="text/javascript">
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
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)
PHP Code:
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 Code:
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));
}
Quote:
Originally Posted by
blumcafe
Ropu,
Added the "gc_" but did not fix error displayed in shopping cart. I'll wait to hear from you. Thanks, Blum
Ropu,
So Do I just wait for a new release now or am I missing something? I wanted to go live offering GCO and PP EC. But I guess I will just have to move forward with only PP EC:cry:
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
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
Blum, thats true, but multisocket should not be included in gcheckout.php
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
LADG
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.
hi ladg,
Table rates are a flat rate method, so there is no need of merchant calculations neither to set Default Values.
do you have any tax table selected? or a tax zone? that can filter that shipping?
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ropu,
Added the "gc_" but did not fix error displayed in shopping cart. I'll wait to hear from you. Thanks, Blum
blum, try commenting one of the declarations (gcheckout.php or multisocket.php)
if this works, trace where multisocket is included in gcheckout.php... because that an error.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
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.
Jhaase,
the problem is in the template dir, please send me ur template dir tree
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jwoodall
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
Joseph, as far a i can see u haven't setted up the templates correctly.
u can see the GC button in the login page, but not in the shopping cart page. double check that.
in the templates is the code to avoid GC radio button in step 2
ropu
MOST COMMON MISTAKES
====================
4. The folder YOUR_TEMPLATE in the package refers to the folder that contains
your templates, you must put the files in /includes/templates/YOUR_TEMPLATE/
in your own templates dir
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
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!
Hi bless, thx for ur comments again.
could u give me some tips on how would u like to clean up that code?
im not sure that i understand u
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Dave Wilson
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
Dave, i good to hear that is working.
Multisocket is needed if u have more that one shipping provider (say, usps, ups, fedex) if not, there is no need to.
but the truth is that the feature is not working as i expected. and im not able right now to refactor it. there are also other ways in progress to get rid of with the timeout issue.
regarding orders, i dont know with inbox u are referring, GC one, or Zencart?
The idea of the responsehandler test is to emulate GC requests (merchant-calculation-callbacks, new order notifications, or any request that hits responsehandler.php)
as the README in the code says, u need to add the resphand.php url, ur merchant id/key, and an xml with the request (response_message.php should have plenty of them)
after filling this info, run the code and u should see the XML response
if u need more help, just ask
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
SophWise.com
In following a bit more with Zen conventions its even better to switch it to:
PHP Code:
<script src="' . <?php echo (($request_type == 'SSL') ? 'https://ssl.google-analytics.com/urchin.js' : 'http://www.google-analytics.com/urchin.js' ); ?> . '" type="text/javascript">
Taking note, adding it to the trunk dev code
thx SophWise and GDOrn
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Hi all
i finished installing a Demo Server with Google Checkout module installed
here is the URL
http://demo.globant.com/~brovagnati/zen_demo1/
have a look to it.
Also play with MC Log Viewer and the Notification log viewer (links are in the header) to see how messages are passed to Google Checkout server and how GC send notifications to Zencart
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Jhaase,
the problem is in the template dir, please send me ur template dir tree
ropu
Where would you like me to send it to? And what would be my template dir tree. Is it the folders and files I have in that folder?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Where would you like me to send it to? And what would be my template dir tree. Is it the folders and files I have in that folder?
yes jhaase83
send my ur template directory structure form includes/templates/classic (u told me u are using clasic template, arent u?)
u can PM me
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Hi all
for all those of you having issues adding a shipping provider that is not in the standard distro i've done a little script that generates the code to add in the includes/modules/payment/googlecheckout.php
this is the link
http://demo.globant.com/~brovagnati/..._generator.php
any doubt feel free to ask.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Blum, thats true, but multisocket should not be included in gcheckout.php
ropu
Ropu,
You are right, multisocket is not called in gcheckout.php, but these files are called................
PHP Code:
require('includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php');
require_once('includes/modules/payment/googlecheckout.php');
And they include a call to multisocket or at least references to it. As does the responsehandler which is called in gcheckout.php but in responsehandler.php there is a call to multisocket.php. The last time I tried commenting out the selfURL function, I got errors further down the page. Maybe I did not do it correctly. I will try again.
Thanks
Blum
-
Re: Google Checkout module for Zen Cart (beta)
Thanks Ropu,
I found my Sandbox orders once I looked in the correct inbox. I don't know if I am up to the responsehandler test you suggest, although it now appears that all is working correctly.
What you say on the multisocket feature is interesting. I inadvertantly added USPS with the UPS we had talked about previously. Interestingly enough it appears that both are working with the multisocket feature turned off. Am I suffering from a false hope that they could be both working correctly? You can look at <http://www.nativeamericantrade.com/zencart/> and see what you think. The shipping rates on my small items were too high for UPS so I need USPS as well.
THanks,
Dave
-
Re: Google Checkout module for Zen Cart (beta)
I've done a search and have seen other people ask, but I haven't seen a solid response.
Can I use a shared SSL that my ISP provides, or do I need a private one with a dedicated IP?
-
Re: Google Checkout module for Zen Cart (beta)
Hi ropu & all!
I am really excited about the Google Checkout module for Zen Cart. I have not launched my site live yet, but I am hoping to exclusively use the Google Checkout payment module like several others have brought up. The only problem that I am aware of right now, is that it does not support the selling of downloads. This is a problem for my site because we will only be offering downloads for the moment. I was wondering if this issue is closed to being resolved. I will be patient, I just thought I would get an idea of how long it might be. Thanks for all the hard work.
-
Re: Google Checkout module for Zen Cart (beta)
Had my first order today with Google Checkout which isnt bad considering I just installed this mod a few weeks ago.. The only problem is that shipping wasnt charged.. How do I put in shipping costs?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
I set up a test store on which I try new things before trying them on my live store. I installed the GoogleCheckout module and I think everything is working OK.
After logging on to my test store today I noticed there were 10 new customers. I was surprised as this is a new test store no one knows about it and there aren't any links to it.
After clicking on the new customers' details I realized these were the same customers who had made payments for eBay and Yahoo auctions using GoogleCheckout.
So my question is, will a new account be created in my ZC store for anyone that sends me a GoogleCheckout payment?
If that's the case, I guess a separate GoogleCheckout account is needed for each separate store one might have. Does anyone know if one is allowed to have more than one seller account?
Also, does anyone if the customers received notification of the accounts created in the test store?
Thanks.
Tj,
yes, every new buyer that uses GC to pay, when a new order notif arrives to ur site, it will create a new zencart user (or update it if he has already bought)
and you guessed ok, u need on GC Seller account for each site, because u need to have one Mechant API callback URL for each site.
but what you could do, if you have 2 sites, one live and an other for test, use ONLY one merchant and use sandbox merchant ID/key for testing, and production merchant Id/key for live one.
hope this helps...
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
eva01
I've done a search and have seen other people ask, but I haven't seen a solid response.
Can I use a shared SSL that my ISP provides, or do I need a private one with a dedicated IP?
hi eva
please have a look to this page that describes well how SSL certificates work
http://groups.google.com/group/googl...l-certificates
and here a list of compatible ones
http://checkout.google.com/support/s...y?answer=57856
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ropu,
You are right, multisocket is not called in gcheckout.php, but these files are called................
PHP Code:
require('includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php');
require_once('includes/modules/payment/googlecheckout.php');
And they include a call to multisocket or at least references to it. As does the responsehandler which is called in gcheckout.php but in responsehandler.php there is a call to multisocket.php. The last time I tried commenting out the selfURL function, I got errors further down the page. Maybe I did not do it correctly. I will try again.
Thanks
Blum
Hi blum,
i must say that you should have something wrong.
i double check all, and i dont find any cross reference from gcheckout.php to multisocket.php
The only place that is included is in responsehandler.php line 135 (and only included id multisocket feature is enable. Btw, try disabling it)
And also neither in file 'includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php' nor ncludes/modules/payment/googlecheckout.php there is a reference to multisocket.php or responsehandler.php
if gcheckout.php in line 406 is this code
PHP Code:
if ($srv_mode == 'https://sandbox.google.com/checkout/' && $http_mode == 'http') {
$url = HTTP_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
} else {
$url = HTTPS_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
}
but is used to set up the callback ur, nothing to do with including files.
double check your installation, and address me where you have that cross reference.
tip: search for responsehandler.php multisocket.php in your files to find any inclusion that is out of place.
thx for ur comments
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Dave Wilson
Thanks Ropu,
I found my Sandbox orders once I looked in the correct inbox. I don't know if I am up to the responsehandler test you suggest, although it now appears that all is working correctly.
What you say on the multisocket feature is interesting. I inadvertantly added USPS with the UPS we had talked about previously. Interestingly enough it appears that both are working with the multisocket feature turned off. Am I suffering from a false hope that they could be both working correctly? You can look at <http://www.nativeamericantrade.com/zencart/> and see what you think. The shipping rates on my small items were too high for UPS so I need USPS as well.
THanks,
Dave
Hi dave,
to be sure they are working, comprare them to the default values you setted up in the Admin UI, if they are different, it working :D
you can also compare them with standard checkout quotes, please be sure you use the same address in standar and GC checkout ;)
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
lhhgbh
Had my first order today with Google Checkout which isnt bad considering I just installed this mod a few weeks ago.. The only problem is that shipping wasnt charged.. How do I put in shipping costs?
hi lhhgbh
as far as i can see you have a problem with shipping quotes.
they are not being sent to GC in the cart... so they are not added to the cost.
have you tested ur site in sandbox? witch shipping quotes are u using?
do you have tax zones, or tax clases?
wtich version of the module are u using?
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chulo34
Hi ropu & all!
I am really excited about the Google Checkout module for Zen Cart. I have not launched my site live yet, but I am hoping to exclusively use the Google Checkout payment module like several others have brought up. The only problem that I am aware of right now, is that it does not support the selling of downloads. This is a problem for my site because we will only be offering downloads for the moment. I was wondering if this issue is closed to being resolved. I will be patient, I just thought I would get an idea of how long it might be. Thanks for all the hard work.
hi chulo,
I cant assure any release date for digital goods delivery, because i dont know :P
but i can say that is a feature very requested and google wont ignore it.
Now u can sell digital goods, but is not so transparent and instant for the buyer (and the merchant). Some merchants are offering this goods, they dont use any shipping quotes, and when a new order notif arrives to the zencart Admin UI, the email the buyer with the link to download the soft good buyed. Also the buyer can log into zencart with some user/pass displayed in the admin UI->orders and get from there the link.
if you or someone have any suggestion to make this easier, i'll appreciate the feedback and try to implement it, so this feature could be less "painful" :D
i can also say that there are several zencarts using GC as the only payment method.
if you have any more questions or suggestions, feel free to ask!
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
if you or someone have any suggestion to make this easier, i'll appreciate the feedback and try to implement it, so this feature could be less "painful"
See how Paypal does it and emulate.
Did not a primary software developer/engineer leave PayPal last year and come to work for Google specifically to quickly bring Google Checkout up to competitive speed?
No virtual goods support and no international currency support = Google Checkout is still in beta with a very long ways to go.
And I don't understand the previous repeated remarks informing us that Google Checkout does not support international shipping. That's not what I see here.
See https://checkout.google.com/support/...y?answer=48115
Maybe it's just the Google Checkout for Zen Cart mod does not support international shipping. Why? Clarification anyone?
All these highly requested features will probably magically become available the same day the "free" no-charge Google Checkout transaction fees are no longer (Dec 31, 2007). :wink2:
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Yeah, GC for ZenCart doesn't work with international orders.
And, I can't use Zone rate shipping fee wiith GC, *_*
-
Re: Google Checkout module for Zen Cart (beta)
I think I might know why it isn't sending them. I have some custom shipping flat rates.. I cloned the flat rate module a few months ago.. So I think I might need to add the correct cloned shipping file names to the google files.. Does that sound right? If so which Google files would I add the shipping lines to?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
yellow1912
Yeah, GC for ZenCart doesn't work with international orders.
And, I can't use Zone rate shipping fee wiith GC, *_*
yellow1912, im double checking that info with google guys, i think that is not correct.
And this module does support int'l shipping, but the specs in http://code.google.com/apis/checkout...l#shipping_xsd dont.
please woody, double check that info too. im waiting for Google to answer me and ill post it here.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
lhhgbh
I think I might know why it isn't sending them. I have some custom shipping flat rates.. I cloned the flat rate module a few months ago.. So I think I might need to add the correct cloned shipping file names to the google files.. Does that sound right? If so which Google files would I add the shipping lines to?
yes lhhgbh
your should add that rates to includes/modules/payment/googlecheckout.php
use this tool to create the coded needed http://demo.globant.com/~brovagnati/tools/shipping_generator.php
and if its is a flat rate you should also add the shipping code to
PHP Code:
$this->shipping_support = array();
$this->shipping_display = array();
(line 50)
ropu
-
Re: Google Checkout module for Zen Cart (beta)
thanks for your prompt response ropu.
I wonder if we can't use "<merchant-calculated-shipping>", which "sends a request to your custom calculations web service". Google says it will use the url we provided right? So we can have a small script calculate shipping fee base on ZoneRate, or we can even use ZC functions for that, and we give use this URL instead of FedEx or USPS etc...
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
yellow1912
thanks for your prompt response ropu.
I wonder if we can't use "<merchant-calculated-shipping>", which "sends a request to your custom calculations web service". Google says it will use the url we provided right? So we can have a small script calculate shipping fee base on ZoneRate, or we can even use ZC functions for that, and we give use this URL instead of FedEx or USPS etc...
yellow, if fact is that what we are doing :D
and we use zencart Shipping->quote(); class to retrieve quotes.
i dont really know why you cant use zone rates, have a look to my demo site (signature) there zones rates are working!
if you post me more info about your configuration, we can try to solve ur issue.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Okay will I only add something to around line 50 of the googlecheckout.php or will I have to add something else?
-
Re: Google Checkout module for Zen Cart (beta)
Okay, here are the three shipping modules that I use:
flat550.php
flat650.php
flat1950.php
These are all setup in my cart correctly and located in the same exact folders as the flat.php which comes with ZenCart..
-
Re: Google Checkout module for Zen Cart (beta)
Hi ropu,
As you requested here is my config:
In my shipping module I have only Zone Rates enabled with 3 zones
In payment module -> GoogleCheckout I have:
.htaccess Basic Authentication Mode: false
MultiSocket Shipping Quotes Retrieval: true
Default Values for Real Time Shipping Rates: Zone Rates: default 2.95
Do you need any more info?
-
Re: Google Checkout module for Zen Cart (beta)
Below is the code as I changed it.. Im getting a line 151 error when I try and bring it up in the Admin/modules/payment screen..
<?php
/*
Copyright (C) 2006 Google Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* GOOGLE CHECKOUT
* Class provided in modules dir to add googlecheckout as a payment option
* Member variables refer to currently set paramter values from the database
*/
class googlecheckout extends base {
var $code, $title, $description, $merchantid, $merchantkey, $mode,
$enabled, $shipping_support, $variant;
var $schema_url, $base_url, $checkout_url, $checkout_diagnose_url,
$request_url, $request_diagnose_url;
var $table_name = "google_checkout", $table_order = "google_orders";
// class constructor
function googlecheckout() {
global $order;
require_once(DIR_FS_CATALOG.'includes/languages/'. $_SESSION['language'] .
'/modules/payment/googlecheckout.php');
$this->code = 'googlecheckout';
$this->title = MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_TITLE;
$this->description = MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_DESCRIPTION;
$this->sort_order = MODULE_PAYMENT_GOOGLECHECKOUT_SORT_ORDER;
$this->mode= MODULE_PAYMENT_GOOGLECHECKOUT_STATUS;
$this->merchantid = MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID;
$this->merchantkey = MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTKEY;
$this->mode = MODULE_PAYMENT_GOOGLECHECKOUT_MODE;
$this->enabled = ((MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') ? true : false);
$this->shipping_support = array("flat", "item", "table", "First Class", "Priority", "Express Overnight");
$this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, GOOGLECHECKOUT_FIRST_CLASS_SHIPPING, GOOGLECHECKOUT_PRIORITY_SHIPPING,GOOGLECHECKOUT_EXPRESS_OVERNIGHT_SHIPPING);
$this->ship_flat_ui = "Standard flat-rate shipping";
$this->schema_url = "http://checkout.google.com/schema/2";
$this->base_url = $this->mode."cws/v2/Merchant/" . $this->merchantid;
$this->checkout_url = $this->base_url . "/checkout";
$this->checkout_diagnose_url = $this->base_url . "/checkout/diagnose";
$this->request_url = $this->base_url . "/request";
$this->request_diagnose_url = $this->base_url . "/request/diagnose";
$this->variant = 'text';
if ((int)MODULE_PAYMENT_GOOGLECHECKOUT_ORDER_STATUS_ID > 0) {
$this->order_status = MODULE_PAYMENT_GOOGLECHECKOUT_ORDER_STATUS_ID;
}
}
//Function used from Google sample code to sign the cart contents with the merchant key
function CalcHmacSha1($data) {
$key = $this->merchantkey;
$blocksize = 64;
$hashfunc = 'sha1';
if (strlen($key) > $blocksize) {
$key = pack('H*', $hashfunc($key));
}
$key = str_pad($key, $blocksize, chr(0x00));
$ipad = str_repeat(chr(0x36), $blocksize);
$opad = str_repeat(chr(0x5c), $blocksize);
$hmac = pack(
'H*', $hashfunc(
($key^$opad).pack(
'H*', $hashfunc(
($key^$ipad).$data
)
)
)
);
return $hmac;
}
//Decides the shipping name to be used
// May not call this if the same name is to be used
// Useful if some one wants to map to Google checkout shoppign types(flat, pickup or merchant calculate)
function getShippingType($shipping_option) {
switch($shipping_option) {
case GOOGLECHECKOUT_FLAT_RATE_SHIPPING: return $this->ship_flat_ui."- Flat Rate";
case GOOGLECHECKOUT_ITEM_RATE_SHIPPING: return $this->ship_flat_ui."- Item Rate";
case GOOGLECHECKOUT_TABLE_RATE_SHIPPING: return $this->ship_flat_ui."- Table Rate";
case GOOGLECHECKOUT_FIRST_CLASS_SHIPPING: return $this->ship_flat_ui."- First Class";
case GOOGLECHECKOUT_PRIORITY_SHIPPING: return $this->ship_flat_ui."- Priority";
case GOOGLECHECKOUT_EXPRESS_OVERNIGHT_SHIPPING: return $this->ship_flat_ui."- Express Overnight";
default: return "";
}
}
// Function used to compute the actual price for shipping depending upon the shipping type
// selected
function getShippingPrice($ship_option, $cart, $actual_price, $handling=0, $table_mode="") {
switch($ship_option) {
case GOOGLECHECKOUT_FLAT_RATE_SHIPPING: {
return $actual_price;
}
case GOOGLECHECKOUT_ITEM_RATE_SHIPPING: {
return ($actual_price * $cart->count_contents()) + $handling ;
}
case GOOGLECHECKOUT_TABLE_RATE_SHIPPING: {
}
case GOOGLECHECKOUT_FIRST_CLASS_SHIPPING: {
return $actual_price;
}
case GOOGLECHECKOUT_PRIORITY_SHIPPING: {
return $actual_price;
}
case GOOGLECHECKOUT_EXPRESS_OVERNIGHT_SHIPPING: {
return $actual_price;
}
//Check the mode to be used for pricing the shipping
if($table_mode == "price")
$table_size = $cart->show_total();
else if ($table_mode == "weight")
$table_size = $cart->show_weight();
// Parse the price (value1:price1,value2:price2)
$tok = strtok($actual_price, ",");
$tab_data = array();
while($tok != FALSE) {
$tab_data[] = $tok;
$tok = strtok(",");
}
$initial_val=0;
foreach($tab_data as $curr) {
$final_val = strtok($curr, ":");
$pricing = strtok(":");
if($table_size >= $initial_val && $table_size <= $final_val) {
$price = $pricing + $handling;
break;
}
$initial_val = $final_val;
}
return $price;
}
default: return 0;
}
}
// class methods
function update_status() {
}
function javascript_validation() {
return false;
}
function selection() {
return array('id' => $this->code,'module' => $this->title);
}
function pre_confirmation_check() {
return false;
}
function confirmation() {
return false;
}
function process_button() {
}
function before_process() {
return false;
}
function after_process() {
return false;
}
function output_error() {
return false;
}
function check() {
global $db;
if (!isset($this->_check)) {
$check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GOOGLECHECKOUT_STATUS'");
$this->_check = $check_query->RecordCount();
}
return $this->_check;
}
function install() {
global $db;
$language = $_SESSION['language'];
require_once(DIR_FS_CATALOG.'includes/languages/'. $language . '/modules/payment/googlecheckout.php');
$shipping_list .= "array(";
foreach($this->shipping_display as $ship) {
$shipping_list .= "\'".$ship."\',";
}
$shipping_list = substr($shipping_list,0,strlen($shipping_list)-1);
$shipping_list .= ")";
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable GoogleCheckout Module', 'MODULE_PAYMENT_GOOGLECHECKOUT_STATUS', 'True', 'Accepts payments through Google Checkout on your site', '6', '3', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID', '', 'Your merchant ID is listed on the \"Integration\" page under the \"Settings\" tab', '6', '1', now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant Key', 'MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTKEY', '', 'Your merchant key is also listed on the \"Integration\" page under the \"Settings\" tab', '6', '2', now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Select Mode of Operation', 'MODULE_PAYMENT_GOOGLECHECKOUT_MODE', 'https://sandbox.google.com/', 'Select either the Developer\'s Sandbox or live Production environment', '6', '3', 'zen_cfg_select_option(array(\'https://sandbox.google.com/\', \'https://checkout.google.com/\'),',now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Select shipping options.', 'MODULE_PAYMENT_GOOGLECHECKOUT_SHIPPING', '', 'Select your shipping option(s), and make sure to configure them under the Shipping Modules section', '6', '0',\"zen_cfg_select_multioption($shipping_list, \",now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_GOOGLECHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
$db->Execute("create table if not exists " . $this->table_name . " (customers_id int(11), buyer_id bigint(20) )");
$db->Execute("create table if not exists " . $this->table_order ." (orders_id int(11), google_order_number bigint(20), order_amount decimal(15,4) )");
}
// If it is requried to delete these tables on removing the module, the two lines below
// could be uncommented
function remove() {
global $db;
$db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
//$db->Execute("drop table " . $this->table_name);
//$db->Execute("drop table " . $this->table_order);
}
function keys() {
return array('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS', 'MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID', 'MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTKEY', 'MODULE_PAYMENT_GOOGLECHECKOUT_MODE','MODULE_PAYMENT_GOOGLECHECKOUT_SHIPPING','M ODULE_PAYMENT_GOOGLECHECKOUT_SORT_ORDER');
}
}
// ** END GOOGLE CHECKOUT **
?>
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Hi blum,
i must say that you should have something wrong.
i double check all, and i dont find any cross reference from gcheckout.php to multisocket.php
The only place that is included is in responsehandler.php line 135 (and only included id multisocket feature is enable. Btw, try disabling it)
And also neither in file 'includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php' nor ncludes/modules/payment/googlecheckout.php there is a reference to multisocket.php or responsehandler.php
if gcheckout.php in line 406 is this code
PHP Code:
if ($srv_mode == 'https://sandbox.google.com/checkout/' && $http_mode == 'http') {
$url = HTTP_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
} else {
$url = HTTPS_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
}
but is used to set up the callback ur, nothing to do with including files.
double check your installation, and address me where you have that cross reference.
tip: search for responsehandler.php multisocket.php in your files to find any inclusion that is out of place.
thx for ur comments
ropu
Ropu
I did a new install over the weekend. I changed the database and directory. I got the same error when I followed the instructions in the installation readme. I decided to use winmerge to compare the files in my template directory to the existing system files for ZC, i.e., the tpl_checkout_payment_default.php, tpl_shopping_cart_default.php and tpl_login_default.php. When I was done, I got the google checkout button to appear without any errors, but now the paypal express checkout button disappeared. I guess it has to do with these files more than anything else. Can you give some guidance here? Would you like me to post the code for these files?
Thanks
Blum
-
Only Google
At this time I am only accepting google payments. But... when someone goes to checkout they are faced with two checkout buttons how do I hide or get rid of the extra checkout button that goes no where.
Thanks,
Angel
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ropu
I did a new install over the weekend. I changed the database and directory. I got the same error when I followed the instructions in the installation readme. I decided to use winmerge to compare the files in my template directory to the existing system files for ZC, i.e., the tpl_checkout_payment_default.php, tpl_shopping_cart_default.php and tpl_login_default.php. When I was done, I got the google checkout button to appear without any errors, but now the paypal express checkout button disappeared. I guess it has to do with these files more than anything else. Can you give some guidance here? Would you like me to post the code for these files?
Thanks
Blum
Scratch previous post. I actually messed on the code. forgot to include the paypal code at the bottom of the page. Looks to be working good now. Both options show up. Now I need to move PayPal above google.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
lhhgbh
Okay, here are the three shipping modules that I use:
flat550.php
flat650.php
flat1950.php
These are all setup in my cart correctly and located in the same exact folders as the flat.php which comes with ZenCart..
add to line 50
PHP Code:
$this->shipping_support = array(..., "flat550","flat650","flat1950");
and
PHP Code:
$this->mc_shipping_methods = array(
...
'flat550' => array(
'domestic_types' =>
array(
'flat550' => 'Flat 550'
),
'international_types' =>
array(
),
),
'flat560' => array(
'domestic_types' =>
array(
'flat560' => 'Flat 560'
),
'international_types' =>
array(
),
),
'flat1950' => array(
'domestic_types' =>
array(
'flat1950' => 'Flat 1950'
),
'international_types' =>
array(
),
)
);
$this->mc_shipping_methods_names = array(
...
'flat550' => 'Flat 550',
'flat650' => 'Flat 550',
'flat1950' => 'Flat 550'
);
have a too to the "..."
this means that you should append the code im sending to the one already there!
any doubt, ask me !
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
yellow1912
Hi ropu,
As you requested here is my config:
In my shipping module I have only Zone Rates enabled with 3 zones
In payment module -> GoogleCheckout I have:
.htaccess Basic Authentication Mode: false
MultiSocket Shipping Quotes Retrieval: true
Default Values for Real Time Shipping Rates: Zone Rates: default 2.95
Do you need any more info?
yellow, try disabling multisocket.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ropu
I did a new install over the weekend. I changed the database and directory. I got the same error when I followed the instructions in the installation readme. I decided to use winmerge to compare the files in my template directory to the existing system files for ZC, i.e., the tpl_checkout_payment_default.php, tpl_shopping_cart_default.php and tpl_login_default.php. When I was done, I got the google checkout button to appear without any errors, but now the paypal express checkout button disappeared. I guess it has to do with these files more than anything else. Can you give some guidance here? Would you like me to post the code for these files?
Thanks
Blum
blum, im pretty sure that Paypal overrides GC mods to those templates.
yuo should merge PP and GC templates... i can help you if you want.
PM me with more details. when fixed, we'll post the solution here. Lets avoid posting to much code here that can confuse merchants.
ropu
-
Re: Only Google
Quote:
Originally Posted by
theangel2g
At this time I am only accepting google payments. But... when someone goes to checkout they are faced with two checkout buttons how do I hide or get rid of the extra checkout button that goes no where.
Thanks,
Angel
Angel, you should do two things.
First disable the default checkout button,.
in default installation includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php
line 132
Then in the login page you should also add a redirect to index.php?main_page=shopping_cart this will avoid buyer to enter regular checkout through there.
im pretty sure thats all you need to do.
you can also remove from googlecheckout/gcheckout.php line 521 this code
HTML Code:
<td align="right" valign="middle" class = "main">
<B><?php echo MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION ?> </B>
</td>
so - Or use - string is not shown
ropu
-
Re: Only Google
Quote:
Originally Posted by
ropu
Angel, you should do two things.
First disable the default checkout button,.
in default installation includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php
line 132
Then in the login page you should also add a redirect to index.php?main_page=shopping_cart this will avoid buyer to enter regular checkout through there.
im pretty sure thats all you need to do.
you can also remove from googlecheckout/gcheckout.php line 521 this code
HTML Code:
<td align="right" valign="middle" class = "main">
<B><?php echo MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION ?> </B>
</td>
so
- Or use - string is not shown
ropu
YOU ARE THE BEST!
THANK YOU SOOOOOOOOOO MUCH.
Angel
-
Re: Only Google
Then in the login page you should also add a redirect to index.php?main_page=shopping_cart this will avoid buyer to enter regular checkout through there.
How do I do the above I am not the brightest when it comes to this sorta thing.
Angel
-
Re: Google Checkout module for Zen Cart (beta)
Okay Ropu I got the first line that you wrote telling me to append to line 50.. The other longer part, what line do I put that on?
-
Re: Google Checkout module for Zen Cart (beta)
Ok i just installed GC on my site I was testing it out and i found out that when i go to my shopping cart and select GC it goes straight to the conformation page without passing through the Google checkout can someone please let me know what I am doing wrong I am using the latest version of Zen cart and it was a fresh install
:oops:
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
lucifersam
Ok i just installed GC on my site I was testing it out and i found out that when i go to my shopping cart and select GC it goes straight to the conformation page without passing through the Google checkout can someone please let me know what I am doing wrong I am using the latest version of Zen cart and it was a fresh install
:oops:
If you read the posts in this thread this issue has been discussed many times as well as the solution that you need to apply to your custom template.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
See how Paypal does it and emulate.
Did not a primary software developer/engineer leave PayPal last year and come to work for Google specifically to quickly bring Google Checkout up to competitive speed?
No virtual goods support and no international currency support = Google Checkout is still in beta with a very long ways to go.
And I don't understand the previous repeated remarks informing us that Google Checkout does not support international shipping. That's not what I see here.
See
https://checkout.google.com/support/...y?answer=48115
Maybe it's just the Google Checkout for Zen Cart mod does not support international shipping. Why? Clarification anyone?
All these highly requested features will probably magically become available the same day the "free" no-charge Google Checkout transaction fees are no longer (Dec 31, 2007). :wink2:
Woody
Woody, please have a look to this thread
http://groups.google.com/group/googl...157362c97748c6
Quote:
[FONT=Courier, Monospaced]robin, we must double check that, when we add any non-us address to the
buyer, googlecheckout changes the order Status to "Store does not ship to
this address" when that address is selected.
[/FONT][FONT=Courier, Monospaced]so no <merchant-calculation-callback> call is sent to the merchant...
in fact, if you have more than one address for the buyer, only US ones will
be sent...
[/FONT]
[FONT=Courier, Monospaced]Jacob, could you please confirm this?
[/FONT]
[FONT=Courier, Monospaced]ropu [/FONT]
Quote:
[FONT=Courier, Monospaced]Hi everyone,
[/FONT][FONT=Courier, Monospaced]Ropu is right; I can confirm that Google Checkout API does not support
international shipping and tax at this time, even with merchant
calculations.
[/FONT]
[FONT=Courier, Monospaced]You can use Google Checkout via Buy Now buttons and Send an Email
Invoice feature for international orders, but the API does not support
international shipping and tax at this time.
[/FONT]
[FONT=Courier, Monospaced]I understand that this feature is required for accepting international
orders; thank you for your posts and comments, we'll take them into
consideration as we continue to improve the product.
[/FONT]
[FONT=Courier, Monospaced]Thanks,
Jacob [/FONT]
hope this clears the issue.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
lhhgbh
Okay Ropu I got the first line that you wrote telling me to append to line 50.. The other longer part, what line do I put that on?
hi lhhgbh
you must put them inside the properties of the class!
$this->mc_shipping_methods line 66
and
$this->mc_shipping_methods_names line 169
please double check syntax and that the multiarray is well formed
ropu
-
Re: Only Google
Quote:
Originally Posted by
theangel2g
Then in the login page you should also add a redirect to index.php?main_page=shopping_cart this will avoid buyer to enter regular checkout through there.
How do I do the above I am not the brightest when it comes to this sorta thing.
Angel
in file includes/modules/pages/login/header_php.php
add in line 11
this
PHP Code:
zen_redirect('index.php?main_page=shopping_cart');
this will redirect from idex.php?main_page=login to index.php?main_page=shopping_cart automatically
ropu
-
usps shipping calculation failed
Hi all
please help me.
ZC137 + 2RC4rev1
server: blueshost.com + its shared SSL
multisocket: enabled
basic authen mode: enabled
error message from GC:We encountered an error trying to access your server at https://my curl/googlecheckout/responsehandler.php -- the error we got is: Sending failed with HTTP response code: 302. Response body was:
<?xml version="1.0" encoding="UTF-8"?>
<merchant-calculation-callback xmlns="http://checkout.google.com/schema/2" serial-number="xxxxx">
<shopping-cart>
<merchant-private-data>
<session-data>xxxxxxxxxxxxxxxxxxxxx;zenid</session-data>
<product-data>;7</product-data>
<ip-address>68.xxx.xxx.xxx</ip-address>
</merchant-private-data>
<items>
<item>
<tax-table-selector>Taxable Goods</tax-table-selector>
<quantity>1</quantity>
<unit-price currency="USD">9.99</unit-price>
<item-name>xxxxxxxxxxxxxxxxxxxxxxxxx</item-name>
<item-description></item-description>
<merchant-item-id>xxxxxx==</merchant-item-id>
<merchant-private-item-data>xxxxxxxxxxxxxxxxxxxx</merchant-private-item-data>
</item>
</items>
</shopping-cart>
<buyer-id>xxxxxxx25262028</buyer-id>
<buyer-language>en_US</buyer-language>
<calculate>
<addresses>
<anonymous-address id="xxxxxx4325516">
<country-code>US</country-code>
<city>xxxxxxx</city>
<region>CA</region>
<postal-code>xxxxx</postal-code>
</anonymous-address>
</addresses>
<shipping>
<method name="Table: Vary by Weight/Price" />
<method name="USPS: Express Mail" />
</shipping>
<tax>false</tax>
<merchant-code-strings />
</calculate>
</merchant-calculation-callback>
thanks
jefflam
-
Re: Google Checkout module for Zen Cart (beta)
Hello: ropu
I try several versions of GC (from 1.03-1.2). I still met the problem I have before: that is, the order does not show up in zen cart admin. I think this problem has been reported several times before, but I didn't find the solution. BTW, my db has a prefix. When I check the db, two tables were created: google_orders and google_checkout, and the tables don't have a primary key. Should I delete this two tables and create two tables with my db prefix? If that is what should I do, then how? I know little about sql.
Thanks
eaglewu