If you're having difficulty setting up shipping, or want to test your responsehandler, below is a URL to some online tools which may be of assist:
http://demo.globant.com/~brovagnati/tools/
Printable View
If you're having difficulty setting up shipping, or want to test your responsehandler, below is a URL to some online tools which may be of assist:
http://demo.globant.com/~brovagnati/tools/
For a few days I have been trying to install googlecheckout with little success. First I installed 1.4.7 and I was able complete orders in the sandbox, the orders would appear in response_message.log BUT the orders would not appear in the zencart admin. I installed the Ropu debug script but still couldn't figure it out.
I did some research and read 1.4.7 does not work with v1.3.7 so I installed 1.4.6a. Now the xml does not even appear in the response_message.log.
Any help would be much appreciated. The site is http://www.urbanokids.com
The Ropu script is installed at http://www.urbanokids.com/googlecheckout/rt.php
I couldn't find the answer. Google checkout doesn't work with zone rates. I am in constant loses when someone pay by Google Checkout. I am installed some 2.2 and 4.1 on domestic and international rates. But rates on Google Checkout some strange. Is it possible to fix somehow?
Thank you.
im getting this error when i go to check out
Sorry, we are not accepting payments from your region at this time.
Please contact us for alternate arrangements.
what does this mean, ?:lamo::lamo::lamo:
Hello guys,
sorry for asking this question if its already been disscussed...
I m using zencart version 1.3.0.1.
n i have integrate google checkout version v1.4.5_CCS.
Now what happens is,when the buyer submit the order, buyer is redirect to google checkout.and order is placed there..I get the order in my seller account, but i m not able to find it in my zencart's admin section.Do i missing something, in order to get user and order tracking at zencart .What is checkout API?? plz give me example so that it will be helpful for me ...
plz help me someway...its urgent
Thanx,
Ashish
I have scanned through this thread and seen that others have had my problem, but not found a solution anywhere.
I am getting an error when customer address is a UK one, gc says it isn't a US address and wont accept it. How do I change this to accept all addresses or at least UK ones.
hey guys,
My set up is on sandbox..
n my API callback URL is www.*****.com/googlecheckout/responsehandler.php
n i m getting error at integration console is "Failed to Get Basic Authentication Headers".
i have CGI installed on my server.
still i dont get orders at my zencart's Admin.
plz help me with this issue.
it will be great help.
thanx
forgive my ignorance but can anybody tell me what these fields represent and how to configure them?
http://goof-offs.com/images/fileds.jpg
When I enable the 1.4.6a version of google checkout,
I get the following message:
Fatal error: Cannot redeclare selfurl() (previously declared in /usr/home/jin123/public_html/cart/googlecheckout/gcheckout.php:39) in /usr/home/jin123/public_html/cart/googlecheckout/gcheckout.php on line 38
anyone know what is wrong?
I thought the file "gcheckout.php" was something the directions told us to copy and paste directly (no editing required).
If anyone finds the answer, please email me at [email protected]
Trying to get it working with the UPS Rates?
How do I set it up that way?
We recently starting getting the error message below and couldn't figure out why. GCO has worked for us for almost 2 years now without any issue like this.
We encountered an error trying to access your server at https://www.OURDOMAIN.com/googlechec...nsehandler.php -- the error we got is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: basic constraints check failed: pathLenConstraint violated - this cert must be the last cert in the certification path
Help please.
I recall Ropu stating that might be something to do with an incorrectly installed SSL cert.
Has your hosting provider moved you to a new machine recently?
Wondering if there is a timeout issue between Google and your server.
Have you re-tested with Ropu's tools site. URL posted to this thread a month ago or so.
Isaac-
Here's a post that might help you.
http://groups.google.com/group/googl...11b1c64322447#
Woody
Hey Woody,
Good to see you around again and thanks a lot for trying to help diagnose this problem.
I am afraid it may be something with server configuration. We've being using the same certificate for a while and everything looks ok but this post:
http://groups.google.com/group/googl...9faee02e6090fd
might be the culprit to my problem. I don't know why this wasn't an issue before but perhaps something changed.
I will try rearranging our ca-bundle to see if that solves the problem.
How can I get my By Percentage Shipping Costs
Work with this mod?
Right now it says its not configured.
If I get a google order the shipping wont show up and I wont know what to do about it.
For those whom sell download products via Google Checkout through Zen Cart...
I've recently observed customers, whom clicked the option "keep my email address confidential" on the GC order page, and then after submitting their order, then clicked the link on GC order complete page to their fetch download, instead end up observing a Zen Cart timeout page (rather than being properly redirected to ZC checkout success page showing a download button, and therefore at the same time auto logged in to Zen Cart account) .
It appears this issue may apply differently to 'returning' customers whom have previously setup an account on the Zen Cart shop using the alias email address assigned by Google Checkout, and to those whom are not hiding their email address.
(as a reminder when a customer choose to hide their true email address, GC generates a new 'alias' email address, and then the mod creates a new Zen Cart account based on this alias at the time an order is submitted via GC. The alias looks like '[email protected]". When customer is redirected to Zen Cart to fetch their download they are automatically logged into that new shop account).
So it appears to me the issue is after submitting a new download order via GC, whenever there is any delay in creating the new ZC account causing the account to not be generated in time before the customer redirects to Zen Cart, the GC mod cannot automatically log in the customer, and instead a timeout page displays.
Then the customer, not remembering they hid their true email address from you, attempts to login to your shop with their true email address, not the alias assigned by Google Checkout. Of course if they never previously setup an account with their true email address they will not be able to login. And if they indeed already have an account with their real address, the brand new download order will not be listed under My Account for that login account. It will only be available via the new account set-up by Google using the alias email address.
I hope I explained this well enough so you can appreciate all the logic required in the mod, dealing with all the login/redirect logic permutations, maintaining state, passing session variables and the like.
And another possibly related issue might be with SSL (the Zen Cart checkout success page displaying the download button should be protected by https).
It is strange as I was not observing these errors previously on the shops I support and only began noticing these occurrences more recently. I hope to do more testing so I can narrow down all the conditions which generates this issue and then hopefully mitigate the problem. If I learn anymore I will post back.
But easiest if I could just disable the ability to keep customer email address confidential. That GC "feature" just ends up creating a customer support bottleneck and makes it more difficult to integrate Google Checkout.
Woody
I've just installed the module manually and all. I can see the module in the cart but when i select it as a payment method it sends me back to the beginning of the checkout process. I'm not logging in with the email I'm using for my google account . Am i missing anything?
Thanks!
The GC for ZC module is not designed as a regular payment module or to be part of normal ZC checkout process (GC is it's own checkout process). GC button is only available on shopping cart and login pages (just like Paypal Express Checkout). Don't have to login to use GC. If GC option is appearing on payment methods page during normal ZC checkout then you have likely not uploaded a GC mod template file to proper location.
I followed the instructions on the readme file (manual installation because i already modified my cart) and the installation file. Actually few of the manual substitutions were already in place so i thought the installation was OK. So what do i do now?
I checked all the code, files and folders etc... everything is in its place but i still do no go through google checkout ...
Can someone please help me with this...
#1) People are ordering through google checkout.
Some orders are coming in WITHOUT shipping! Then there are others
that show FEDEX Shipping even though I do not have FEDEX installed!
Which is better then nothing I suppose.
#2) The orders are not coming back to the site. AHHHHHH!!!! BAD!!!!
I am supposed to leave all the UPS Options and Fed Ex options as 0 or not?
Also, when I logged into goggle I saw I had this message
Then when I click the link its looking for a user name and password....Quote:
We encountered an error trying to access your server at https://www.nothingbutcostumes.com/g...nsehandler.php -- the error we got is: Send failed with code: 400. Response body was: Invalid or not supported Message
What do I do next?
Hi,
It seems I may have the same problem as melena..."googlecheckout" appears as a payment method on the checkout page (though there is no button next to "googlecheckout" if there is suppose to be one?)....but it never goes through to google, it just restarts the checkout process again. Can someone give me tips on how to debug this?...I am using the google sandbox if that makes a difference?
Thanks.
You should have a GoogleCheckout button on your login page and on your shopping cart page if you have items in the cart. If you do not have the buttons appearing on these pages, it is likely that you have not installed the template files in the correct folders.
For additional info look here:
http://www.zen-cart.com/forum/showthread.php?t=74605
Thanks for pointing that out to me Doug:clap:
...I had copied the files in the template directory into my template directory instead of creating another template folder under my template directy.
On my Doodlebuckets site, if you are logged in, the shipping estimator doesn't show up on the shopping cart page. It does when one is not logged in though. I have trouble-shot and found that if I remove the Google Checkout code from the shopping cart page, then the shipping estimator displays properly. When the code is there, the Google Checkout button displays but then nothing below that button is shown, everything below it just breaks. Any fix for this? I have searched and haven't found any posts of those with my same issue. Thanks!
Desperate help needed. It seems a lot of people have asked this but no one has given a clear answer.
I can do test purchases with google checkout. No info ever comes back to admin. Emails from google go out but that is it.
I checked my error log and here is what i have:
Mon Aug 11 18:48:13 EDT 2008:- Failed to Get Basic Authentication Headers.
I have ssl and i am running in sandbox mode. please let me know what all the settings should be?
Oh when i use check the responder i get a pop up that askd me for user name and password.
Just need to get the info into admin!
I did everytrhing i was supposed to except:
Need to change permissions to 777 on ht access file . (I also changed ht pass tyo 777 as well. )
Then i used the link
http://www."your_domain_goes_here".com/admin/htaccess.php
I put in my Key and ID check create file and check directory.
hit enter or create.-- whamo- closed that window, test the GCO and everything works.
Don't forget - right away change those permissions back!
I will have to repeat this when i switch from the SANDBOX to PRODUCTION.:smile::smile:
I found all this out by re-reading the read me.
If I checked the Response headers and got this message
And Gives you the option for a login and Password.Quote:
A username and password are being requested by https://www.nothingbutcostumes.com. The site says: "Google checkout Basic Authentication"
What do I do next?
(you should be already marked true for CGI PHP in module install page optrion bar or what ever itsa called- in admin.)
if i use:
https://www.nothingbutcostumes.com/g...nsehandler.php
I get trhe sign ion. That is good.
now change the permissions like i mentioned above to 777.
then go to url i gave (put your domain in there)
the screen will be white. fill in your stuff- ID and KEY etc.
hit create
that just wrote in your acess file. close it.
Also make sure in google checkout you have the setting for charge and auth immedialty somethuing like that.
do a test order. should be good to go-:smile:
not working for me.
I see the option to pay by GCO but i do not go there I just get payment method: GCO and when i do check out i'm back in the first page of the checkout process.
I read those threads indicated above so I re-checked the files and dirs:
1) my GCO tpl files are in includes/templates/MY_TEMPLATE/template
there i have:
tpl_checkout_payment_default.php
tpl_gc_return_display.php
tpl_gc_return_noproduct.php
tpl_login_default.php
tpl_shopping_cart_default.php
tpl_time_out_default.php
<check>
2) I did this permission thingy even if was not getting any authentication err message <check>
:dontgetit
:dontgetit
What can be the misplaced file(s)? Any suggestions?
Thanks!
Thanks for the reply...
Just want to make sure I have your advice correct.
Ok. I changed that. I had it to false...Quote:
(you should be already marked true for CGI PHP in module install page optrion bar or what ever itsa called- in admin.)
Ok Did this before...Quote:
now change the permissions like i mentioned above to 777. then go to url i gave (put your domain in there)
the screen will be white. fill in your stuff- ID and KEY etc.
hit create
Not sure what you mean by that... But I am getting orders. Its not getting into admin What do I do there?Quote:
Also make sure in google checkout you have the setting for charge and auth immedialty somethuing like that.
If I test the Response Headers? What to I type in there for User and Password?
milo thats it, it should be working.
The google checkout option about automatic charge etc is basicly referring to this-
if you have to log in and choose charge on every order than you need to change the setting to automatic.
I believe it is GC-->settings-->preferences on the left
then choose
Automatically authorize and charge the buyer's credit card.
save.
that makes it so the order will come in as google processing in admin.
anyway here is how i can check if it is set up correctly.
check if htaccess is corect when all done if you type the url for responsehandler- and you put in your ID and Key and choose enter (i wouldn't check remember it!!!!) you should get something like:
Invalid or not supported Message- this is good because you are logging in to the responsehandler-
if the id and key were wrong it should just keep giving the pop up box like 3 times and send to you to:
Error 401 - Unauthorized
You failed to provide a valid account required for access to page.
if you get the error then I believe htaccess script created a file from incorrectly entered info. I spent 2 hours on that little problem.:censored:
so double check that the key that was entered into htaccess script containd all the numbers- ( i noticed i had copied and pasted and misseds a few digits and an underscore of my key because the box in zen was smaller thasn the number of characters in the box. that will definetly prevent this from working.)
I recommend copy and paste directly from GCO integration page and not from zen admin.
Ok I am Panic ing
When something was out of stock (Say in a size)
It would alert the customer with a red arrow at checkout
I think a code in this mod disabled it and the google checkout mod says
But does not show which ones are...Quote:
* Some products are Out of Stock
I need the old functionality back. What do I do?
Milo-
Sorry to here- I haven't encountered this problem. Is it designated only to the specific item in the cart? I would post right away you might have it fixed in a jiffy.
Did you get GC to show ordersd in admin?.
i see what you mean- if somone orders more than you have, or wants something that is sold out , then google C is grayed out.-
When you switch to from saqnd box to production the KEYS are supposed to be different. The htaccess script has lines for id and key sandbox and then lines for id and key production. check that the keys are diff.
For me, everything is working. I can go to Google Checkout and process an order. But, nothing get updated on the Admin site still. Do you have to have SSL enabled/working in order for Google checkout to work? I set that piece up from one of the tutorials on this site, but Admin site still not getting updated. Any suggestions? Thx in advance for your help.
GC production requires SSL to work.
I have SSL set up on the Zen Cart side, but Admin section still not getting populated. Also, I'm new to setting up SSL. Do I only need to enable it in includes/configure.php and admin/includes/configure.php files? I checked with my Web Host Poweb, and they said they don't need to do anything on their end to set anything up.
Also, should coupons be working with Google Checkout?
The keys are different, and i got it to work there is a 10-15 min delay between the data being transfered from google to zen admin so if you make a test you can't just refresh your admin you have to wait 10-15 because google allows the customer to cancel the order within that time frame before google begin to process so i was just moving a bit fast. I notice that when i went in to my test account i use for purchasing and saw that there is a cancel button on the order and it stated you can not cancel after 15 minutes. After that 15 minutes it's up to the customer to contact the seller in order to cancel the order.... if all that make sense, so yes your plan works fine and thank you for posting it
Nope....It's been 5 hours and nothing has shown up in the Admin section....I'm totally at a loss, and just about ready to give up, this is getting ridiculous now
If you have A SSL cert in admin the google mod you need to select the HTTPS for it to go from sand box mod to live, and there is a second option that needs to be set to HTTPS you should see them both in admin
If you SSL cert is setup correctly you should be able to type https://www.yoursite.com or https://www.yoursite.com/admin and the lock should come up on the bottom or top of your browser
both for sand box and live?
Here are my GC settings see if yours are the same?
Google Checkout Module Version
v1.4.7
Enable GoogleCheckout Module
True
Select Mode of Operation
https://checkout.google.com/
Production Merchant ID
"your id for live"
Production Merchant Key
"your key for live"
Sandbox Merchant ID
"your id for sand box"
Sandbox Merchant Key
"your key for sand box"
.htaccess Basic Authentication Mode
True
Select Merchant Calculation Mode of Operation
https
You need to retest with a new order old orders will not come through after you fix the problem so that order that is five hours old will never show up in zen admin it's pretty much lost in the black whole of cyber space, but you can still process it in your google admin
I re-ran the .htaccess ONLY to work in Sandbox mode. I just placed an order and will check it in an hour or so. I set authentication mode to http for Sandbox. I will also set it to https: to test it.
I can get to my website www.desertskyink.net with https: but I don't see the lock in the corner. I have SSL enabled with Zen-Cart, but my hosting company said that they don't have to do anything on their end for SSL, whatever that means.
Here is what I see in the Response Error log under the Google Checkout folder:
# This file is used to record all the response errors encountered by Google Checkout Plugin
Wed Aug 13 17:42:36 EDT 2008:- Invalid or not supported Message
Thu Aug 14 17:38:10 EDT 2008:- Invalid or not supported Message
Thu Aug 14 17:50:25 EDT 2008:- Invalid or not supported Message
Thu Aug 14 19:36:34 EDT 2008:- Invalid or not supported Message
Thu Aug 14 19:37:06 EDT 2008:- Invalid or not supported Message
Thu Aug 14 19:37:50 EDT 2008:- Invalid or not supported Message
when i go to https://www.desertskyink.net/ with firefox i get this error message
Secure Connection Failed
www.desertskyink.net uses an invalid security certificate.
The certificate is only valid for *.powweb.com
(Error code: ssl_error_bad_cert_domain)
* This could be a problem with the server's configuration, or it could be someone trying to impersonate the server.
* If you have connected to this server successfully in the past, the error may be temporary, and you can try again later.
Or you can add an exception…
If you go to https://www.lextechs.com/ you should see the lock
Do you get the same message with Internet Explorer?
Yeah here is what i got with IE
There is a problem with this website's security certificate.
The security certificate presented by this website was issued for a different website's address.
Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.
We recommend that you close this webpage and do not continue to this website.
From what aim gathering is the your hosting company did not set the cert up correctly i use to use poweb and switched hosting companies because of there service, i use hostforweb.com might be a little more pricy but the service is great at least for me
But, I should still be able to do this with the Sandbox account and see orders populate in the ZenCart admin, regardless of SSL, is that correct?
Hello
I have got This up and running but i want to offer GCO as an option after the go to checkout screen NOT before like paypal, is there a way of doing this, i don't care if google say it should be at the from i just want all the payments option all one one page like this:
1) that a customer puts a product in the cart and hits add to cart then clicks...
2) goto checkout ( with no GCO button that is there now) heres my problem page 1:
http://www.canvas-style-art.co.uk/in...r_of_uploads=0
3) Welcome, Please Sign In page has it on too i want if off here, Problem page 2:
https://www.canvas-style-art.co.uk/i...ain_page=login
4) then the person from whereever in the world has to sign up to the website then gets the cart contents page up ( again i want GCO off this page) clicks goto checkout gets the shipping information page up then clicks o0nto the next page which is payment information, Now this is where i want GCO to be....few!
Can this be done if so how???
Cheers
Egg
I am still not getting orders passed over to my admin.
This is what I get when I test my responce headers:
But now I noticed that I had the ssl set to false for the admin in configuration and set it to true...Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Maybe that was the problem.
Ill give someone a 35% off code to buy a costume if they can test my google checkout for me.... (PM me)
Also any thoughts on my out of stock problem?
Its no longer highlighting the item when its out of stock and I dont know what to do..
I'm having a little problem that i do not understand. When i test google checkout it let's me go through the process, but when it gets to the part that says place your order now and i hit the button it just says Error with a blank screen no reason does not say what the error is or nothing.
Can someone help me with this problem?
FOr the blank screen- i would have to say it means something is not setup correctly. HOwever, if your redirected to google and then in the GC you get the screen i think something is wrong with google. If you log back into your google account are the orders there? or are the no where to be found. after ordering on GC you should get a google screen which will advertise for google and have a redirect link back to your store.
I have no expierence with this screen but i have posted a lot of steps in the last week or two on this mod.
Milo- are you getting the error message in the ssandbox or production or both. Also, i went on your site tried to order like 50 of something and thenm google goes gray- google won't take orders on out of stock items. But hereis maybe a solution-
inflate your inventory numbers on everything that is low- then keep track of them to see when someone buys something you dont have- if oyu don't i figure your going to have people leaving because you are out of stock- this predicament sucks if you planned to let people order out of stock items and then just ship them when they came in.-
I went in and looked to see if there where orders there was nothing there. I do not know what could be wrong? Going crazy trying to find out. I went through the steps one by one again and still getting the same thing can someone give me a clue what the problem could be with getting a blank screen after you hit the process button. It just goes blank and says error at the top with nothing explaining what the error is?
Help please!!!!!
hello everyone,
does this module work if we use it on the local host first for testing? I'm asking because the paypal module doesn't work on local host, it has to be tested online. Thanks
I liked the way zen handled it. It made a red <--- next to the item.Quote:
Milo- are you getting the error message in the ssandbox or production or both. Also, i went on your site tried to order like 50 of something and thenm google goes gray- google won't take orders on out of stock items. But hereis maybe a solution-
inflate your inventory numbers on everything that is low- then keep track of them to see when someone buys something you dont have- if oyu don't i figure your going to have people leaving because you are out of stock- this predicament sucks if you planned to let people order out of stock items and then just ship them when they came in.-
Actually its just the red thats gone... the "***-> " is still there.
Is there anyway just to add the functionality back? I have so many skus it would be just to hard to keep track. Thats why I installed the Qty by attributes stock.
I would hate to take google checkout out because of this...
I get the above error when I try to install the Google Checkout module (v1.4.7) in admin > Modules > Payment (v1.3.8a).Quote:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35021 bytes) in /[[internal server path redacted]]/admin/includes/classes/table_block.php on line 77
Afterwards the mod is active in default mode with a sandbox setting, but no Merchant ID, etc. Shopping cart will show a grey GCO button with some accompanying "sandbox"-related messages.
I'm using mod v1.4.7 in ZC 1.3.8a, but in a test store. There are quite a few other mods installed, too many to list, but the same GCO mod is running in our production store in v1.3.7 with all the other mods as well. I seem to recall running into GCO problems in 1.3.8a and thought there were serious version conflicts. So for several months we've avoided upgrading, hoping a solution would appear on the forum. But apparently many ZC sites are using GCO v.1.4.7 in ZC v1.3.8a successfully, so ours may be an individual problem.
Any hints as to how I can attack this error? I've tried to backtrack from table_block.php via the Developers Toolkit to see what might be calling it at this time, but the trail runs dead very quickly. I've searched this thread, and in fact the entire Zen Cart forum, for "Allowed memory size" without any hits. Words of wisdom, even if prefaced by "You idiot! All you need to do is...", would be gratefully and humbly appreciated.
I suspect there may be some further test site problems that won't show in production due to the fact that our test store is a subfolder under our production store, but with "Down for Maintenance" turned on. This was the way my company owner and our host support decided to set it up to avoid buying additional SSL certs, but SSL has always been hit-and-miss at the test store level. Even so, I don't think that's related to this error, but may be waiting for me down the road. (Even with "Down for Maintenance" turned off, the same memory error occurs when I try to install the mod.)
Why has the zen team not wrote Google Check Out in with one of their new releases that works properly? This is one of the longest and most popular threads for a check out method which is very important to a lot of merchants.
I am a bit clueless why Google Checkout is still (beta)... Do we need some donations to make the zen team work a bit harder on it?
I'm having problems with GC. The shipping options I have installed are freeoptions (free over $70) and a flat rate for everything else.
When someone checks out via GC, they can select freeoptions as their shipping option and it won't charge them shipping, regardless of what their actual order is.
Is there a way to adjust this via GC? Or is it something in Zen that I need to adjust. Thanks for any help.
After problems getting the correct shipping prices from the google checkout module (basically I was always getting the default ones which means some problem in the communication with my server) I found that commenting out the two calculate_coupon lines in responsehandler.php does the trick and now it works ok.
Now why... I have no idea (maybe the coupons only work in the US and I am in UK)?
I am having the same problem that dscott1966 is having. Everything appears to work fine -- the information transfers to Google Checkout and I can even enter coupon codes that are stored in Zen Cart. However, when I click the "process order" I get a blank page with the title tag "Error" and the Google Checkout Logo. No information is provided about the error on the page, and both my logs and google checkouts logs have no information about any errors.
I've emailed Google Checkout, but they say that this is a Zen Cart integration issue. I don't see how that is possible, but maybe I am wrong. Communication works fine between Zen and GC, so I just don't understand how this could be the case.
Has anyone else experienced this problem and found a fix? I am stumped. :frusty:
I don't seem to be having the same problems, but there is a big issue for me with GC as a payment option: I can't find a way for the customer to add notes to their order when paying by GC.
Is there a fix or a workaround for this?
Sorry hairydog, I don't know if that is possible.
Well, I tried ropu's responsehandler test, and it timed out with no response. I keep fiddling with this, but it never works. :frusty: Does anyone have any idea why responsehandler isn't returning anything?
I actually had this issue earlier and it turned out to be that I was using the same account to purchase that takes the payment. I used my husband's account and it works now. If I could just get the order to show up in admin- all would be well. I'm getting the Invalid or not supported Message on the responsehandler- I believe that something is right. Just need to find that one little thing!!
Nancy
ladyink, thank you, thank you, thank you! You have no idea how much time I've spent troubleshooting that.... I never thought for a moment that the problem could be using my google checkout account to checkout. I tried my wife's account, and it went through! Yea!
I'm sorry you are still having trouble with orders showing up. You might try messing around with the PHP-CGI option called ".htaccess Basic Authentication Mode"
Thanks again!
Alright. I think I have everything working now, except for taxes. The only way I can get taxes to work is to define a tax class for each shipping type. However, this causes the shipping costs to be taxed as well. My state doesn't tax shipping costs. :( Is there a way to make it tax items without defining a tax class for each shipping type?
To compound this problem, my state makes me charge higher taxes in the county I live in. To solve that, I installed a mod that I can't find anymore, but essentially works like LadyHLG's Local Sales Tax Mod. Of course, Google Checkout isn't picking up that sales tax.
Has anyone had any success charging sales tax, but not applying it to shipping costs? Has anyone figured out how to get this to work with several different zip codes?
Thanks!
OK. I think I've figured out taxes. That seems to be the one area where this mod could use some improvement. I will make a post about how to do anything you want with taxes later, but it is kind of involved, and I am exhausted tonight, so I will write this post sometime in the next couple of days. Hopefully someone else will find it useful.
Anyway, I have one last problem with this module, and I don't know if it is caused by my template or not. I was hoping that someone could test this scenario on their Zen Cart install w/ GC and let me know if the same thing happens:
When estimate shipping on the shopping cart page is enabled AND a user is logged in, the sideboxes disappear.
Of course, the easy fix for this is to disable estimate shipping or change estimate shipping to a button that links to the estimator, however, I'd rather have it on my cart if possible. I'd love to hear if other people are having this problem or if it is just me and my template.
Thanks!
I have the same problem in ver. 1.3.7, which I have not figured out either. But I do see the php error message, "Fatal error: Cannot redeclare class order in .../includes/classes/order.php on line 23" But only in 1.3.7, when shipping estimator is set to display on the page (option 2), and when the user is logged in. The button-popup estimator (option 1) works just fine, logged in or not. And the on-page estimator works for a guest visitor, not logged in. If you're using 1.3.7, I assume you're getting exactly the same thing. The page stops displaying at that point before it has gotten to the right column sideboxes, or anything further in the center column as well. You might want to check to see if you're getting the same error message, but it didn't help me. I still couldn't figure it out.
This does not for me happen in 1.3.8a. It functions just fine with the estimator displayed on the page, and when the user is logged in.[Edit] I just realized, I don't have the Google Checkout mod running in 1.3.8a, becuase of the "Fatal error" I get when trying to install the module in admin, for which no one seems to have any advice. (See post #2651 on this thread.) Therefore, my production site is stuck in 1.3.7. I cannot upgrade to 1.3.8a, because I can't get the Google Module to install.[/Edit]
I am looking for a way to use Google Checkout with Zen Cart under multiple zone shipping rate tables. I searched for the answer and a few people says Google checkout module for Zen Cart currently supports only flat rate, per item rate and table rate, but no zone rates (multiple zone table rates). Because the Zen Cart standard version does provide only one zone table rate within a single country (USA), I had to install an add-on module that allows three more zone table rates within USA. In all, I have a total of three shipping zones, each shipping zone having a table rate based on the total sales amount. Currently I get an error message saying that my table rates are not configured... I think this is because I have multiple zone rates. Can anyone help me on this?
Ok i'm having a couple of weird problems here, hope someone can help me.
Problem #1, When you checkout with GC i'm not getting the orders back into ZC i went through this whole post and still cannot solve the problem. I'm getting them in GC just not in ZC.
Problem #2, Why is it when you checkout with GC the order stays in the shopping cart like you never purchased it has anyone an idea why it is doing this?
Help please!!!!!!
OK. I have the solution to two problems. But unfortunately, I have no idea what is going on with alan_powerbrixx's error message. That is a strange one... 1.3.8 seems to work for me with this mod.
dscott1966 -- I had the same problem with the blank error page. See the earlier posts. The cart not clearing may just be something that the author overlooked. Not too huge of a deal. Not getting them in GC probably means something is wrong with responsehandler. Don't know what exactly, but that is the file I would be looking at. Also, are you sure you defined the responslehandler.php file in your GC account under Integration? Otherwise, GC doesn't know where to send the information to.
Here are the two problems I solved:
1) Page stops loading when a customer is logged in and they go to their shopping cart page. This only happens when the shipping estimator is turned on for the shopping cart page AND a user is logged in. The problem is that orders.php is getting loaded twice when google checkout is used and the shipping estimator is used. To fix this problem, change these lines in /includes/modules/shipping_estimator.php:
You just need to comment these lines out, so the new code should look like:Code:// include the order class (uses the sendto !)
require(DIR_WS_CLASSES . 'order.php');
$order = new order;
PLEASE NOTE: This will break your shopping cart unless you use Google Checkout. So if you ever stop using google checkout, you will need to undo this change.Code:// include the order class (uses the sendto !)
// require(DIR_WS_CLASSES . 'order.php');
// $order = new order;
2) Taxes don't work or you want to use more complicated tax rules. The bad news is that this mod has some serious tax flaws. The good news is that the author created some easy to use tax functions, so creating your own tax rules directly in the code is easy to do! Here's how to create your own tax rules:
In /googlecheckout/gcheckout.php, go the end of the file. You want to cut out the following code right under the line "// Tax options":
You can just comment this out if you don't to remove it by adding /* to the beginning and */ to the end of this.Code:if(sizeof($tax_class_unique) == 1 && sizeof($module_info_enabled) == sizeof($tax_class)) {
$tax_result = $db->Execute( "select distinct countries_name, coalesce(zone_code, 'All Areas') zone_code, tax_rate, countries_iso_code_2
from " . TABLE_TAX_RATES . " as tr " .
" inner join " . TABLE_ZONES_TO_GEO_ZONES . " as ztgz on tr.tax_zone_id = ztgz.geo_zone_id " .
" inner join " . TABLE_COUNTRIES . " as c on ztgz.zone_country_id = c.countries_id " .
" left join " . TABLE_ZONES . " as z on ztgz.zone_id=z.zone_id
where tr.tax_class_id= '" . $tax_class_unique[0] ."'");
$num_rows = $tax_result->RecordCount();
$tax_rule = array();
for($j=0; $j<$num_rows; $j++) {
$tax_result->MoveNext();
$rate = ((double) ($tax_result->fields['tax_rate']))/100.0;
$GDtaxRule = new GoogleDefaultTaxRule($rate, 'true');
if($tax_result->fields['countries_iso_code_2'] == 'US') {
if($tax_result->fields['zone_code'] == 'All Areas') {
$GDtaxRule->SetCountryArea('ALL');
}
else {
$GDtaxRule->SetStateAreas($tax_result->fields['zone_code']);
}
}
else {
$GDtaxRule->AddPostalArea($tax_result->fields['countries_iso_code_2']);
}
$Gcart->AddDefaultTaxRules($GDtaxRule);
}
} else {
$GDtaxRule = new GoogleDefaultTaxRule(0, 'false');
$GDtaxRule->SetWorldArea(true);
$Gcart->AddDefaultTaxRules($GDtaxRule);
}
if(sizeof($tax_class_unique) > 1 || (sizeof($tax_class_unique) == 1 &&
sizeof($module_info_enabled) != sizeof($tax_class) )) {
$Gcart->SetButtonVariant(false);
$Gwarnings[] = GOOGLECHECKOUT_STRING_WARN_MULTIPLE_SHIP_TAX;
}
Then, you want to create your own tax rules to replace this code. Here is the basic format to do so:
This would create a 7.25% tax for all of California. Change the rate to anything you want. The false that follows it means that tax will not be calculated for shipping -- only the products. Change to true if shipping should be taxed. Then, the SetStateAreas allows you to select a state that is taxed. For multiple states, use an array. Use the two character state code, ex: OR=Oregon.Code:$GDtaxRule = new GoogleDefaultTaxRule('.0725', 'false');
$GDtaxRule->SetStateAreas('CA');
$Gcart->AddDefaultTaxRules($GDtaxRule);
If you want to define the tax rules by zip code, change SetStateAreas function to SetZipPatterns. You can use * as a wildcard, so the following code would tax someone at 5% including shipping for anyone at zip codes beginning with 11:
You can also use an array for the zip patterns function, allowing you to pick and choose zip codes from your county, or create other complicated zip code by zip code tax rules.Code:$GDtaxRule = new GoogleDefaultTaxRule('.05', 'true');
$GDtaxRule->SetZipPatterns('11*');
$Gcart->AddDefaultTaxRules($GDtaxRule);
If you define two areas that have some overlap, the first definition has priority. So, in this example, I have created an array with all the zip codes in Los Angeles County. LA County gets charged 8.25%. The rest of California gets charged 7.25%. I must put LA Country first, otherwise all of California, including LA County, will get charged 7.25% because the first definition has priority in a conflict:
There are several other functions you can use, but Zip Code and State were the most useful for me. The list of function includes:Code:$GDtaxRule = new GoogleDefaultTaxRule('.0825', 'false');
$GDtaxRule->SetZipPatterns(array(90001,90002,90003,90004,90005,90006,90007,90008,90009,90010,90011,90012,90013,90014,90015,90016,90017,90018,90019,90020,90021,90022,90023,90024,90025,90026,90027,90028,90029,90030,90031,90032,90033,90034,90035,90036,90037,90038,90039,90040,90041,90042,90043,90044,90045,90046,90047,90048,90049,90050,90051,90052,90053,90054,90055,90056,90057,90058,90059,90060,90061,90062,90063,90064,90065,90066,90067,90068,90069,90070,90071,90072,90073,90074,90075,90076,90077,90078,90079,90080,90081,90082,90083,90084,90086,90087,90088,90089,90091,90093,90094,90095,90096,90101,90102,90103,90189,90201,90202,90209,90210,90211,90212,90213,90220,90221,90222,90223,90224,90230,90231,90232,90233,90239,90240,90241,90242,90245,90247,90248,90249,90250,90251,90254,90255,90260,90261,90262,90263,90264,90265,90266,90267,90270,90272,90274,90275,90277,90278,90280,90290,90291,90292,90293,90294,90295,90296,90301,90302,90303,90304,90305,90306,90307,90308,90309,90310,90311,90312,90313,90397,90398,90401,90402,90403,90404,90405,90406,90407,90408,90409,90410,90411,90501,90502,90503,90504,90505,90506,90507,90508,90509,90510,90601,90602,90603,90604,90605,90606,90607,90608,90609,90610,90623,90630,90631,90637,90638,90639,90640,90650,90651,90652,90659,90660,90661,90662,90665,90670,90701,90702,90703,90704,90706,90707,90710,90711,90712,90713,90714,90715,90716,90717,90723,90731,90732,90733,90734,90744,90745,90746,90747,90748,90749,90755,90801,90802,90803,90804,90805,90806,90807,90808,90809,90810,90813,90814,90815,90822,90831,90832,90833,90834,90835,90840,90842,90844,90845,90846,90847,90848,90853,90888,91001,91003,91006,91007,91009,91010,91011,91012,91016,91017,91020,91021,91023,91024,91025,91030,91031,91040,91041,91042,91043,91046,91066,91077,91101,91102,91103,91104,91105,91106,91107,91108,91109,91110,91114,91115,91116,91117,91118,91121,91123,91124,91125,91126,91129,91131,91175,91182,91184,91185,91186,91187,91188,91189,91191,91201,91202,91203,91204,91205,91206,91207,91208,91209,91210,91214,91221,91222,91224,91225,91226,91301,91302,91303,91304,91305,91306,91307,91308,91309,91310,91311,91312,91313,91316,91321,91322,91324,91325,91326,91327,91328,91329,91330,91331,91333,91334,91335,91337,91340,91341,91342,91343,91344,91345,91346,91350,91351,91352,91353,91354,91355,91356,91357,91361,91362,91363,91364,91365,91367,91371,91372,91376,91380,91381,91382,91383,91384,91385,91386,91387,91388,91390,91392,91393,91394,91395,91396,91399,91401,91402,91403,91404,91405,91406,91407,91408,91409,91410,91411,91412,91413,91416,91423,91426,91436,91470,91482,91495,91496,91497,91499,91501,91502,91503,91504,91505,91506,91507,91508,91510,91521,91522,91523,91601,91602,91603,91604,91605,91606,91607,91608,91609,91610,91611,91612,91614,91615,91616,91617,91618,91702,91706,91709,91711,91715,91716,91722,91723,91724,91731,91732,91733,91734,91735,91740,91741,91744,91745,91746,91747,91748,91749,91750,91754,91755,91756,91759,91765,91766,91767,91768,91769,91770,91771,91772,91773,91775,91776,91778,91780,91788,91789,91790,91791,91792,91793,91795,91801,91802,91803,92397,93243,93510,93523,93532,93534,93535,93536,93539,93543,93544,93550,93551,93552,93553,93560,93563,93584,93586,93590,93591,93599));
$Gcart->AddDefaultTaxRules($GDtaxRule);
$GDtaxRule = new GoogleDefaultTaxRule('.0725', 'false');
$GDtaxRule->SetStateAreas('CA');
$Gcart->AddDefaultTaxRules($GDtaxRule);
SetStateAreas
SetZipPatterns
AddPostalArea
SetWorldArea
SetCountryArea
You can infer what these functions do if you poke around where they are defined. You will find them all in /googlecheckout/library/googletax.php.
I hope someone finds this useful.
Problem #1: (a.) Do you have SSL? If you do not, Google will not return order info to your cart.
(b.) Are you getting any errors reported by Google? You would have to look in your Google account page. These may help pinpoint the problem if it is not (a).
Problem #2: Should be solved when Problem #1 is solved. Your cart does not have the completed order info, so it doesn't know to remove the items from the shopping cart.
Srturner47 and Chain_man,
I want to thank you both for all your help.
Srtuner47,
I did see the post about the blank page and used my wifes account and that did the trick. I will try your other fixes and let you know how they work. Again thank you for your help.
Chain_Man,
I want to thank you for your help. I do not have ssl installed yet, I thought for testing purposes with the GC sandbox you did not need it, but i will jump on it first thing in the morning. I have not seen any errors, but i also don't know where to look for the errors in GC i have looked for where they could be but don't see any, But thank you so much for your in put and i will give it a try.
Thank you both will let you both know how it comes out.
267 pages. does someone not feel like breaking this down into segments, it is a lot when you are looking for answers.
I have tried reading as much as I can but there is a lot so I will keep going.
Is there a way to turn off the google postage, so it only uses the zen cart postage?
If no one has the answer has anyone made a good help file on setting up the postage for google checkout?
I have noticed the question pop up a lot while reading through this topic, but have yet to see an answer.
Hey guys,
I see good help on these 268 pages but I don't have any ideas about how to search here?
Could not you just refer me? I have the message:
"Sorry, we are not accepting payments from your region at this time."
I'm using only GC payment module latest version 1.4.7RC1 as well as Zen-Cart 1.3.8a.
I googled about 1 hour but didn't find any helpful info :-(
Do you have any free post items on your cart? As I found these on the search above
http://www.zen-cart.com/forum/showth...ts+region+time
http://www.zen-cart.com/forum/showth...ts+region+time
And both seem to point to free postage items causing a problem
Here's a possibly dumb question from a relative php novice: Would it work to change the require to require_once instead of commenting out these lines? Unless I missed something, it looks as if includes/class/order.php contains a class definition and several functions, but no main-line executable code. Is there a hidden problem lurking here if require_once were used? If that would do the job, then it wouldn't break if Google Checkout were removed.
I would try it myself to see, but (not to belabor the point) I can't install Google Checkout on my test site for reasons already mentioned on this thread.
Actually, I did try require_once in production for a moment, and it did appear to work. Again, I don't know if it would open up some hidden problems not apparent on a quick novice-level perusal of the code and a simple one-time test. The only problem for me is that the on-page shipping estimates push the Google Checkout and PayPal buttons down low on the shopping cart page, so I'd have to go diving into the code to rearrange the layout. So for now, I've set it back to the pop-up estimator button, until my boss weighs in on his preferences.
This is weird, i had this working in sandbox and live where the orders show up in zencart admin, however i just had two GC orders and they didn't show up in zencart admin. none of my settings have changed since fixing this problem. question in Google does the call back have to be set to xml or html? I just wondering why when i tested in both sandbox and live it worked but when a real order came through it didn't work?
alan_powerbrixx, nice call!
Going a step further, it would seem that an even better way to fix this problem would be to modify the code in GoogleCheckout and change it to require_once instead of require. This would fix the problem and not require any core file edits. However, when I look at gcheckout.php, it appears to already be a require_once function. responsehandler has require, but I don't see why responsehandler would be called on the shopping cart page, so this shouldn't be an issue. Strange...
It looks to be a matter of the require_once coming before the require, so both are executed. If you look up require_once in the php on-line manual, and read the thread of replies posted to that page, there is a post clarifying the sequence: require followed by require_once will include the file the first time only, but require_once followed by require will include the file both times. That's why the require in the shipping estimator would need to be fixed in some way, instead of the one in the googlecheckout mod.
The solution to the inline shipping estimator is located here:
http://www.zen-cart.com/forum/showpo...6&postcount=29
I finally solved the memory limit problem I had during installation of the module. (See earlier post http://www.zen-cart.com/forum/showpo...postcount=2651) It literally was a memory limit error in the table_block.php (specifically during the table_block() function within that file).
We are running PHP 5.2.6, but the memory limit has been set to 8Mb (apparently by my host support). I don't have access to change the setting at that level. But I was able to override the limit using the ini_set() function in php, which I placed at the beginning of the table_block() fuction in the admin/includes/classes/table_block.php file:
ini_set('memory_limit', '16M');
I thought I'd pass this along in case someone else could use the ini_set() function to override the memory_limit during the execution of a php script, or any of a long list of php.ini directives listed in the php on-line manual. The scope of the function is limited to the execution of the one script. Afterwards, the setting reverts to whatever it was before, if I understand correctly.
So now I can finish testing and (hopefully) upgrade to 1.3.8a. Finally, after months of waiting for a solution that I thought was a version-related conflict between 1.3.8a and googlecheckout mod.
:blush:
My solution at the moment is to dump it, and just go with the Nochex merchant account.
Add this as a send out payment request option for those that wish to pay through google checkout.
There are a lot of questions about this in this thread, as the search brings them up, but keeps going to page one rather than the post, but there do not seem to be any answers showing up in the search.
Shame it looked OK.
I HAVE INSTALLED GOOGLE CHECKOUT (1.4.7 AND ZEN VERSION 1.38A)
I COPIED ALL THE FILES OVER - BUT GET THE FOLLOWING ERROR UNDER MODULES / PAYMENTS IN THE ADMIN PANEL:
Fatal error: Cannot redeclare class googlecheckout in /home/mycellzf/public_html/includes/modules/payment/googlecheckout.php on line 308
CAN SOMEONE PLEASE HELP?
WEBSITE LINK: HTTP://WWW.MYCELLZ4LESS.COM
Admin and inventory issue with GCO.
I tried to go back and find info on this, but the posts are so intertwined that I can't make heads or tails out of it. I'm afraid I'll screw it up.
The orders for GCO are not subtracting from inventory.
I've read about htaccess and not understanding that fully. I set it to true in the payment module, entered keys for both regular and sandbox, click create and ... nothing. What's it supposed to do? How can I check that it did what it's supposed to do.
Another question. How did you all deal with the double checkout buttons? One for Zen Cart and one for GCO seems a bit confusing for customers.
Has anyone gotten GCO to work with Flat Rate and Free Options as shipping methods?
Right now GCO is letting people select free shipping even if they haven't qualified for it, and it's not automatically selecting free shipping for those that do.
Something is not being calculated here and sent to GC. Any ideas?
I haven't tried Flat Rate/Free shipping, but I use table rate just fine with Google Checkout. You can use table rate to set up free shipping over a certain amount and flat rate below that amount.