-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
signs
Can you tell me if this has been implemented yet?
I don't know what version of the responsehandler.php you are referring to, but the one I have doesn't even go to line 785. It ends at line 625. I am using your link in your signature to get to the latest SVN and if that's incorrect please advise. It states last update was 1/12. I am getting the files from this link:
http://google-checkout-zencart.googl...com/svn/trunk/
The mod in the d/l section is date with last revision of 1/12 also. If there is an updated version of this please let me know. I can't even get the sandbox to work with the version I have installed on a fresh zen cart. The logo does not appear and when you click the word "Google" where the logo should be, it gives the browser error message that the page cannot be loaded. (This is in sandbox mode and I suspect that since the sandbox address recently changed, that I am using an outdated version of the necessary files).
hi Signs,
I think you dont have the latest version
try http://google-checkout-zencart.googl...nsehandler.php it has 993 lines. (version 1.0.5)
i think you are using responsehandler.php form version 1.0.4 (625 lines) from the branch link of my signature, try TRUNK to get the latest working code (beta++).
Try this version (1.0.5b1) in a fresh install and tell me how it goes.
Im planning to put a demo ZenCart with this module working. Im working on it so you can also see on real time the communication with GC srv, i think this could solve many of your doubts.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
kebeid
ropu,
I've had this error in the integration:
We encountered an error trying to access your server at
https://kebeid.com/googlecheckout/responsehandler.php -- the error we got is: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: subject/issuer name chaining check failed
I've found it on the forum to be that the SSL cert. was installed incorrectly, and thats what Google says (the hierarchy isn't returned correctly by the responsehandler.php), but my SSL provider says otherwise - that it is installed correctly and my browsers say the same. Can this at all be from responsehandler.php? I'm just wondering because that is the only logical idea I can come up with right now. Thanks for your help!
-Pete
PS responsehandler.php has no probs loading - blank screen and no errors.
kebeid
As README file says, (TroubleShooting section, item 6)
Quote:
6. Problem: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
Solution: Your SSL certificate is not accepted by Google Checkout.
My best guess is not incorrectly installed, is that google does NOT accept it. :S
If you want to PM (or post here) your ssl provider, i can ask at google if its supported or not.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Originally Posted by ropu http://www.zen-cart.com/forum/images...s/viewpost.gif
Well, regarding this issue, we can add something so the buyer can know the password of its account, right now is a "random" number, and send it via email. (must double check GC TOS)
This is not implemented, right now i did an update so the buyer can login with his GC account number as password, see my post
http://www.zen-cart.com/forum/showpo...&postcount=595
As post http://www.zen-cart.com/forum/showpo...&postcount=594 says, you can send this info via that tool.
Double checking Admin UI, orders section, there is no easy way to find Buyers GC account Number. I can add this info near (See red)
Comments
Google Checkout Order No: 164671928710637
Merchant Calculations used: False
Buyer User: name AT mail DOT com
Buyer Pass: 123523412523
Do you think this could help you?
if so, ill add it.
(also looking for an other approach, any suggestions are welcome!)
Ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jacob13moon
Hi everyone,
This is Jacob from the Google Checkout team.
I'd like to let you know that we just released Google Checkout module for Zen Cart. This module provides Level 2 implementation of Google Checkout with Zen Cart, enabling you to provide Google Checkout to buyers and process orders through your admin UI.
This project is hosted at
http://code.google.com/p/google-checkout-zencart where you can find the latest release at any time.
Thanks,
Jacob
Great, will this solve the problem of inventory not update problem? I hope so.
-
Re: Google Checkout module for Zen Cart (beta)
Is the google checkout module in the downloads section supposed to work?
I followed all the instructions and tried several test orders, none of them ever show up in my sandbox account.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
DeFluxx
Is the google checkout module in the downloads section supposed to work?
I followed all the instructions and tried several test orders, none of them ever show up in my sandbox account.
Please, give us ur version, describe the problem and send the logs report
thank you
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I saw that some other users were having this issue as well. It was mentioned earlier in the thread but no resolution followed. Basically I only have the Google Checkout module installed for "payments". Whenever I choose to use the regular (ZenCart's) checkout process (instead of the google fast checkout ) it says it is using google checkout for step 2.... however it never prompts for a CC number or anything. I can just move to step 3 and place the order without paying for it. Is it not suppossed to work this way? My intentions were to use it to process CCs. I have tried version 1.0.4r and the latest version in Ropu's trunk (1.0.5 beta i think). the 1.0.5 shows xml data at the bottum of the screen but that's another thing. Any answers would be great!
Many Thanks,
Slugo
:cry::cry:
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Please, give us ur version, describe the problem and send the logs report
thank you
ropu
I'm using 1.0.4r
I don't know where there is a log report.
I followed the instructions included to install, created a "live" Google Checkout Account and a Sandbox account.
I entered the info into the Zen Module for the Sandbox Account
I tried placing an order on my testing website and nothing ever showed up on the Google Sandbox.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
slugo
I saw that some other users were having this issue as well. It was mentioned earlier in the thread but no resolution followed. Basically I only have the Google Checkout module installed for "payments". Whenever I choose to use the regular (ZenCart's) checkout process (instead of the google fast checkout ) it says it is using google checkout for step 2.... however it never prompts for a CC number or anything. I can just move to step 3 and place the order without paying for it. Is it not suppossed to work this way? My intentions were to use it to process CCs. I have tried version 1.0.4r and the latest version in Ropu's trunk (1.0.5 beta i think). the 1.0.5 shows xml data at the bottum of the screen but that's another thing. Any answers would be great!
Many Thanks,
Slugo
:cry::cry:
Slugo, hi
question?
have you add the correct templates?
includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php line 128.
PHP Code:
if (sizeof($selection) > 1) {
if($selection[$i]['id'] == "googlecheckout")
continue;
this code skips googleCheckout from the Regular Checkout Payment.
Double check this.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Slugo, hi
question?
have you add the correct templates?
includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php line 128.
PHP Code:
if (sizeof($selection) > 1) {
if($selection[$i]['id'] == "googlecheckout")
continue;
this code skips googleCheckout from the Regular Checkout Payment.
Double check this.
ropu
Yes it's there. I double checked both my template and template_default. Is google checkout supposed to even be used this way though? I believe the "Fast checkout through Google" works Okay. Do I need to have any other Payment Modules enabled? Right now I only have the Google Checkout "module" enabled. :dontgetit
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Version 1.0.4 is the one that does NOT support merchant calculations and is more stable. Version 1.0.5 is the one that DOES support MC but is in beta.
Thank you ropu for the version clarification. That helped a lot.
I will await when a version supporting zone based shipping method is available (e.g. USA vs all other countries). Or is that even on the roadmap?
Woody
-
Help!!! Technical Question About Google Checkout Setup
I have a question regarding google checkout manual setup
in the instructions it says to change the following code, but mine is different, I have posted what mine looks like below it, just the relevant parts, can someone please tell me which one to change, as there are two different references in my code to selection:
2. YOUR_ZENCART_FOLDER/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php LINE 127
================================================================================ ===============================================
REPLACE:
<?php
if (sizeof($selection) > 1) {
?>
WITH:
<?php
if (sizeof($selection) > 1) {
// ** GOOGLE CHECKOUT **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** END GOOGLE CHECKOUT **
?>
My file looks like this (lines 117 - 152):
<?php
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
?><p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
<?php
} elseif (sizeof($selection) == 0) {
?>
<p class="important"><?php echo TEXT_NO_PAYMENT_OPTIONS_AVAILABLE; ?></p>
<?php
}
?>
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
<?php
As you can see there are 2 instances of
<?php
if (sizeof($selection) > 1) {
?>
and neither are exactly like the example he listed, what do i do?
-
Question
hi ropu, i have a question, ive done the mods for GCO and the usps has now appear in the dropdown of GCO. My question is that what is it calculating? Becasue it doesnt callback to the site of usps to calculate the shipping, instead it only calculates the value i entered in the payment admin in google checkout.
-
got it
dont bother i got it working now! :lamo:
-
Re: Help!!! Technical Question About Google Checkout Setup
Quote:
Originally Posted by
humbll
I have a question regarding google checkout manual setup
in the instructions it says to change the following code, but mine is different, I have posted what mine looks like below it, just the relevant parts, can someone please tell me which one to change, as there are two different references in my code to selection:
2. YOUR_ZENCART_FOLDER/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php LINE 127
================================================================================ ===============================================
REPLACE:
<?php
if (sizeof($selection) > 1) {
?>
WITH:
<?php
if (sizeof($selection) > 1) {
// ** GOOGLE CHECKOUT **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** END GOOGLE CHECKOUT **
?>
My file looks like this (lines 117 - 152):
<?php
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
?><p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
<?php
} elseif (sizeof($selection) == 0) {
?>
<p class="important"><?php echo TEXT_NO_PAYMENT_OPTIONS_AVAILABLE; ?></p>
<?php
}
?>
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
<?php
As you can see there are 2 instances of
<?php
if (sizeof($selection) > 1) {
?>
and neither are exactly like the example he listed, what do i do?
humbll, hi!
yes, is true, there are 2
<?php
if (sizeof($selection) > 1) {
?>
But there is just ONE at line 127 :D, the second one. Im adding some bigger part of the code so you can see how the final code must be.
PHP Code:
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
if($selection[$i]['id'] == "googlecheckout")
continue;
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
ropu
-
Re: got it
Quote:
Originally Posted by
tme
dont bother i got it working now! :lamo:
Cool!
but have in mind the timeout problem
Google Checkout has a 3 sec timeout, sometimes USPS, UPS, fedex or any provider takes more than that time to response :S, so that could be the reason for Default Values appearing in the GC page.
Im working on an other approach, trying to parallelize calls and add timeout.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
ropu,
thanks for replying. it turns out that the certificate wasn't installed correctly. I have that corrected now. But a new problem arises and that is GCO communicated with my zencart to send the old order information I only got the first letter/number of all the information. Thanks for helping out.
-Pete
-
Re: Google Checkout module for Zen Cart (beta)
Hello,
I have had trouble with the install of google checkout for 1.3.7 . Every time I install the google checkout mod, it seems to overwrite my paypal EC buttons and displaying the GC button where the paypal EC button goes. Has this been happening to anyone else? I have read the install directions and done everything to the letter. Please let me know if there is a fix to this or if I may have done something wrong.
Thanks in advance.
-
Re: Google Checkout module for Zen Cart (beta)
Problem: Orders with Zencart using googlecheckout do not show up in zencart/admin orders list.
PLEASE HELP!
jeff
I'm using:
zen-cart-v1.3.7-full-fileset-12302006
(w/theme "silverfish")
google checkout 1.04r
I have doublechecked GoogleCheckout installation
In "response_error.log" I get:
Tue Feb 6 4:54:35 PST 2007:- Line 119: headers['Authorization'] is NULL.
At GC, Am using callback:
https://www.newenglandparkingcouncil...nsehandler.php
have tried both XML and HTML settings.
-
Re: Google Checkout module for Zen Cart (beta)
I have a zen cart that only sells virtual products (downloadable software). The google checkout payment module still does not appear to support this. The orders go through, but the products_attributes and products_downloads records do not get inserted. I had been inserting these records manually after an order goes through so I could still use Google Checkout on my site, but this has become far too cumbersome to deal with.
Is anyone working on this issue?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
aharper78
Hello,
I have had trouble with the install of google checkout for 1.3.7 . Every time I install the google checkout mod, it seems to overwrite my paypal EC buttons and displaying the GC button where the paypal EC button goes. Has this been happening to anyone else? I have read the install directions and done everything to the letter. Please let me know if there is a fix to this or if I may have done something wrong.
Thanks in advance.
Re: Paypal Express checkout don't show button
--------------------------------------------------------------------------------
From http://www.zen-cart.com/forum/showth...=47318&page=47 :
I've found that , if you want to use PayPal Express checkout too, you will have to do a bit of merging the GoogleCheckout code into the new versions of the 3 template files found in includes\templates\YOUR_TEMPLATE\templates. All of the 1.3.7 versions of those files have PayPal Express modifications in them. I found it easier to modify tpl_login_default.php and tpl_shopping_cart_default.php from the new versions by adding the GCO code. With the tpl_checkout_payment_default.php it was easier to add the PayPal Express code as it was better documented.
From http://www.zen-cart.com/forum/showth...=47318&page=49 :
It is probably easiest to use winmerge to compare the two files. But I don't have that tool, so did it the hard way.
Essentially, it's probably easiest to start with the new 1.3.7 version as your base code. Search the comparable GCO version for "google". In two of the files, there are only a couple of lines in the GCO version. Copy and paste these lines into the 1.3.7 version. (I'm hedging about which files as I don't have them in front of me.)
In the third file, there is a lot more "google" in the GCO code, and it is well commented. I used this at a base and compared the 1.3.7 version, picking out the PayPal Express sections and copying and pasting them into the CGO version.
I think either way would be about the same.
I placed all merged versions of the template files in the YOUR_TEMPLATE/templates folder, as specified in the Google Checkout mod. This will keep your mods in override mode and keep your 1.3.7 default template code intact.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
rosenblum68
Problem: Orders with Zencart using googlecheckout do not show up in zencart/admin orders list.
PLEASE HELP!
jeff
I'm using:
zen-cart-v1.3.7-full-fileset-12302006
(w/theme "silverfish")
google checkout 1.04r
I have doublechecked GoogleCheckout installation
In "response_error.log" I get:
Tue Feb 6 4:54:35 PST 2007:- Line 119: headers['Authorization'] is NULL.
At GC, Am using callback:
https://www.newenglandparkingcouncil...nsehandler.php
have tried both XML and HTML settings.
This has been covered a lot in this thread. Review the posts from about page 32 forward.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
rothkj1022
I have a zen cart that only sells virtual products (downloadable software). The google checkout payment module still does not appear to support this. The orders go through, but the products_attributes and products_downloads records do not get inserted. I had been inserting these records manually after an order goes through so I could still use Google Checkout on my site, but this has become far too cumbersome to deal with.
Is anyone working on this issue?
hi rothkj1022.
For now GC module does not support soft goods, because GC doesnt. But is in the agenda.
If anyone has any idea on how to make it work or an alternative solution, i can code it.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
rosenblum68
Problem: Orders with Zencart using googlecheckout do not show up in zencart/admin orders list.
PLEASE HELP!
jeff
I'm using:
zen-cart-v1.3.7-full-fileset-12302006
(w/theme "silverfish")
google checkout 1.04r
I have doublechecked GoogleCheckout installation
In "response_error.log" I get:
Tue Feb 6 4:54:35 PST 2007:- Line 119: headers['Authorization'] is NULL.
At GC, Am using callback:
https://www.newenglandparkingcouncil...nsehandler.php
have tried both XML and HTML settings.
SOLVED: solved the problem with a previous post:
Quote:
ropu has the code posted at:
http://google-checkout-zencart.googl...com/svn/trunk/
You will have to package the files yourself.
My suggestion is that you install 1.0.4 from the downloads then replace only these files - in the googlecheckout folder:
responsehandler.com
xmlbuilder.php
xmlparser.php
and add - in the googlecheckout folder:
googlemerchantcalculations.php
googleresult.php
You will be able to select one of the shipping methods as in 1.0.4. I use the table method.
This is the setup I have that works.
I believe that the newer responsehandler.php resolves the issue of items not feeding back to Admin. The two new files contain functions called by the new responsehandler.php and are needed to prevent error messages. The 2 xml...php files have improved xml handling functions.
The parts of 1.0.5 that don't seem to work - the merchant selectable shipping methods - are partly contained in gcheckout.php and the other files in the other folders that I don't recommend changing. ##############################___
Doug
-
Re: Google Checkout module for Zen Cart (beta)
has anyone gotten the google checkout to work with attributes yet?
Like say i have a T-shirt, available in red, white, blue and s, m, l, xl
when customers order they still choose the stuff, they see it as working and then when i go in my admin or google checkout it just says:
T-shirt - -
Shipping 8.50
That's it no size or color. It sure would be a pain to load every single item's attribute by hand ...AGAIN!
Please advise me how to take care of this.
Checkout is working other than that for me.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anjordan77
has anyone gotten the google checkout to work with attributes yet?
Like say i have a T-shirt, available in red, white, blue and s, m, l, xl
when customers order they still choose the stuff, they see it as working and then when i go in my admin or google checkout it just says:
T-shirt - -
Shipping 8.50
That's it no size or color. It sure would be a pain to load every single item's attribute by hand ...AGAIN!
Please advise me how to take care of this.
Checkout is working other than that for me.
anjordan77 hi,
please tell me witch version are you using?
i have 1.0.5, SVN latest, and attributes are shown.
Have a look to googlecheckout/gcheckout.php line 149
PHP Code:
$gcheck->element('item-description', $products_description);
at that line attributes are passed as item description.
as far a i can see, in ur implementation, item-description is empty.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
nope, i have that exact statement there.
Correct me if i'm wrong but Description is the description you type in about each product like for instance.
T-shirt (name)
This t-shirt is made of 50% cotton and 50% polyester and the sizes tend to run small. Choose Color and Size Below(description)
Color Drop down: Size Drop Down:(attributes)
Correct me if i'm wrong but the latest release for google checkout is 1.0.4.r
I have whatever google checkout was included in zen 1.3.5 and i'm running zen 1.3.5
-
Re: Google Checkout module for Zen Cart (beta)
I just reinstalled 1.0.4r, testing now:
// ** GOOGLE CHECKOUT **
Fatal error: Cannot redeclare class googlecheckout in /home/apbs77/public_html/includes/modules/payment/googlecheckout.php on line 26
-
Re: Google Checkout module for Zen Cart (beta)
Hi ropu,
i downloaded codes from http://google-checkout-zencart.googl...com/svn/trunk/ and installed. I am using zen-cart 1.3.7. I am right now working on sandbox. when i click on google checkout button, i am getting error as
<error serial-number="ea23ce78-bd0e-426a-88a2-606492a983d0">
−
<warning-messages>
−
<string>
XML failed to validate against the schema at line: 26, column: 26, with error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'.
</string>
−
<string>
XML failed to validate against the schema at line: 26, column: 26, with error: cvc-complex-type.2.2: Element 'price' must have no element [children], and the value must be valid.
</string>
</warning-messages>
−
<error-message>
Error parsing XML; message from parser is: Invalid value for body of price in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/merchant-calculated-shipping: Required field must not be blank
</error-message>
</error>
Can u please suggest what need to be done?
Thanks,
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
dinkar
Hi ropu,
i downloaded codes from
http://google-checkout-zencart.googl...com/svn/trunk/ and installed. I am using zen-cart 1.3.7. I am right now working on sandbox. when i click on google checkout button, i am getting error as
<error serial-number="ea23ce78-bd0e-426a-88a2-606492a983d0">
−
<warning-messages>
−
<string>
XML failed to validate against the schema at line: 26, column: 26, with error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'.
</string>
−
<string>
XML failed to validate against the schema at line: 26, column: 26, with error: cvc-complex-type.2.2: Element 'price' must have no element [children], and the value must be valid.
</string>
</warning-messages>
−
<error-message>
Error parsing XML; message from parser is: Invalid value for body of price in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/merchant-calculated-shipping: Required field must not be blank
</error-message>
</error>
Can u please suggest what need to be done?
Thanks,
Try setting correct Default Values in the Admin UI for all shipping Methods.
as far as i can see an empty string is sent in the price item
ropu
-
Google Checkout Sandbox URL change
I apologize if this is repeated somewhere in the forums, but I couldn't find mention of it myself. The URL for the Google Checkout Sandbox has changed:
http://groups.google.com/group/googl...id=-QVE1zTmcuw
So if you are already using the Zen Cart Google payment module (in sandbox mode for testing), you have to go into your configuration table, find the Google Checkout entries (probably towards the last rows) and edit the fields accordingly.
If you haven't run the install script yet, you can edit the sandbox urls in googlecheckout.php, so that the correct values get stored in the database.
Hope this helps someone, I was momentarily mystified.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anjordan77
I just reinstalled 1.0.4r, testing now:
// ** GOOGLE CHECKOUT **
Fatal error: Cannot redeclare class googlecheckout in /home/apbs77/public_html/includes/modules/payment/googlecheckout.php on line 26
AnJordan, the latest release is at googlecode svn/trunk 1.0.5
See my signature for the link.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Try setting correct Default Values in the Admin UI for all shipping Methods.
as far as i can see an empty string is sent in the price item
ropu
Hi ropu,
all have entered all shipping values as $5.00. see screen printout.
http://lh3.google.com/image/durjnet8...GCproblem1.JPG
I assume problem is something else.
pls suggest
-
Re: Google Checkout module for Zen Cart (beta)
I know many people have posted on this issue, and I have tried subsequent suggestions, with no luck. I am operating in Sandbox mode with the files from GCO 1.0.5.
Everything appears to be working (I receive email notification of an order and the message log shows the order xml data). However, the orders do not appear in my Zen admin, and stock is not deducted. The only error in my error log is:
Wed Feb 7 14:02:05 CST 2007:- Line 119: headers['Authorization'] is NULL.
Which appears several times. I don't see anything in my sandbox "Integration Issues" section.
I'm running Zen Cart 1.3.7.
Any help, direction, advice would be really appreciated.
-
Re: Google Checkout Sandbox URL change
Quote:
Originally Posted by
nabrown78
I apologize if this is repeated somewhere in the forums, but I couldn't find mention of it myself. The URL for the Google Checkout Sandbox has changed:
http://groups.google.com/group/googl...id=-QVE1zTmcuw
So if you are already using the Zen Cart Google payment module (in sandbox mode for testing), you have to go into your configuration table, find the Google Checkout entries (probably towards the last rows) and edit the fields accordingly.
If you haven't run the install script yet, you can edit the sandbox urls in googlecheckout.php, so that the correct values get stored in the database.
Hope this helps someone, I was momentarily mystified.
Please note that googlecheckout/gcheckout.php line 403
PHP Code:
if ($srv_mode == 'https://sandbox.google.com/checkout/' && $http_mode == 'http') {
also changed, /checkout/ is added
ropu
-
Re: Google Checkout Sandbox URL change
yeah i installed according to previous posts about adding the 5 files to googlecheckout/
things seem to work except the admin getting notification. I even see attributes popping up.
ropu, in other news, is google going to try to figure out how to merge the googlebase with zencart? the current googlefroogle feeder isn't quite up to par with google.
-
Re: Google Checkout Sandbox URL change
Quote:
Originally Posted by
anjordan77
yeah i installed according to previous posts about adding the 5 files to googlecheckout/
things seem to work except the admin getting notification. I even see attributes popping up.
ropu, in other news, is google going to try to figure out how to merge the googlebase with zencart? the current googlefroogle feeder isn't quite up to par with google.
try changing in version 1.0.5 googlecheckout/responsehandler.php line 93
PHP Code:
if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}
for
PHP Code:
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
$compare_mer_id = $_SERVER['PHP_AUTH_USER'];
$compare_mer_key = $_SERVER['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}
perhaps ur php version doent allow $HTTP_SERVER_VARS
TIP:
use the Test the implementation: in my signature to test responsehandler ;)
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Ropu -
Thanks for the new code. Somehow, I'm still getting the same result. Orders are made, show up in GC Sandbox okay, but don't feed back to Zen admin.
When I tried your test script, I placed in a chunk of the response_message.log that was an entire '<new-order-notification>'. What I got back when I went to responsehandler_test.php on my server was this:
Code:
HTTP/1.1 100 Continue HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Thu, 08 Feb 2007 18:31:14 GMT Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache X-Powered-By: PHP/4.4.4 Set-Cookie: zenid=fc05c7b4456169559a8d731ceb5541ff; path=/; domain=roll-over-rover.com Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 Time to response: 0.265028953552 segs Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
Hope that's not revealing too much. In any case, it's not really what I expected - is that what I should be seeing? Thanks for your help.
-
Re: Google Checkout module for Zen Cart (beta)
So it seems to me the problem must either be that one of $_SERVER['PHP_AUTH_USER'] or $_SERVER['PHP_AUTH_PW'] isnot set, or somehow my server isn't allowing me access to them or something. Is there any way I can test around these problems easily, to diagnose what's going on?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
nabrown78
So it seems to me the problem must either be that one of $_SERVER['PHP_AUTH_USER'] or $_SERVER['PHP_AUTH_PW'] isnot set, or somehow my server isn't allowing me access to them or something. Is there any way I can test around these problems easily, to diagnose what's going on?
Just for debugging, add
PHP Code:
<?php
print_r($_SERVER);
?>
in the first lines of responsehandler.php and run the responsehandler_test.php this will show you all the HTTP headers. one of them must be the Authentications-
if you post the result, please obfuscate the merchant id/key data.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Dear ropu,
Thanks for the snippet. So this is the array I see now, no Merchant ID or key in sight.
Code:
Array ( [PATH] => /usr/local/bin:/usr/bin:/bin
[CONTENT_LENGTH] => 2607
[CONTENT_TYPE] => application/xml
[DOCUMENT_ROOT] => /home/sally/public_html
[HTTP_ACCEPT] => application/xml
[HTTP_EXPECT] => 100-continue
[HTTP_HOST] => www.roll-over-rover.com
[REMOTE_ADDR] => 74.52.178.162 [REMOTE_PORT] => 41554 [SCRIPT_FILENAME] => /home/sally/public_html/store/googlecheckout/responsehandler.php [SERVER_ADDR] => 74.52.178.162
[SERVER_ADMIN] => [email protected]
[SERVER_NAME] => www.roll-over-rover.com
[SERVER_PORT] => 80
[SERVER_SOFTWARE] => Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b [GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] => [REQUEST_URI] => /store/googlecheckout/responsehandler.php
[SCRIPT_NAME] => /store/googlecheckout/responsehandler.php
[PHP_SELF] => /store/googlecheckout/responsehandler.php [argv] => Array ( ) [argc] => 0 )
I've been reading up on PHP as CGI rather than Apache - and that 'PHP_AUTH_USER' isn't available? I know some PHP, but I certainly don't know squat about server configurations, so I'm lost here. I'd like to figure it out though. I'm sure others may have this problem in the future as well.
Thanks
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
nabrown78
Dear ropu,
Thanks for the snippet. So this is the array I see now, no Merchant ID or key in sight.
Code:
Array ( [PATH] => /usr/local/bin:/usr/bin:/bin
[CONTENT_LENGTH] => 2607
[CONTENT_TYPE] => application/xml
[DOCUMENT_ROOT] => /home/sally/public_html
[HTTP_ACCEPT] => application/xml
[HTTP_EXPECT] => 100-continue
[HTTP_HOST] => www.roll-over-rover.com
[REMOTE_ADDR] => 74.52.178.162 [REMOTE_PORT] => 41554 [SCRIPT_FILENAME] => /home/sally/public_html/store/googlecheckout/responsehandler.php [SERVER_ADDR] => 74.52.178.162
[SERVER_ADMIN] => [email protected]
[SERVER_NAME] => www.roll-over-rover.com
[SERVER_PORT] => 80
[SERVER_SOFTWARE] => Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b [GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] => [REQUEST_URI] => /store/googlecheckout/responsehandler.php
[SCRIPT_NAME] => /store/googlecheckout/responsehandler.php
[PHP_SELF] => /store/googlecheckout/responsehandler.php [argv] => Array ( ) [argc] => 0 )
I've been reading up on PHP as CGI rather than Apache - and that 'PHP_AUTH_USER' isn't available? I know some PHP, but I certainly don't know squat about server configurations, so I'm lost here. I'd like to figure it out though. I'm sure others may have this problem in the future as well.
Thanks
from php manual
http://www.php.net/manual/en/reserve...riables.server
Quote:
PHP_AUTH_USER' When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the username provided by the user. 'PHP_AUTH_PW' When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the password provided by the user.
http://www.php.net/manual/en/features.http-auth.php
Quote:
The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI version.
This says it wont work with CGI.
But please try this approach
The $PHP_AUTH_USER, $PHP_AUTH_PW, and $PHP_AUTH_TYPE global variables are available only when PHP is installed as a module. If you're using the CGI version of PHP, you're limited to .htaccess-based authentication or database-driven authentication using HTML forms to input the username and password and PHP to validate matches.
UPDATE #5 from
http://drupal.org/node/28408
There are more tips to hack the CGI module, but is way out of the topic of this forum.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Has anyone come up with a stable, working GC module for 1.3.7 without any problems it creates with paypal EC?
-
Re: Google Checkout module for Zen Cart (beta)
does anyone know if this works OK with 1.3.7.
are there any changes that i would need to make to make this compatible?
any info would be great, i just want to make sure i know exactly what to do before i install it.
thank so much
-
Google Checkout module for Zen Cart (beta)
I have google checkout and paypal express checkout working on 1.3.7. I had a customer use the google checkout. It worked fine then. Here are the problems I see with Google Checkout though:
1) I offer insurance as optional. I have created a table and flat rate but the customer will not understand that the table rate is with insurance. Basically, the customer is not seeing the optional order additions.
2) Only 1 shipping option allowed... 1st Class (or priority or express), .... while Priority and Express are unavailable. The customer doesn't really know which shipping they are getting either. I have tried to create shipping files based on the tables.php but get a message
Warning: reset(): Passed variable is not an array or object in /home/xxxxx/public_html/admin/modules.php on line 279
Warning: Variable passed to each() is not an array or object in /home/xxxxx/public_html/admin/modules.php on line 280
I guess it wouldn't work even if I was able to install them?
I guess for now I can put some text on top of the button trying to explain the table vs. flat rate.... don't know how well this will work.
3) I am going to pull my hair out if one of my international customers pays with my US 1st class mail rate.... the Google Checkout module should have the option of allowing for a payment zone like paypal express checkout does.
I think Google Checkout should come back to the cart and finish the order, thus allowing the proper shipping and order additions to be included, if not this then it should allow more shipping options with descriptions.
I can send my \includes\templates\my_template\templates\ files to a zen cart support person if they would like to post them.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
For now GC module does not support soft goods, because GC doesnt. But is in the agenda.
Good to hear!
Quote:
Originally Posted by
ropu
If anyone has any idea on how to make it work or an alternative solution, i can code it.
Ropu,
For some ideas, maybe investigate how the PayPal IPN or PayPal Express for Zen Cart mods manage soft goods.
Unfortunately we had to remove Google Checkout from our shop.
1. Customers were getting confused when we offered one payment method for soft goods yet offered two payment methods for hard goods.
2. Too difficult to manage manually emailing purchased downloads to customers.
No disrespect intended but maybe we can convince the Google guys to throw some additional OS project development funding towards moving the GC for ZC mod development further along.
The day soft goods is supported by GC will be a very good day.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Dear ropu,
Can you tell me which version of GCO module currently supports international shipping ? Thank you.
-
Re: Google Checkout module for Zen Cart (beta)
The order of GC is not shown in the admin. I think several people already mentioned this, but I did not see the solution.
I check my sql, then I find the two tables google_orders and google_checkout were created (am I right?). Since all the tables of mine have the prefix. I think add the prefix to these two tables may work. But I don't know how to do that. Can anyone help to write the sql codes?
This may not work out, but I will try it.
Thanks,
-
Re: Google Checkout module for Zen Cart (beta)
OK... maybe i am missing something... I installed the latest version.. now the radio button is gone and the new sandbox url is not showing up... 1.04r is what I dl'd maybe I am a rere... maybe i missed the thread..... but I am lost now... I did remove and re-install the module... thanks for any help
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
yellow1912
Dear ropu,
Can you tell me which version of GCO module currently supports international shipping ? Thank you.
Yellow, hi
in fact GC module can support intl shipping. but the problem is that GC system does not support them.
When we have any updates, it will be notified here.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
eaglewu
The order of GC is not shown in the admin. I think several people already mentioned this, but I did not see the solution.
I check my sql, then I find the two tables google_orders and google_checkout were created (am I right?). Since all the tables of mine have the prefix. I think add the prefix to these two tables may work. But I don't know how to do that. Can anyone help to write the sql codes?
This may not work out, but I will try it.
Thanks,
Hi, that in fact wont change anything, table names are stored in the includes/modules/payment/googlecheckout.php class.
Please, double check ur logs, configuration and Doc files.
if that doesnt work, try to fully describe ur issue...
ropu
-
Re: Google Checkout module for Zen Cart (beta)
completed a site that uses two custom shipping modules for R&L freightlines, and the new UPSxml interface. Reading the GCO notes we need to , according to the release notes .....
"For each enabled module you'll have to set the default values in the Google Checkout Admin UI.This Value will be used if for any reason Google Checkout cannot reach your API callback to calculate the shipping price. "
>> where is this configured .... i dont see a place to do this in GCO admin or in ZC admin
"The available shipping methods for each shipping provider must be configured in includes/modules/payment/googlecheckout.php in the mc_shipping_methods parameter. If you want to disable one or more methods, just comment them out.
Be aware that if you mix flat rate and real time rates, both will be taken as merchant-calculated-shipping. "
>> where is this ?
Can you give me some clues on what is required to get these extra shipping modules to take effect . The notes refer to includes/modules/payment/googlecheckout.php in the mc_shipping_methods there is no such code structure.
im running a ZC 1.3.6 .... and GCO
GOOGLE CHECKOUT PLUGIN FOR ZEN CART v1.0.5b1 - 1/12/2007
Please , any help is gettign my two shipping moduels to with with GCO is appreciated
-
Re: Google Checkout module for Zen Cart (beta)
We completed a ZC site that uses two custom shipping modules for R&L freightlines, and the new UPSxml interface. Reading the GCO notes we need to , according to the release notes .....
"For each enabled module you'll have to set the default values in the Google Checkout Admin UI.This Value will be used if for any reason Google Checkout cannot reach your API callback to calculate the shipping price. "
>> where is this configured .... i dont see a place to do this in GCO admin or in ZC admin
"The available shipping methods for each shipping provider must be configured in includes/modules/payment/googlecheckout.php in the mc_shipping_methods parameter. If you want to disable one or more methods, just comment them out.
Be aware that if you mix flat rate and real time rates, both will be taken as merchant-calculated-shipping. "
>> where is this ?
Can you give me some clues on what is required to get these extra shipping modules to take effect . The notes refer to includes/modules/payment/googlecheckout.php in the mc_shipping_methods there is no such code structure.
im running a ZC 1.3.6 .... and GCO
GOOGLE CHECKOUT PLUGIN FOR ZEN CART v1.0.5b1 - 1/12/2007
Please , any help is gettign my two shipping moduels to with with GCO is appreciated
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
regenbauma
completed a site that uses two custom shipping modules for R&L freightlines, and the new UPSxml interface. Reading the GCO notes we need to , according to the release notes .....
"For each enabled module you'll have to set the default values in the Google Checkout Admin UI.This Value will be used if for any reason Google Checkout cannot reach your API callback to calculate the shipping price. "
>> where is this configured .... i dont see a place to do this in GCO admin or in ZC admin
"The available shipping methods for each shipping provider must be configured in includes/modules/payment/googlecheckout.php in the mc_shipping_methods parameter. If you want to disable one or more methods, just comment them out.
Be aware that if you mix flat rate and real time rates, both will be taken as merchant-calculated-shipping. "
>> where is this ?
Can you give me some clues on what is required to get these extra shipping modules to take effect . The notes refer to includes/modules/payment/googlecheckout.php in the mc_shipping_methods there is no such code structure.
im running a ZC 1.3.6 .... and GCO
GOOGLE CHECKOUT PLUGIN FOR ZEN CART v1.0.5b1 - 1/12/2007
Please , any help is gettign my two shipping moduels to with with GCO is appreciated
hi regenbauma,
this is a resumed copy of the ncludes/modules/payment/googlecheckout.php mc_shipping_methods method:
PHP Code:
$this->mc_shipping_methods = array('usps' => array( 'domestic_types' =>
array( 'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Library' => 'Library'),
'international_types' =>
array( 'GXG Document' => 'Global Express Guaranteed Document Service',
'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
'Express' => 'Global Express Mail (EMS)'
),
'zones' => array(
'domestic_types' => array('zones' => 'Zones Rates')
),
'fedexexpress' => array(
'domestic_types' => array(
'03' => 'FedEx 2Day',
'20' => 'FedEx Express Saver')
),
'fedexground' => array(
'domestic_types' => array(
'92' => 'FedEx Ground Service')
),
// flat methods
'flat' => array(
'domestic_types' => array('flat' => GOOGLECHECKOUT_FLAT_RATE_SHIPPING)
),
'item' => array(
'domestic_types' => array('item' => GOOGLECHECKOUT_ITEM_RATE_SHIPPING)
),
'table' => array(
'domestic_types' => array('table' => GOOGLECHECKOUT_TABLE_RATE_SHIPPING)
)
);
you should also add this
PHP Code:
$this->mc_shipping_methods_names = array(
'usps' => 'USPS',
'fedexexpress' => 'Fedex Express',
'fedexground' => 'Fedex Ground',
'zones' => 'Zones',
'flat' => 'Flat Rate',
'item' => 'Item',
'table' => 'Table');
hope this helps.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Wow, five months later and there still isn't a stable release of this mod?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
TripleMoons
Wow, five months later and there still isn't a stable release of this mod?
Tripple, the release is stable with a flat Zencart installation, the issue is when, as you may notice, must be merged with many different contributions and server configurations.
Im publishing some demos servers to show how this module works.
For now the only big issue is the time out problem with shipping calculations. but that is not a GC module fault, GC srv times out in 3 secs, and as you should know FEdex, usps, ups, some times take longer to response. More over, php doe NOT have threads, so is difficult to do parallel instead of serial ones, this makes providers timeout to sum, increasing the chance of GC srv timeout. Any ideas are very appreciated!
Here is what the idea is about,
http://www.webforumz.com/php-forum/1....htm#post96102
if you still have issues, please, post them or PM me, im sure we can solve them
Thank you for all your collaboration,
ropu
-
Google Checkout not updating in Admin
I too am having trouble getting Google Checkout orders to show up in admin. I've double checked the installation and everything appears to be in order. I do not receive any error messages from Google, or from the responsehandler.php.
What should I be looking for that would cause Zencart to not update with orders processed via Google Checkout?
Any help would be appriciated.
-
Re: Google Checkout not updating in Admin
Quote:
Originally Posted by
nresults
I too am having trouble getting Google Checkout orders to show up in admin. I've double checked the installation and everything appears to be in order. I do not receive any error messages from Google, or from the responsehandler.php.
What should I be looking for that would cause Zencart to not update with orders processed via Google Checkout?
Any help would be appriciated.
nresults, have you look at the logs under googlecheckout/ ?
you have tested responshandler.php with responsehandler_test.php in my signature?
give us your site configuration, zencart version, GC module version, web server config, using CGI?
all this info help us determine where is ur issue.
thanks, ropu
-
Re: Google Checkout module for Zen Cart (beta)
"New"release, what date? If one installed this in the last weeks, is it already out of date?
Quote:
Originally Posted by
jacob13moon
Hi everyone,
This is Jacob from the Google Checkout team.
I'd like to let you know that we just released Google Checkout module for Zen Cart. This module provides Level 2 implementation of Google Checkout with Zen Cart, enabling you to provide Google Checkout to buyers and process orders through your admin UI.
This project is hosted at
http://code.google.com/p/google-checkout-zencart where you can find the latest release at any time.
Thanks,
Jacob
-
Re: Google Checkout not updating in Admin
Quote:
Originally Posted by
ropu
nresults, have you look at the logs under googlecheckout/ ?
you have tested responshandler.php with responsehandler_test.php in my signature?
give us your site configuration, zencart version, GC module version, web server config, using CGI?
all this info help us determine where is ur issue.
thanks, ropu
Thanks for your prompt response Ropu!
The responsehandler_test.php returned the following:
**************
HTTP/1.1 200 OK
Date: Tue, 13 Feb 2007 20:45:24 GMT
Server: Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/4.4.3
Set-Cookie: zenid=b2d57e15f53f5eeaaf4db13bd6d248af; path=/; domain=<<removed for privacy>>
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Time to response: 2.30815291405 segs
Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
***************
I'm currently running the following:
Zencart Version: V1.3.6
Database Patch Level: 1.3.6
Database: MySQL 4.1.21-standard
HTTP Server: Apache/1.3.37 (Unix)
PHP Version: 4.4.3 (Zend: 1.3.0)
Server API: CGI/FastCGI
PHP API: 20020918
PHP Extension: 20020429
Google Checkout: Version 1.0.4r
The response_error.log file contains the following error message, repeated with a new date for each transaction attempt.
"Tue Feb 13 14:45:24 CST 2007:- Line 119: headers['Authorization'] is NULL."
I'm a little new to this. I hope I have given you the information you need.
Thanks for your help!
nresults
-
Re: Google Checkout module for Zen Cart (beta)
ropu..thanks for your response. My error was a stupid one, i now have the correct files in place and procesed to add our custom shipping modules to the structure of mc_shipping_methods so i added
'upsxml' => array('domestic_types' => array('GND' => 'Ground') ),
'freight' => array('domestic_types' => array('STD' => 'Standard') ),
and i added
'upsxml' => 'UPS Ground',
'freight' => 'RL Freight',
to mc_shipping_methods_names
the shipping modules that I have active in modules shipping are "collect from store", "freight" and "upsxml" (the xml based ups ship module gleaned from oscommerce).
Sadly , when I do a checkout i still only get the "collect from store" displaying in the GCO screen" ... so when i dig into the code in googlecheckout to try and find out if its building the correct <shipping-methods> element in gcheckout.php
the first mql query in shipping....
select configuration_value from configuration where configuration_key = 'MODULE_PAYMENT_GOOGLECHECKOUT_SHIPPING';
returns
"freightSTD_VD:50, upsGND_VD:30, upsxmlGND_VD:30"
im not sure i understand how you determine what modules are activated, as far as I can tell these modules are activated ....
If you can give me any other areas to consider checking as to why GCO wontpick up these realtime methods other than the standard "collect", would be most appreciated
again , running gco latest from svn 1.0.5 and zc 1.3.6 .... the cart is at www.fitnessrubber.com
Allan
-
Re: Google Checkout module for Zen Cart (beta)
Hi Ropu,
I have orders coming up in the admin but they don't have complete information. I used the test responsehandler to redo an xml and i have got this error out of it:
Code:
HTTP/1.1 200 OK
Date: Wed, 14 Feb 2007 05:34:31 GMT
Server: Apache
X-Powered-By: PHP/4.3.11
Set-Cookie: zenid=blahblah; path=/; domain=kebeid.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
<?xml version="1.0" encoding="UTF-8"?><notification-acknowledgment xmlns="http://checkout.google.com/schema/2"/><br />
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/hsphere/local/home/kebeid/kebeid.com/googlecheckout/responsehandler.php</b> on line <b>158</b><br />
Time to response: 2.0984630584717 segs
Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
Thanks,
Pete
-
Re: Google Checkout not updating in Admin
Quote:
Originally Posted by
nresults
Thanks for your prompt response Ropu!
The responsehandler_test.php returned the following:
**************
HTTP/1.1 200 OK
Date: Tue, 13 Feb 2007 20:45:24 GMT
Server: Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/4.4.3
Set-Cookie: zenid=b2d57e15f53f5eeaaf4db13bd6d248af; path=/; domain=<<removed for privacy>>
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Time to response: 2.30815291405 segs
Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
***************
I'm currently running the following:
Zencart Version: V1.3.6
Database Patch Level: 1.3.6
Database: MySQL 4.1.21-standard
HTTP Server: Apache/1.3.37 (Unix)
PHP Version: 4.4.3 (Zend: 1.3.0)
Server API: CGI/FastCGI
PHP API: 20020918
PHP Extension: 20020429
Google Checkout: Version 1.0.4r
The response_error.log file contains the following error message, repeated with a new date for each transaction attempt.
"Tue Feb 13 14:45:24 CST 2007:- Line 119: headers['Authorization'] is NULL."
I'm a little new to this. I hope I have given you the information you need.
Thanks for your help!
nresults
Hi, there is an issue with CGI configurations.
Basic Authentication in not "compatible" with PHP over CGI (see php manual, and previous posts)
$_SERVER var cant get basic auth info
im doing a script to generate a pair of .htaccess .htpasswd to generate that auth using them.
im testing it in my srvs and delivered ASAP so you can test it.
ropu
-
Re: Google Checkout not updating in Admin
Quote:
Originally Posted by
ropu
Hi, there is an issue with CGI configurations.
Basic Authentication in not "compatible" with PHP over CGI (see php manual, and previous posts)
$_SERVER var cant get basic auth info
im doing a script to generate a pair of .htaccess .htpasswd to generate that auth using them.
im testing it in my srvs and delivered ASAP so you can test it.
ropu
Here is a little script to create the .htaccess .htpasswd files to use Basic Authentication with CGI PHP authentication.
Please, try it and let me know how it works for you.
Note that the apache config to allow .htaccess files must be present
Should look similar to this
Code:
<Directory /home/*/public_html>
AllowOverride All
</Directory>
Have a look to the README in the Script, you must comment PHP Validation
PHP Code:
<?php
// For function rand_salt_crypt()
// Copyright (C) 2004,2005 Jarno Elonen <[email protected]>
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this
// list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * The name of the author may not be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// .htaccess .htpasswd pair for Google Checkout Basic authentication on CGI php installations
// Coded by Ropu
// 02-14-2006 st. Valentine's day :D
/*
* README:
*
* NOTE: This must be used if you run PHP over CGI
*
* Run this script, fill the form with your Google Checkout Merchant Id/Key
* and with the absolute path to your catalog/googlechekout/ directoy.
* ie. /home/ropu/public_html/cart/googlecheckout
*
* Click "Create"
*
* Copy the contents for .htaccess and .htpasswd into those files and place
* them in that directory.
*
* Remove or comment from googlecheckout/responsehandler.php the folowing code:
*
*
[code]
//Parse the HTTP header to verify the source.
if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
}
else {
error_func("HTTP Basic Authentication failed.\n");
exit(1);
}
$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key = $googlepayment->merchantkey;
if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("HTTP Basic Authentication failed.\n");
exit(1);
}
[/code]
*
* Test the responsehandler.php with the responsehandler_test.php
*
*/
if(isset($_POST['submit'])) {
$user = $_POST['id'];
$pass = $_POST['key'];
$crypt_pass = rand_salt_crypt($pass);
echo "<xmp>.htaccess file:\n<<<Start---\n";
echo 'AuthName "Google checkout Basic Authentication"' . "\n";
echo 'AuthType Basic' . "\n";
echo 'AuthUserFile ' . $_POST['path'] . "/.htpasswd\n";
echo 'require valid-user' . "\n---End>>>\n";
echo "\n\n.htpasswd file:\n<<<Start---\n";
echo $user . ":" . $crypt_pass ."\n---End>>>\n</xmp>\n";
}
?>
<title>.htaccess .htpasswd pair for Google Checkout Basic authentication on CGI php installations</title>
<h2>.htaccess .htpasswd pair for Google Checkout Basic authentication on CGI php installations</h2>
<form action="" method="post">
<table>
<tr>
<th align="right">Merchant ID:</th><td><input type="text" value="<?=@$_POST['id'];?>" name="id" size="40"/></td>
</tr>
<tr>
<th align="right">Merchant Key:</th><td><input type="text" value="<?=@$_POST['key'];?>" name="key" size="40"/></td>
</tr>
<tr>
<th align="right">Absolute path to googlecheckout/ :</th><td><input type="text" value="<?=@$_POST['path'];?>" name="path" size="40"/></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="submit" name="submit" value="Create"/></td>
</tr>
</table>
</form>
<?
// Generates a htpasswd compatible crypted password string.
function rand_salt_crypt( $pass )
{
$salt = "";
mt_srand((double)microtime()*1000000);
for ($i=0; $i<CRYPT_SALT_LENGTH; $i++)
$salt .= substr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./", mt_rand() & 63, 1);
return crypt($pass, $salt);
}
?>
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Tripple, the release is stable with a flat Zencart installation, the issue is when, as you may notice, must be merged with many different contributions and server configurations.
If you referring to all the misc code that people have to input into the "stable" Google Checkout release, that is what I'm referring to it be unstable. You shouldn't have to customize the code provided that much if it's correct in the first place.
Until it is provided in a single ZIP file ready to use, it is unstable in my eyes. ;)
People are obviously still having problems with orders showing up in their admin & it reading the correct shipping charges from ZenCart.
-
Re: Google Checkout module for Zen Cart (beta)
Trying to get the GC sandbox working... Can someone tell me exactly what I need to change in v1.04 to make it work with the new Sandbox URL?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
mpayson
Trying to get the GC sandbox working... Can someone tell me exactly what I need to change in v1.04 to make it work with the new Sandbox URL?
mpayson
have a look to this post, there is the solution
http://www.zen-cart.com/forum/showth...755#post315755
if you need more help, feel free to ask again
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Sorry, I didn't go quite far enough back to find that post.
FYI, It looks like your newest version isn't properly showing up on the website. I just noticed that the changelog on the website says that you already fixed this, but I just installed what I assumed was the latest version a few days ago, and it wasn't fixed in it. To verify that I hadn't screwed up someplace, I just downloaded it again from the Zen Cart downloads page. The changelog included in the readme in the zip file doesn't mention v1.04r, and doesn't reference the change. The last change that it references is "11/16/2006 v1.0.4 (colosports)". Line 200 of modules/payments/googlecheckout.php is:
Code:
$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())");
-
Google Checkout Multiple Fields Are Not Being Populated
Someone has already mentioned that order.order_total is not being populated by google checkout.
---------------------------------------------
Here are additional issues (if you sell special items you might want to look and see if any of your fields are not getting populated):
order.order_tax is not being populated
orders_products.prid is not being populated (i don't know the significance)
orders_products_attributes.products_attributes_weight is not being populated
orders_products_attributes.products_attributes_weight_prefix is not being populated
orders_products_attributes.attributes_qty_prices is not being populated
orders_products_attributes.attributes_qty_prices_onetime is not being populated
orders_products_attributes.products_options_id is not being populated
orders_products_attributes.products_options_values_id is not being populated
orders_products_attributes.products_prid is not being populated (i don't know the significance)
Along with this google checkout is placing abbreviated State and Country information in the order table fields. This is contrary to how Zen Cart treats these fields.
Also, with orders_total.title a different tax title is being placed into the field instead of the one that Zen Cart places in.
I use the order table to build reports. Any data changes just means I will have to take the time to clean up fields to get my reports.
Most orders show up fine... I have had one order show up without the products in the order.
-
Re: Google Checkout module for Zen Cart (beta)
emptied my cart testing google checkout.. and got this at the bottom of the page
Fatal error: Cannot redeclare selfurl() (previously declared in /home/poison67/public_html/yourlingerieparty/googlecheckout/gcheckout.php:37) in /home/poison67/public_html/yourlingerieparty/googlecheckout/gcheckout.php on line 36
-
Re: Google Checkout module for Zen Cart (beta)
GC 1.5 is installed & working, but orders are still not showing up in Admin. responsehandler.php opened directly returns the error:
Fatal error: Call to a member function on a non-object in /home/mpayson/public_html/zc137/includes/languages/english/credit_cards.php on line 57
That error doesn't appear to be mentioned in any other post in this thread. That file has not been edited in my install. Here is line 57 for reference:
Code:
define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));
Since I don't accept credit cards directly, I can't imagine why this is even being called. No additional payment modules are even installed.
response_error.log reports:
Sun Feb 18 0:23:46 EST 2007:- Shopping cart not obtained from session.
Please forgive me for not reading through the entire 68 pages of this thread before posting. I've read many of the posts, particularly from around p32 and through p49 to this point (plus roughly p60+). Based on the recommendations on those pages I've upgraded from 1.04r to 1.5, but I'm still getting the same error. I'll keep reading through the rest of the thread, but if anyone has any suggestions in the meantime, I would really appreciate it.
-
Re: Google Checkout module for Zen Cart (beta)
Ok, i got the admin working with the latest revision. i have sizes, colors, etc. working also.
Basically Comment out these lines like below in the responsehandler.php:
/*if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) &&
isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key =
$HTTP_SERVER_VARS['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}*/
$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key =
$googlepayment->merchantkey;
/*if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("Line 127: merchant_id or merchant_key does not match.\n");
exit(1);
}*/
-
Re: Google Checkout module for Zen Cart (beta)
I got the Google checkout button on my checkout. But when you go through it to order something it goes all the way to the last step you click Confirm the Order and you get a page that says "Email Error: SMTP Error: Could not connect to SMTP host." Now what do I do? Please help.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anjordan77
Ok, i got the admin working with the latest revision. i have sizes, colors, etc. working also.
Basically Comment out these lines like below in the responsehandler.php:
/*if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) &&
isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key =
$HTTP_SERVER_VARS['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}*/
$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key =
$googlepayment->merchantkey;
/*if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("Line 127: merchant_id or merchant_key does not match.\n");
exit(1);
}*/
anjordan77, hi
Thanks for your comment. This will work because u take out the security measures to authenticate the messages sent. With out that code any one could send spoofed messages to ur responsehandler. Please, have a look to this post where i explain how to set .htaccess for those with PHP over CGI, where Basic Authentication is Not supported.
http://www.zen-cart.com/forum/showpo...&postcount=665
Try it and let us know how it worked.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I got the Google checkout button on my checkout. But when you go through it to order something it goes all the way to the last step you click Confirm the Order and you get a page that says "Email Error: SMTP Error: Could not connect to SMTP host." Now what do I do? Please help.
jhaase83, hi
Could you explain a little more ur issue.
I can understand if the error arises in ur zencart page or google's one.
If it is in your site, the error is somewhere else. u shouldnt have any "Confirm the order" button in zencart, that must be in the GC site
thanks,
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Ropu,
I believe it is on my zen cart. The page looks like my web site. I think the problem is when it is trying to leave my site to go to GC to get the credit card info. I was not asked for any payment info before the error page.
Here is what I did.
I picked an item to order, added to cart, went to checkout, confirmed address, picked payment option, confirm the order, then error page. The order did show up on my admin.
Is that enough info? Or is there something else you need?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Ropu,
I believe it is on my zen cart. The page looks like my web site. I think the problem is when it is trying to leave my site to go to GC to get the credit card info. I was not asked for any payment info before the error page.
Here is what I did.
I picked an item to order, added to cart, went to checkout, confirmed address, picked payment option, confirm the order, then error page. The order did show up on my admin.
Is that enough info? Or is there something else you need?
Well, thats a problem with your installation. Do you see in any place of your shopping cart or login page the GC button like this ones
http://code.google.com/apis/checkout...generator.html ?
if not, double check the template installation, you must rename the dir YOUR_TEMPLATE with the name of your own template.
you should not use regular checkout to use GC, u only need to add items to the cart, and then click GC button. Google handles all the rest of the checkout.
any doubt, feel free to ask.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Ropu,
I think I understand now. Let me know if this is right.
Yes I have it set up wrong. When I uploaded the files I did not put them in my Custom folder. Which is where my custom template is. This is where the files need to be.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Ropu,
I think I understand now. Let me know if this is right.
Yes I have it set up wrong. When I uploaded the files I did not put them in my Custom folder. Which is where my custom template is. This is where the files need to be.
The files under YOUR_TEMPLATE dir yes, you put them under ur custom template folder
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Ropu,
Ok. Once I have done this is there anything else that needs done to get the button on my site? Or will it just be there?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Ropu,
Ok. Once I have done this is there anything else that needs done to get the button on my site? Or will it just be there?
it should be there...
But remember to read README and INSTALLATION files first, most issues are solved there, its easier and faster :D
there are the instructions!
u must activate the module in the Admin UI, get ur Merchant id/key from google checkout, and test the integration.
any other questions , just post them, ill do everything to solve it
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I have the files right now. I went to the set it said to check to see if I got a blank page. This is what I got
Fatal error: Call to undefined function: getallheaders() in /home/jhaase83/public_html/googlecheckout/responsehandler.php on line 112
Now I have to fix this. Do you have any idea what might be wrong? I did not change anything on this file.
-
Re: Google Checkout module for Zen Cart (beta)
I cannot get the merchant calculations to work. Every shipping option shows up as $0.00.
I just checked my admin and I saw this on the last order I received-
02/13/2007 11:53:34 Pending Google Checkout Order No: xxxxxxxxxxxxMerachnat Calculations: false
Why is the word merchant spelled incorrectly and how to I set it to true?
I am using the version 1.05
michelle
-
Google Checkout Shipping Sanity Check
Will someone please confirm:
You must use one of the three methods (flat, item, table) to get Google to add on shipping? For all my customers then I must use a table rate now if I use GCO? Can I just use Table Rate for GOC and not give this option to the folks that checkout through the cart normally?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I have the files right now. I went to the set it said to check to see if I got a blank page. This is what I got
Fatal error: Call to undefined function: getallheaders() in /home/jhaase83/public_html/googlecheckout/responsehandler.php on line 112
Now I have to fix this. Do you have any idea what might be wrong? I did not change anything on this file.
jhaase83, hi, ur are using an old version of the module, that issue was fixed in version 1.0.5
HTML Code:
11/28/2006 v1.0.5 (ropu)
- Add support for Merchant Calculated Shipping Rates.
- Fixed minor bugs in responsehandler.php and orders.php files
- Change the XML parser and builder
- Removed getallheader() function
- Fixed wrong Qty in Admin UI
- Fixed modules not saving their settings
- Fixed Notify Customer option
- Add state change, Risk and charge notification into the Admin UI
- Add support for coupons
- Fix Shopping cart not obtained from session. See TROUBLE SHOOTING.
Latest version is
HTML Code:
01/12/2007 v1.0.5b1 (ropu)
- Fix <tax-table-selector> strict validation.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
regenbauma
ropu..thanks for your response. My error was a stupid one, i now have the correct files in place and procesed to add our custom shipping modules to the structure of mc_shipping_methods so i added
'upsxml' => array('domestic_types' => array('GND' => 'Ground') ),
'freight' => array('domestic_types' => array('STD' => 'Standard') ),
and i added
'upsxml' => 'UPS Ground',
'freight' => 'RL Freight',
to mc_shipping_methods_names
the shipping modules that I have active in modules shipping are "collect from store", "freight" and "upsxml" (the xml based ups ship module gleaned from oscommerce).
Sadly , when I do a checkout i still only get the "collect from store" displaying in the GCO screen" ... so when i dig into the code in googlecheckout to try and find out if its building the correct <shipping-methods> element in gcheckout.php
the first mql query in shipping....
select configuration_value from configuration where configuration_key = 'MODULE_PAYMENT_GOOGLECHECKOUT_SHIPPING';
returns
"freightSTD_VD:50, upsGND_VD:30, upsxmlGND_VD:30"
im not sure i understand how you determine what modules are activated, as far as I can tell these modules are activated ....
If you can give me any other areas to consider checking as to why GCO wontpick up these realtime methods other than the standard "collect", would be most appreciated
again , running gco latest from svn 1.0.5 and zc 1.3.6 .... the cart is at
www.fitnessrubber.com
Allan
Further to posting 602 above .... help is appreciated getting custom shipping methods to work. We have installed zc 1.3.6 and gco from svn . Installed per instruction, and added ropu..thanks for your response. My error was a stupid one, i now have the correct files in place and procesed to add our custom shipping modules to the structure of mc_shipping_methods so i added
'upsxml' => array('domestic_types' => array('GND' => 'Ground') ),
'freight' => array('domestic_types' => array('STD' => 'Standard') ),
and i added
'upsxml' => 'UPS Ground',
'freight' => 'RL Freight',
to mc_shipping_methods_names
It seems that gco doesn't yet play nice w/ custom shipping mods. Even outputted various variables to see where it breaks...for some reason it sees upsxml as not "$enable"'d in gcheckout.php, and even when we force it to be enabled, the best I did was to show the fallback amount you set in GC admin (after disabling *all* other shipping mods...hmmm, seems like GC might only show the lowest amt)...like the request to ups didn't work, e.g., I set upsxml in GC admin to "Default Values for..." to 100, but it would only show 100 in the GC checkout screen even though zen showed $13.86 or something like that...it's like GC didn't even bother to do zen's request to UPS to get the shipping for the cart's contents, like you'd see in zen cart's checkout procedure.
Can you elaborate/explain this code a little ... I see where the xml fragment with shipping contets is built, and by all accounts it should build..... can anyeone that understands this code ... copy an existing ship method to make it "custom" and see if they can get t to display in the CCO cart ...
any help on integration of third party custom shipping methods into gco is appreciated. PS ..Im happy to pay to get this taken care of ... ropu ... is there anyone that you can suggest ?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
michelle_rvc
I cannot get the merchant calculations to work. Every shipping option shows up as $0.00.
I just checked my admin and I saw this on the last order I received-
02/13/2007 11:53:34 Pending Google Checkout Order No: xxxxxxxxxxxxMerachnat Calculations: false
Why is the word merchant spelled incorrectly and how to I set it to true?
I am using the version 1.05
michelle
hi michelle_rvc
what does the logs say? or the integration section in google checkout? will be good to know if the error is with the integration or with shipping providers timeing out.
Merchant typo is fixed in the latest version, and in the admin UI->orders, that string is informative to know if the merchant-calculation had been done or not.
ropu
-
Re: Google Checkout Shipping Sanity Check
Quote:
Originally Posted by
Muddler
Will someone please confirm:
You must use one of the three methods (flat, item, table) to get Google to add on shipping? For all my customers then I must use a table rate now if I use GCO? Can I just use Table Rate for GOC and not give this option to the folks that checkout through the cart normally?
That was with versions prior to 1.0.4
version 1.0.5 is intended to use any Zencart shipping module
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Ropu,
Where do I find the link to download the new version. All I can find is the 1.0.4 version.
-
Re: Google Checkout module for Zen Cart (beta)
No, i still don't get any shipping charges unless i put the table rate on there. Maybe let me know what file i edit and what to change/add in there and then i'll have a fully functional google checkout.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
anjordan77, hi
Thanks for your comment. This will work because u take out the security measures to authenticate the messages sent. With out that code any one could send spoofed messages to ur responsehandler. Please, have a look to this post where i explain how to set .htaccess for those with PHP over CGI, where Basic Authentication is Not supported.
http://www.zen-cart.com/forum/showpo...&postcount=665
Try it and let us know how it worked.
ropu
I'm not too sure how i'm supposed to do that htaccess edit and what not. more steps/directions would be appreciated. If we get mine to working perhaps we can bundle this bad boy up into a zip file for all others to enjoy the module!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
ur are using an old version of the module, that issue was fixed in version 1.0.5. Latest version is
HTML Code:
01/12/2007 v1.0.5b1 (ropu)
- Fix <tax-table-selector> strict validation.
ropu
Quote:
Originally Posted by
ropu
That was with versions prior to 1.0.4
version 1.0.5 is intended to use any Zencart shipping module
ropu
Quote:
Originally Posted by
jhaase83
Ropu,
Where do I find the link to download the new version. All I can find is the 1.0.4 version.
Hi Ropu,
If latest release 1.05b1 is working so well and good then why not package it up and make available in Zen Cart downloads area? ;)
Currently 1.04r is latest in Zen Cart downloads area. Or possibly remove 1.04r from Zen Carts downloads area and refer everyone to Google downloads area?
I'm sure you see that making various versions of this mod available in different areas is really screwing people up. And this is not at all Zen like :)
Can I suggest placing the download URL's in your signature:
"Official" release> go here
"Beta testing" release > go here
"Alpha testing" release > go here
"Woodymon" > go here :wink2:
And please highlight in read or capital letters when a new release is available and where to get it (alpha, beta or offical or otherwise).
Just some suggestions to improve the release "announcement" process.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anjordan77
I agree with woody
Ill do all that by the end of this week.
thank you very much for the advise, sometimes i dont realize that the information i give is not well understood.
ill do my best to make this the simplest way, but take in a account this is not a simple module.
all suggestions are very welcome and taken in care.
thx again
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Ill do all that by the end of this week. thank you very much for the advise, sometimes i dont realize that the information i give is not well understood. ill do my best to make this the simplest way, but take in a account this is not a simple module. all suggestions are very welcome and taken in care. thx again
ropu
Thank you Ropu.
I did not mean to be criticzing and re-reading my last post I could see how it could be taken that way. My apologies. Just trying to make positive suggestions. It is difficult for us to small-time shop-owners/non-programmers to understand the complexities of what you are doing but we certainly do appreciate the effort and support provided. Again, THANK YOU for developing this mod!
And please do let us know whenever the time comes virtual goods support will be supported by Google Checkout system and support implemented in the mod ;-) Until then Paypal will have the edge for many shopowners :(
Woody
-
Re: Google Checkout Shipping Sanity Check
Quote:
Originally Posted by
ropu
That was with versions prior to 1.0.4
version 1.0.5 is intended to use any Zencart shipping module
ropu
Thanks for the heads up.
I have loaded the latest svn files and modified the shipping methods in googlecheckout.php. In GOC I am know getting the correct options but associated prices are whatever the defaults are set to in the Zen GCO module. It does not appear to be pulling calculated values just falling back to the defaults. Any ideas or ways you can think of to troubleshoot?
BTW - Does anyone have this working properly?
-
Re: Google Checkout module for Zen Cart (beta)
By deleting and reinstalling everything last night including the tables, I got it to work partly. Now I am getting only USPS rates not UPS. The error log now says that it is a timeout error.
-
Re: Google Checkout module for Zen Cart (beta)
Is there some where I can go to get the 1.0.5 version in the meantime? Or do I just need to learn patiance and wait? Never has been one of my better qualities. :D
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Is there some where I can go to get the 1.0.5 version in the meantime?
See links in Ropu's signature.
-
Re: Google Checkout module for Zen Cart (beta)
Ok Now I need help with this.
Warning: main(/home/jhaase83/public_html/googlecheckout/googlemerchantcalculations.php): failed to open stream: No such file or directory in /home/jhaase83/public_html/googlecheckout/responsehandler.php on line 37
Fatal error: main(): Failed opening required '/home/jhaase83/public_html/googlecheckout/googlemerchantcalculations.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jhaase83/public_html/googlecheckout/responsehandler.php on line 37