-
Re: Google Checkout module for Zen Cart (beta)
Hi all,
well after hard work i have finished coding the new release.
- It has support for CGI installation
- Bug fixing
- Improved way of getting quotes
- And a multisocket way to parallelize this calls.
The truth is that i just finished coding, and didnt test it fully. And docs are missing. I know i told you ill have it for today, but some issues arrived, regarding the multisock feature.:blush:
So ill pack and ship this release, completed, on monday.
Sorry for this delay, but waiting a little more for a better thing is worthwhile. :D
Have a good weekend.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
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
Jhaase
Those files are also in the svn, you should download them. But i recommend you, to wait till monday to the new release.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
-
Re: Google Checkout module for Zen Cart (beta)
I'm still having this problem, but I have a bit more info now...
Quote:
Originally Posted by
mpayson
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
What I just discovered is that I only get this message when I load the page via my my shared host URL (ie: https://myhost.com/~mydomain/store/). If I load it by my URL directly, it returns no errors. Unfortuanely, GCO doesn't like my SSL cert, so I have to use my hosts shared cert. I do know that that cert is valid, since I'm currently using it with the Graith GCO module.
Any thoughts?
Thanks!
-
Re: Google Checkout not updating in Admin
I wonder if anyone has actually sorted out GCO?
I am in the second month of frustrations. I have hired three different people, paid a tidy sum by now, and the latest from Jacob suggests that it is not permissible to install GCO after the login, but when I had it earlier, everyone was able to checkout without paying shipping. Putting it later means it comes after the login.
This is a Catch-22 and I'm fairly fed up and wonder what some reasonable options are?
-
Re: Google Checkout not updating in Admin
Mindful,
In order to have shipping show up on the GCO checkout you have to install the Table and Flat shipping options without changing any wording ... as if it were a fresh install(Yuck!). Thus, you have two shipping options and the customer really doesn't know what each stands for. I have opted for just the flat which is standing for 1st class mail.... I do tell my customer where the "- or use -" used to be, to click a link to a product that allows them to upgrade their shipping. Some people have used and I wonder if some people have abandoned because of it?
Issues I have found with Google Checkout
-------------------------------------------------
1) Optional Shipping Extras cannot be easily put in (insurance, gift wrapping, order tracking)
2) Currently only 2 shipping options.... flat and table (maybe fixed in Monday's version?)
3) Cannot setup GCO to ONLY work in USA or the country of your choice. (Only two shipping options)
4) Cannot change text labels of Flat or Table or they will not show up as options
5) Data Related
order.order_total is not being populated by google checkout.
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_wei ght is not being populated
orders_products_attributes.products_attributes_wei ght_prefix is not being populated
orders_products_attributes.attributes_qty_prices is not being populated
orders_products_attributes.attributes_qty_prices_o netime 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.
Also, with orders_total.title a different tax title is being placed into the field instead of the one that Zen Cart places in.
6) Most orders show up fine... I have had one order show up without the products in the order. (But Google told me what they ordered)
Quote:
Originally Posted by
MindfulWanderer
I wonder if anyone has actually sorted out GCO?
I am in the second month of frustrations. I have hired three different people, paid a tidy sum by now, and the latest from Jacob suggests that it is not permissible to install GCO after the login, but when I had it earlier, everyone was able to checkout without paying shipping. Putting it later means it comes after the login.
This is a Catch-22 and I'm fairly fed up and wonder what some reasonable options are?
-
Re: Google Checkout module for Zen Cart (beta)
I was wondering why GCO didnt include shipping fee after I changed to Zone Rate, now I know the reason. We will give up on GCO and this mod for now until a stabler version comes out.
-
Re: Google Checkout module for Zen Cart (beta)
I'm using Zen Cart 1.3.7 just upgraded from 1.3.6. I also upgraded to 1.0.4r Google Checkout. My problem is it's not going through at all, I'm using the sandbox. Here's what happens when I test:
Add item to cart, checkout, choose shipping method (only have table as an option), choose payment method (it says google checkout only, but no gc logo, just plain text), continue checkout, confirm order, then a thank you message. It never goes to google checkout to enter any CC info or gc login. Nothing shows up in my GC seller's page/e-mail. I check my ZC orders and they are all pending.
Anyone know what I'm missing? Did something go wrong from either upgrading to ZC 1.3.7 or GC 1.0.4r?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
eva01
I'm using Zen Cart 1.3.7 just upgraded from 1.3.6. I also upgraded to 1.0.4r Google Checkout. My problem is it's not going through at all, I'm using the sandbox. Here's what happens when I test:
Add item to cart, checkout, choose shipping method (only have table as an option), choose payment method (it says google checkout only, but no gc logo, just plain text), continue checkout, confirm order, then a thank you message. It never goes to google checkout to enter any CC info or gc login. Nothing shows up in my GC seller's page/e-mail. I check my ZC orders and they are all pending.
Anyone know what I'm missing? Did something go wrong from either upgrading to ZC 1.3.7 or GC 1.0.4r?
I also have experienced the same problem. The logo show up fine when I turn on live mode. Will wait for the newest release that is supposed to be posted today to see if that fixes the issue.
-
Re: Google Checkout module for Zen Cart (beta)
When do you expect the latest update to be available. I am not being pushy - just asking. Cuz when I use the Google module, and close its window, it shuts me down entirely... so I lose the store, and my connection. Have I missed something.
Respectfully,
John Underwood
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
mpayson
I'm still having this problem, but I have a bit more info now...
What I just discovered is that I only get this message when I load the page via my my shared host URL (ie:
https://myhost.com/~mydomain/store/). If I load it by my URL directly, it returns no errors. Unfortuanely, GCO doesn't like my SSL cert, so I have to use my hosts shared cert. I do know that that cert is valid, since I'm currently using it with the Graith GCO module.
Any thoughts?
Thanks!
Any thoughts on this at all? I'd appreciate any help or suggestions anyone can offer... (see Here for complete details).
-
Re: Google Checkout module for Zen Cart (beta)
With google checkout can you sell downloaded Products? I mean will it work, and send the customer back to download there product.
-
Re: Google Checkout module for Zen Cart (beta)
This is a response on the problem with people's Google Checkout Images NOT appearing when they select sandbox mode:
1) You MUST sign up for a customer and merchant account on sandbox, here:
[FONT=monospace]
http://sandbox.google.com/checkout/sell/
----------------------------------------------------------
2) If you have NOT ran the install script for googlecheckout:
To fix your button, you must change in line 200 in your includes\modules\payment\googlecheckout.php
everywhere it says "https://sandbox.google.com/" change this to "https://sandbox.google.com/checkout/"
----------------------------------------------------------
3) If you HAVE ran the install script for googlecheckout, you must modify your MySQL database.
Go to PHPmyadmin for your SQL database, select your zencart database (mine is called "_zc1").
Scroll down to zen_configuration and click it.
click SQL tab, then put the following into the form and click go:
[/FONT]UPDATE `zen_configuration` SET `configuration_value` = 'https://sandbox.google.com/checkout/' WHERE `zen_configuration`.`configuration_value`="https://sandbox.google.com/" LIMIT 1 ;
and if that succeed's, proceed with:
UPDATE `zen_configuration` SET `set_function` = 'zen_cfg_select_option(array(''https://sandbox.google.com/checkout/'', ''https://checkout.google.com/''),' WHERE `zen_configuration`.`configuration_value`="https://sandbox.google.com/checkout/" LIMIT 1 ;
Your sandbox image and link is now fixed.
Anticide
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anticide
This is a response on the problem with people's Google Checkout Images NOT appearing when they select sandbox mode:
1) You MUST sign up for a customer and merchant account on sandbox, here:
[FONT=monospace]
http://sandbox.google.com/checkout/sell/
----------------------------------------------------------
2) If you have NOT ran the install script for googlecheckout:
To fix your button, you must change in line 200 in your includes\modules\payment\googlecheckout.php
everywhere it says "https://sandbox.google.com/" change this to "https://sandbox.google.com/checkout/"
----------------------------------------------------------
3) If you HAVE ran the install script for googlecheckout, you must modify your MySQL database.
Go to PHPmyadmin for your SQL database, select your zencart database (mine is called "_zc1").
Scroll down to zen_configuration and click it.
click SQL tab, then put the following into the form and click go:
[/FONT]
UPDATE `zen_configuration` SET `configuration_value` = 'https://sandbox.google.com/checkout/' WHERE `zen_configuration`.`configuration_value`="https://sandbox.google.com/" LIMIT 1 ;
and if that succeed's, proceed with:
UPDATE `zen_configuration` SET `set_function` = 'zen_cfg_select_option(array(''https://sandbox.google.com/checkout/'', ''https://checkout.google.com/''),' WHERE `zen_configuration`.`configuration_value`="https://sandbox.google.com/checkout/" LIMIT 1 ;
Your sandbox image and link is now fixed.
Anticide
I already manually did your number 2 but had the same problem. I just tried your number 3, and for each step it says rows affected 0. Same problem. I guess I'll just wait for an update, unless anyone else has a fix?
-
Google Checkout Module v1.2RC1 released
Hi all.
This release had me really busy these last 5 days.
I finally package the code in a .zip and added to the googlecode site as my signature links.
These are the changes.
Merged with Zencart 1.3.7 (have a look to admin/orders.php)
Please know that the "multisocket feature for merchant-calculations (alfa)(optional)" is still alfa, since i had to coded from scratch and without any model to be guided with, i couldnt find any similar implementation in the web. This is the first version for this and should evolve a little more. Remember that the feature can be disabled from the Admin UI.
Also added a script to add .htacces and disable PHP basic authentication to those who run PHP over CGI. (for errors: Basic Authentication failed, or headers['Authorization'] is NULL). Accessed from the Admin UI.
Also added a feature to integrate Google Analytics to the cart to have a better track of the sales, also configurable from the Admin UI.
Please, remember to upgrade files and uninstall/install the module from admin UI->modules->payment.
Any question feel free to ask.
This is the svn update from v.1.0.5 -> 1.2RC1
Author: rovagnati
New Revision: 41
Added:
trunk/admin/images/
trunk/admin/images/googlecheckout/
trunk/admin/images/googlecheckout/gc_multisocket.gif (contents, props changed)
trunk/admin/includes/htaccess.php
trunk/admin/includes/multisock.html
trunk/googlecheckout/multisocket.php
Modified:
trunk/INSTALLATION
trunk/README
trunk/admin/includes/functions/extra_functions/added_function_for_google_checkout.php
trunk/admin/orders.php
trunk/googlecheckout/gcheckout.php
trunk/googlecheckout/responsehandler.php
trunk/includes/modules/payment/googlecheckout.php
Log:
02/26/2007 v1.2 (ropu)
- Tested on Zencart v1.3.7
- Add multisocket feature for merchant-calculations (alfa)(optional)
- Different algorithm to retrieve quotes
- Add Google Analytics Support
- Add support for PHP CGI installations
- Add user and password for Google Checkout buyers
- Items retrieved from Merchant-private-item-data instead of session.
- Many bug fixes
enjoy
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Ropu,
thank you for your hardwork. Will this production release work with ZC 1.3.6? Also, do you plan to upload your file to Zen-Cart's downloads page so it is easier for people to find the source file.
I will try to install it on my system and see how everything goes.
Thanks
-
Re: Google Checkout module for Zen Cart (beta)
Thank you so much ropu. Got a place to send a donation? Your work is really appreciated. I also will try to install the new GCO module this week and report back. Fingers crossed...
Thanks again.
-
Re: Google Checkout module for Zen Cart (beta)
Ropu, I installed the GCO 1.0.5. Everything else looks good, except the shipping charge is not returned back to Google Checkout from my zen-cart. Do you know how to fix this? thanks
Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
regenbauma
I have been getting thsi error message in my google callback error page ........
Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback
I see that this arrives in response_message.log but seems that respondhandler is not responding to it ......
does anyone else see this ..... any clues are helpful ..... thanks
Regenbauma, how did you fix this problem? I am having the same problem with ropu's new release. Thanks
-
Re: Google Checkout module for Zen Cart (beta)
Couldn't resolve host 'ur-site'
Time to response: 0.12273311615 segs
Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
The above error is what I get when running responsehandler_test.php. Any idea what's causing this? Thanks!
-
Re: Google Checkout module for Zen Cart (beta)
Also when I upgrade to v1.2RC1 the button is grey out unless I replace /googlecheckout/gcheckout.php then the button is enable and everything works. Also received this error: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
-
Re: Google Checkout Module v1.2RC1 released
Quote:
Originally Posted by
ropu
Hi all.
This release had me really busy these last 5 days.
I finally package the code in a .zip and added to the googlecode site as my signature links.
Thanks Ropu. That fixed the problem that I've been having. Looks like a great release!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Couldn't resolve host 'ur-site'
Time to response: 0.12273311615 segs
Note: This script MUST response in less than 3 sec. so GC srv doesn't timeout.'
The above error is what I get when running responsehandler_test.php. Any idea what's causing this? Thanks!
bless, you should replace this data
PHP Code:
// Responsehandler.php URL
$url = 'http://ur-site/googlecheckout/responsehandler.php';
// Your Merchant ID
$merid = '';
// Your Merchant Key
$merkey = '';
// Here put the xml u want to emulate! You can take the ones from googlecheckout/response_message.log
$postargs = '<xml replace!>';
with all your site data :D
also in $postargs you should put a valid XML with the GC request you want to test (merchant-calculation-callback, new-order-notification, etc) as the script says, you can get some from response_message.log
ropu
-
Re: Google Checkout Module v1.2RC1 released
Quote:
Originally Posted by
mpayson
Thanks Ropu. That fixed the problem that I've been having. Looks like a great release!
its good to hear that!!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Also when I upgrade to v1.2RC1 the button is grey out unless I replace /googlecheckout/gcheckout.php then the button is enable and everything works. Also received this error: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
have you uninstall and re install the module from the Admin UI?? and added the merchant id/key?
-
Re: Google Checkout module for Zen Cart (beta)
ropu, any comment on my question on page 72? Thanks.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
spf
Ropu, I installed the GCO 1.0.5. Everything else looks good, except the shipping charge is not returned back to Google Checkout from my zen-cart. Do you know how to fix this? thanks
Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback
spf, try the new version, v1.2, the link is in my signature.
errors could be that merchant id/key are wrong, or you are on a php CGI install.
please have a look to response_error.log file.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
spf, try the new version, v1.2, the link is in my signature.
errors could be that merchant id/key are wrong, or you are on a php CGI install.
please have a look to response_error.log file.
ropu
Ropu, I think you are correct. I will try to set php over CGI =TRUE. However, I notice the htaccess.php script won't be allowed to run from admin/includes/. Should I move that file to admin/ so I can run the script? Also, where should I save the .htaccess and its passwd file? Thanks
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
spf
Ropu, I think you are correct. I will try to set php over CGI =TRUE. However, I notice the htaccess.php script won't be allowed to run from admin/includes/. Should I move that file to admin/ so I can run the script? Also, where should I save the .htaccess and its passwd file? Thanks
upss. sure u are not allowed to to run php on admin/includes?
if so, sorry about that, i must change the location of that file.
the files htacess and htpasswd must be saved in the googlecheckout/ dir. it should be show by default when u run htaccess.php
remember it MUST be the full path to directory, see the example.
btw, just to try, enable CGI installation, without adding htaccess file to see if it works (this will disable merchant validation, not recommended for production sites)
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
have you uninstall and re install the module from the Admin UI?? and added the merchant id/key?
I have installed and reinstalled everything. However, the google button is still not enabled on the site.
The message in response_error.log is: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
If I set .htaccess Basic Authentication Mode to True instead of false, I am not able to activate the configuration file. Clicking on the link generates the following error: You don't have permission to access /myadminfolder/includes/htaccess.php on this server.
Please provide assistance with how to configure the .htaccess if it's need and where the file needs to be uploaded. Also, why does everything work fine for 1.0.4r but now it cannot connect to GC?
Thanks!
-
Re: Google Checkout module for Zen Cart (beta)
Does anyone have a store with this feature working on it? I would love to take a peek to see how it will look to a customer.
I am hoping that this mod will be the absolute last addition to my cart before I think about going live!
-
Re: Google Checkout module for Zen Cart (beta)
What file do I put the code for the google tracking code in? I am starting to get confused now.
-
Re: Help!!! Technical Question About Google Checkout Setup
Quote:
Originally Posted by
ropu
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
This is what I have in mine:
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;
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
}
?>
Are you saying to delete the line if (empty($selection[$i]['noradio'])) { even though it's part of ZC 1.3.7 template?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
I have installed and reinstalled everything. However, the google button is still not enabled on the site.
The message in response_error.log is: HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
If I set .htaccess Basic Authentication Mode to True instead of false, I am not able to activate the configuration file. Clicking on the link generates the following error: You don't have permission to access /myadminfolder/includes/htaccess.php on this server.
Please provide assistance with how to configure the .htaccess if it's need and where the file needs to be uploaded. Also, why does everything work fine for 1.0.4r but now it cannot connect to GC?
Thanks!
please, download this file
http://google-checkout-zencart.googl...n/htaccess.php
and put it under admin/
run it from there.
u should have perms
ropu
-
Re: Help!!! Technical Question About Google Checkout Setup
Quote:
Originally Posted by
BlessIsaacola
This is what I have in mine:
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;
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
}
?>
Are you saying to delete the line
if (empty($selection[$i]['noradio'])) { even though it's part of ZC 1.3.7 template?
No, that quote was for an other older release. it should be ok as you have it.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
What file do I put the code for the google tracking code in? I am starting to get confused now.
im sorry jhaase, i cant fully understand your question.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
When I was getting my Google Analytics set up it wanted me to put a tracking code on every page in my web site I want it to track. And for the life of me right now I don't remember what file to put it under. Or do I even need to worry about that?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
I am assuming that running that file should create 2 files in the googlecheckout folder? That did not happen. I have pasted below the result of running that file:
.htaccess file:
<<<Start---
AuthName "Google checkout Basic Authentication"
AuthType Basic
AuthUserFile /var/www/html/googlecheckout/.htpasswd
require valid-user
---End>>>
.htpasswd file:
<<<Start---
sandboxaccount(was here):JztdoYcegScMQ
productionaccount (was here):tb37Ly2XWynww
---End>>>
what does the bolded line about valid-user mean?
Also, is there a way to find out if PHP is install over CGI because I do not believe that's the case with mine. Do I need to comment out a block of code from responsehandler.php before running htaccess.php?
It would really help if there is a more straight forward approach to installing this mod.
Things like:
To check if your PHP is install over CGI do the following....
IF your PHP is install over CGI, perform the following steps in order...
Something simpler not all these try and error process. There has to be a consistent way of installing Google Checkout instead of all the work arounds for each person.
This is a great mod when it works! Thanks!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
I am assuming that running that file should create 2 files in the googlecheckout folder? That did not happen. I have pasted below the result of running that file:
.htaccess file:
<<<Start---
AuthName "Google checkout Basic Authentication"
AuthType Basic
AuthUserFile /var/www/html/googlecheckout/.htpasswd
require valid-user
---End>>>
.htpasswd file:
<<<Start---
sandboxaccount(was here):JztdoYcegScMQ
productionaccount (was here):tb37Ly2XWynww
---End>>>
what does the bolded line about valid-user mean?
Also, is there a way to find out if PHP is install over CGI because I do not believe that's the case with mine. Do I need to comment out a block of code from responsehandler.php before running htaccess.php?
It would really help if there is a more straight forward approach to installing this mod.
Things like:
To check if your PHP is install over CGI do the following....
IF your PHP is install over CGI, perform the following steps in order...
Something simpler not all these try and error process. There has to be a consistent way of installing Google Checkout instead of all the work arounds for each person.
This is a great mod when it works! Thanks!
yes, it supposed to create both files!
do you check the boxes "Check if dir exists:" and "Create Files:" ??
the require valid-user is a directive of htaccess that tells the browser to look for valid users in .htpasswd
you DONt have to comment any code in responsehandler.php just need to enable or disable this feature from the amin UI!
just set tru to this
HTML Code:
.htaccess Basic Authentication Mode with PHP over CGI?
This configuration will disable PHP Basic Authentication in the responsehandler.php to validate Google Checkout messages.
If setted True you MUST configure your .htaccess files here.
and add the htaccess with the script. .
i take notes about an easier readme file. thanks for your feedback
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
When I was getting my Google Analytics set up it wanted me to put a tracking code on every page in my web site I want it to track. And for the life of me right now I don't remember what file to put it under. Or do I even need to worry about that?
if you want to track more pages of your site, you must add that JS code.
The feature i added automatically adds that code to all the pages where the Google Checkout Button appears, also add a feature that joins Google Analytics with Google Checkout. As the link says you must activate in google analytics the e-commerce compatibility.
http://code.google.com/apis/checkout...merceReporting
no need to do anything else.
any doubts please ask me, ill add it to the docs. im trying to have better doc, but not to easy and i dont have plenty of time, sorry for that.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
V1.2 RC2 fixes the location of the htaccess.php file
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I upgraded to the new version of google check out and know when you click a product and add to the cart the google image doesn't turn blue it doesn't allow for the customer to click it, it stays grey any ideas why?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
lextechs
I upgraded to the new version of google check out and know when you click a product and add to the cart the google image doesn't turn blue it doesn't allow for the customer to click it, it stays grey any ideas why?
gray buttons appear because of one of these issues
* A disabled button is displayed in the following cases:
* 1. If merchant id or merchant key is not set
* 2. If there are multiple shipping options selected and they use different shipping tax tables
* or some dont use tax tables
double check point 2, see if all your shipping use Taxable goods for taxes.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
yes, it supposed to create both files!
do you check the boxes "Check if
dir exists:" and "Create Files:" ??
the require valid-user is a directive of htaccess that tells the browser to look for valid users in .htpasswd
you DONt have to comment any code in responsehandler.php just need to enable or disable this feature from the amin UI!
just set tru to this
HTML Code:
.htaccess Basic Authentication Mode with PHP over CGI?
This configuration will disable PHP Basic Authentication in the responsehandler.php to validate Google Checkout messages.
If setted True you MUST configure your .htaccess files here.
and add the htaccess with the script. .
i take notes about an easier readme file. thanks for your feedback
ropu
Thanks Ropu, the two files are now created after CHMOD from 755 to 777 on googlecheckout folder.
I noticed in one of your previous post that you said this
Code:
<Directory /home/*/public_html>
AllowOverride All
</Directory>
need to be somewhere. Is it still needed?
Also, you did not answer my question about how to figure out whether PHP is installed on CGI or not. If I set to True on the AdminUI and PHP is not installed over CGI what happens?
I have GC1.0.4r working in production without any need for the code/instructions about PHP installation over CGI but somehow when I upgrade to 1.2 everything looks okay but the GC button is disabled. Responsehandler.php page doesn't show any error.
The only culprit I can think of is something is not configured right with the shipping. We offer Free Shipping Option, Free Shipper as well as Table Rate but none of these show up for Google Checkout Paypment configuration on the AdminUI. Why is that?
Thanks for all your work.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
gray buttons appear because of one of these issues
* A disabled button is displayed in the following cases:
* 1. If merchant id or merchant key is not set
* 2. If there are multiple shipping options selected and they use different shipping tax tables
* or some dont use tax tables
double check point 2, see if all your shipping use Taxable goods for taxes.
ropu
Ropu,
On point #2, I checked our setting and all our shipping module are set to use the same Taxable Goods. My questions for you is doesn't the fact that Taxable Goods only apply to two zones (in our case) affects Google Checkout button to be disable.
For example we have shipping module configured with zone set to none (meaning people can checkout worldwide) but our Taxable Goods is only configured to charge taxes for customers from 2 states in the US where we have physical location. Does this confuse GC and that's why the button is greyed out?
In GC 1.0.4r we are only using table rate as shipping option but the taxable goods still only applies to 2 states and we have no problem (except that it actually ignore the tax rule and charges no tax for customers from the two states :().
Thanks!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Thanks Ropu, the two files are now created after CHMOD from 755 to 777 on googlecheckout folder.
I noticed in one of your previous post that you said this
Code:
<Directory /home/*/public_html>
AllowOverride All
</Directory>
need to be somewhere. Is it still needed?
Also, you did not answer my question about how to figure out whether PHP is installed on CGI or not. If I set to True on the AdminUI and PHP is not installed over CGI what happens?
I have GC1.0.4r working in production without any need for the code/instructions about PHP installation over CGI but somehow when I upgrade to 1.2 everything looks okay but the GC button is disabled. Responsehandler.php page doesn't show any error.
The only culprit I can think of is something is not configured right with the shipping. We offer Free Shipping Option, Free Shipper as well as Table Rate but none of these show up for Google Checkout Paypment configuration on the AdminUI. Why is that?
Thanks for all your work.
To know if you run over CGI try this
PHP Code:
<?php
print_r($_SERVER);
?>
on a blanc script.
Gray button, see my last post
Regarding payments not showing in the admin ui. This is because all them are flat rate shipping, no need of merchant calculation to be done! so shipping quotes can be pre-calculated.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Ropu,
On point #2, I checked our setting and all our shipping module are set to use the same Taxable Goods. My questions for you is doesn't the fact that Taxable Goods only apply to two zones (in our case) affects Google Checkout button to be disable.
For example we have shipping module configured with zone set to none (meaning people can checkout worldwide) but our Taxable Goods is only configured to charge taxes for customers from 2 states in the US where we have physical location. Does this confuse GC and that's why the button is greyed out?
In GC 1.0.4r we are only using table rate as shipping option but the taxable goods still only applies to 2 states and we have no problem (except that it actually ignore the tax rule and charges no tax for customers from the two states :().
Thanks!
im pretty sure that the issue. try putting everything to none or tax goods and see if the button appears enabled. if so, pm to see how we can fix this issue and "unconfuse" GC button :D
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I've just been notified of a new feature of GC.
A new tag allows merchant-calcullation-callback to send just the active shipping address to calculate shipping quotes. <calculation-mode>
http://code.google.com/apis/checkout...lculation-mode
This will help with the time out issue, because if a buyer had more the one address, before we need to calculate the shipping cost for each one, increasing the timeout chance.
now we calculate one per time, so calculation time is smaller
im releasing RC3 asap with this fixed.
quick fix:
googlecheckout/gcheckout.php line 412
change this:
PHP Code:
$gcheck->push('merchant-calculations');
$gcheck->element('merchant-calculations-url', $url);
$gcheck->element('accept-merchant-coupons', 'true');
//$gcheck->element('accept-gift-certificates', 'true');
$gcheck->pop('merchant-calculations');
for this
PHP Code:
$gcheck->push('merchant-calculations');
$gcheck->element('merchant-calculations-url', $url);
$gcheck->element('accept-merchant-coupons', 'true');
$gcheck->element('calculation-mode', 'SINGLE');
//$gcheck->element('accept-gift-certificates', 'true');
$gcheck->pop('merchant-calculations');
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
I've just been notified of a new feature of GC.
A new tag allows merchant-calcullation-callback to send just the active shipping address to calculate shipping quotes.
<calculation-mode>
http://code.google.com/apis/checkout...lculation-mode
This will help with the time out issue, because if a buyer had more the one address, before we need to calculate the shipping cost for each one, increasing the timeout chance.
now we calculate one per time, so calculation time is smaller
im releasing RC3 asap with this fixed.
quick fix:
googlecheckout/gcheckout.php line 412
change this:
PHP Code:
$gcheck->push('merchant-calculations');
$gcheck->element('merchant-calculations-url', $url);
$gcheck->element('accept-merchant-coupons', 'true');
//$gcheck->element('accept-gift-certificates', 'true');
$gcheck->pop('merchant-calculations');
for this
PHP Code:
$gcheck->push('merchant-calculations');
$gcheck->element('merchant-calculations-url', $url);
$gcheck->element('accept-merchant-coupons', 'true');
$gcheck->element('calculation-mode', 'SINGLE');
//$gcheck->element('accept-gift-certificates', 'true');
$gcheck->pop('merchant-calculations');
ropu
The link in your signature still points to V1.2RC1 instead of V1.2RC3
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
im pretty sure that the issue. try putting everything to none or tax goods and see if the button appears enabled. if so, pm to see how we can fix this issue and "unconfuse" GC button :D
ropu
Ropu,
I can confirm with certainty the root cause of the problem now.
If Tax Class is set to anything BUT NONE it breaks.
When Tax Class is none, the googlebutton is enabled and works for those shipping option that have tax class set to NONE.
1. I enabled 5 shipping option from AdminUI Shipping module and configured all to have a Tax Class SET TO Taxable Goods...Google install is successful with no error when I go to my url/googlecheckout/responsehandler.php. Google Checkout button is disabled (greyed out) and customer is unable to checkout.
2. I enabled 5 shipping option from AdminUI Shipping module and configured all to have a Tax Class SET TO NONE...Google install is successful with no error when I go to my url/googlecheckout/responsehandler.php and the Google Checkout button is enabled and all shipping options were presented to me during google checkout.
3. I enabled 5 shipping option from AdminUI Shipping module and configured TWO to have a Tax Class SET TO NONE...Google install is successful with no error when I go to my url/googlecheckout/responsehandler.php. The Google Checkout button is enabled BUT ONLY TWO shipping options that have Tax Class SET TO NONE were presented to me during google checkout.
At least now we know the source of the problem, we just need a solution:lol:
Perhaps this issue is related that GC is also not calculating Sales Tax in 1.0.4r even though it shows a tax line when checking out using GC.
Thanks for all your work.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
if you want to track more pages of your site, you must add that JS code.
The feature i added automatically adds that code to all the pages where the Google Checkout Button appears, also add a feature that joins Google Analytics with Google Checkout. As the link says you must activate in google analytics the e-commerce compatibility.
http://code.google.com/apis/checkout...merceReporting
no need to do anything else.
any doubts please ask me, ill add it to the docs. im trying to have better doc, but not to easy and i dont have plenty of time, sorry for that.
ropu
I have fallowed the READ ME intructions. I do not have a Google Checkout button on my site. You can click the google checkout option at the end and then you go to a page that say's conferm order. Then you get a message that it could not connect with the smtp site.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I have fallowed the READ ME intructions. I do not have a Google Checkout button on my site. You can click the google checkout option at the end and then you go to a page that say's conferm order. Then you get a message that it could not connect with the smtp site.
You are missing the directory change for the templates!
includes/templates/YOUR_TEMPLATE must be changed to your template dir.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Does anyone know if GoogleCheckout works with GoDaddy's Turbo SSL?
Thanks.
-
Re: Google Checkout module for Zen Cart (beta)
ropu,
I got the GCO1.2 to work (sort of). But I still have a few questions that I hope you can help answer.
Here is my environment: I have GCO and Paypal IPN module installed. running on 1.3.6 ZC.
1. When I add one item into cart, the GoogleCheckout button does not appear on that page. Then, I click the button "Go to Checkout", Google Check out button appears under the log in section. That's where I can check out by GCO. My question is why I cannot see the GCO button as soon as I drop an item into the shopping cart.
2. If I choose to log in onto my store as a customer, I can no longer see google checkout. Is that a feature? If so, how does my customer use the coupon code I offer on my website or how do they use the remaining balance on their giftcard? Are those doable, or still in the future development plan?
Again, Thank you very much for your hard work and help.
Thanks
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
The link in your signature still points to V1.2RC1 instead of V1.2RC3
sorry about that, copy paste err :P
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
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
woody, and all
i passed to google guys some of your concerns. They are really open to merchant needs.
a new blog is created with all new feature requirements.
Quote:
Digital Delivery - ability to use Google Checkout for selling digital goods Downloadable files The problem with this in the current Google Checkout implementation is that GC does not require the user to create an account on the site before going to GC (if you want to qualify for AdWords). How can a digital-download company associate a payment with an account if we have no information on that person?
have a look to all the others.
http://groups.google.com/group/googl...oogle-checkout
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
You are missing the directory change for the templates!
includes/templates/YOUR_TEMPLATE must be changed to your template dir.
ropu
I don't understand. Are you saying I need to change the name of my "Your_Template" to YOUR_TEMPLATE.DIR?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
Does anyone know if GoogleCheckout works with GoDaddy's Turbo SSL?
Thanks.
hi tj, have a look here
http://checkout.google.com/support/s...y?answer=57856
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I don't understand. Are you saying I need to change the name of my "Your_Template" to YOUR_TEMPLATE.DIR?
no no, you have to add the includes/templates/YOUR_TEMPLATE/template/ dir and its content (tpl_checkout_payment_default.php, tpl_login_default.php, tpl_shopping_cart_default.php) to your template dir
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Does anyone have a store with this feature working on it? I would love to take a peek to see how it will look to a customer.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
tj, have a look to this hack and see if it works for you too
http://groups.google.com/group/googl...862c11d37d3127
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
cheezylu
Does anyone have a store with this feature working on it? I would love to take a peek to see how it will look to a customer.
Today i've told that the the demo servers are ready to use. Now i must do the install and i'll let you know when they are online
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
no no, you have to add the includes/templates/YOUR_TEMPLATE/template/ dir and its content (tpl_checkout_payment_default.php, tpl_login_default.php, tpl_shopping_cart_default.php) to your template dir
ropu
Ok. I already have all this so I went in and changed what it said to change in the files.
-
Re: Google Checkout module for Zen Cart (beta)
I reinstalled everything, new Zen 1.3.7 and installed the new GCO 1.2 RC1. Doing sandbox, and put in correct merchant ID and Key. No errors on url/googlecheckout/responsehandler.php.
However, the GCO logo is nowhere. I'm trying to only use GCO, the only mention of it is on step 2/3 in the payment process where it says payment method. However, I go through the whole process, confirm order, it congratulates me and I'm done. But of course, never went to GCO so no order really happens. Any ideas?
-
Re: Google Checkout module for Zen Cart (beta)
That's a typical scenario when you try to setup googlecheckout as your ONLY method of payment. In my site, I hacked the confirmation page to not display the "Confirm Order" and put in its place the googlecheck (button) component. When the GCO button is pressed, it took my order (plus shipping+taxes) to Google's GoogleCheckout page. However, my order did not show up in my Admin/Orders section. 8-(
-
Re: Google Checkout module for Zen Cart (beta)
I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.
Is there really a problem if GCO is my only method of payment? My whole reason for doing this is to get away from Paypal.
-
Re: Google Checkout module for Zen Cart (beta)
I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.
Is there really a problem if GCO is my only method of payment? My whole reason for doing this is to get away from Paypal.
-
Re: Google Checkout module for Zen Cart (beta)
Eva,
Use Ropu's response handler test to find out whether your PHP is installed as a CGI script.
Modify the following lines:
PHP Code:
// Responsehandler.php URL
$url = 'http://www.your-store.com/googlecheckout/responsehandler.php';
// Your Merchant ID
$merid = '';
// Your Merchant Key
$merkey = '';
// Here put the xml u want to emulate! You can take the ones from googlecheckout/response_message.log
$postargs = '<xml replace!>';
Upload the modified file into your www.your-store.com/googlecheckout folder.
Then open your browser and point it to:
http://www.your-store.com/googlechec...ndler_test.php
Once executed, it'll return several environment variables. Find the text: [GATEWAY_INTERFACE] => and see what is the next texts after it. If it returns CGI/x.x then it means your PHP is run as a CGI script.
BTW, what version of Googlecheckout are you using?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
w00gle
Eva,
Use
Ropu's response handler test to find out whether your PHP is installed as a CGI script.
Modify the following lines:
PHP Code:
// Responsehandler.php URL
$url = 'http://www.your-store.com/googlecheckout/responsehandler.php';
// Your Merchant ID
$merid = '';
// Your Merchant Key
$merkey = '';
// Here put the xml u want to emulate! You can take the ones from googlecheckout/response_message.log
$postargs = '<xml replace!>';
Upload the modified file into your
www.your-store.com/googlecheckout folder.
Then open your browser and point it to:
http://www.your-store.com/googlechec...ndler_test.php
Once executed, it'll return several environment variables. Find the text: [GATEWAY_INTERFACE] => and see what is the next texts after it. If it returns CGI/x.x then it means your PHP is run as a CGI script.
BTW, what version of Googlecheckout are you using?
1.2RC1.
I don't know what I'm suppose to do for:
$postargs = '<xml replace!>';
It says - You can take the ones from googlecheckout/response_message.log
But I have nothing listed in that log, it's empty.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Ropu,
On point #2, I checked our setting and all our shipping module are set to use the same Taxable Goods. My questions for you is doesn't the fact that Taxable Goods only apply to two zones (in our case) affects Google Checkout button to be disable.
For example we have shipping module configured with zone set to none (meaning people can checkout worldwide) but our Taxable Goods is only configured to charge taxes for customers from 2 states in the US where we have physical location. Does this confuse GC and that's why the button is greyed out?
In GC 1.0.4r we are only using table rate as shipping option but the taxable goods still only applies to 2 states and we have no problem (except that it actually ignore the tax rule and charges no tax for customers from the two states :().
Thanks!
Ropu,
any response to the above post? GCV1.2RC3 does not work when Taxable Good is enable. please read the above scenarios for recreating the rror.
Thanks!
-
Re: Google Checkout module for Zen Cart (beta)
I recently installed the google-checkout-zencart-v1.2RC3. When the cart is empty, I get the following error message at the bottom of my shopping cart page:
Fatal error: Cannot redeclare selfurl() (previously declared in /public_html/crm/shop/googlecheckout/gcheckout.php:38) in /public_html/crm/shop/googlecheckout/gcheckout.php on line 37
I looked up the selfurl string in developer's toolkit, but could not find it. Looking at the gcheckout.php I commented out the selfURL function call at line 37 and the curly bracket at line 42. See my change below. Will this change break my google checkout install? BTW, doing this removed the above error from that page. Now I can't get my checkout button to show up on the checkout page. I will go back and read up on the button issue since it appears there are some posts here related to that.
PHP Code:
require_once('admin/includes/configure.php');
require('includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php');
require_once('includes/modules/payment/googlecheckout.php');
//function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
// }
Thanks,
BlumCafe
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
I recently installed the google-checkout-zencart-v1.2RC3. When the cart is empty, I get the following error message at the bottom of my shopping cart page:
Fatal error: Cannot redeclare selfurl() (previously declared in /public_html/crm/shop/googlecheckout/gcheckout.php:38) in
/public_html/crm/shop/googlecheckout/gcheckout.php on line
37
I looked up the selfurl string in developer's toolkit, but could not find it. Looking at the gcheckout.php I commented out the selfURL function call at line 37 and the curly bracket at line 42.
See my change below. Will this change break my google checkout install? BTW, doing this removed the above error from that page. Now I can't get my checkout button to show up on the checkout page. I will go back and read up on the button issue since it appears there are some posts here related to that.
PHP Code:
require_once('admin/includes/configure.php');
require('includes/languages/' . $_SESSION['language'] . '/' .'modules/payment/googlecheckout.php');
require_once('includes/modules/payment/googlecheckout.php');
//function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
// }
Thanks,
BlumCafe
Blum
nono, thats an error, if you comment, you should comment the whole function, not just the declaration :P
if you do so, the body of it will be part of the script an alter the sequence of the program.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I installed GC 1.2rc3 on my zc1.3.7 everything works with no errors, except the shipping rates, for some reson i cannot get the actual UPS, FedEx or USPS rates to shgow up on google checkout pages...
if i set prices in admin they will show, even those that i don't need or use so i have about 15 shipping methods to chose from but none are the acctual rates as on site.
is this something that hasn't been fixed or is it something i didn't install the right way?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Blum
nono, thats an error, if you comment, you should comment the whole function, not just the declaration :P
if you do so, the body of it will be part of the script an alter the sequence of the program.
ropu
Ok. so I should comment out everything like so?
PHP Code:
/* function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
// }
*/
There is another reference to the selfURL further down in the code. Will doing this above affect that function call?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Ropu,
any response to the above post? GCV1.2RC3 does not work when Taxable Good is enable. please read the above scenarios for recreating the rror.
Thanks!
Bless, thanks for your feedback, i think i found the bug
I was using a different way to find out If there are multiple shipping options selected and they use different shipping tax tables or some dont use tax tables.
I was comparing count(DV) instead of count(shipping providers), its a bug from the time i added Merchant calculations.
Thanks again.
change this in googlecheckout/gcheckout.php line 431
PHP Code:
if(sizeof($tax_class_unique) == 1 &&
sizeof($options) == sizeof($tax_class)) {
for
PHP Code:
if(sizeof($tax_class_unique) == 1 &&
sizeof($module_info) == sizeof($tax_class)) {
and
change this in googlecheckout/gcheckout.php line 469
PHP Code:
if(sizeof($tax_class_unique) > 1 ||
(sizeof($tax_class_unique) == 1 &&
sizeof($options) != sizeof($tax_class) )) {
$googlepayment->variant = "disabled";
$current_checkout_url = selfURL();
}
for
PHP Code:
if(sizeof($tax_class_unique) > 1 ||
(sizeof($tax_class_unique) == 1 &&
sizeof($module_info) != sizeof($tax_class) )) {
$googlepayment->variant = "disabled";
$current_checkout_url = selfURL();
}
im updating the SVN, and later the RC
and issa, please tell us if this worked for you.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Alik
I installed GC 1.2rc3 on my zc1.3.7 everything works with no errors, except the shipping rates, for some reson i cannot get the actual UPS, FedEx or USPS rates to shgow up on google checkout pages...
if i set prices in admin they will show, even those that i don't need or use so i have about 15 shipping methods to chose from but none are the acctual rates as on site.
is this something that hasn't been fixed or is it something i didn't install the right way?
Hi alik
that is the time out issue that is not completely solved. Not any install error, try using the Multisocket feature, You can set it from the Admin UI.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ok. so I should comment out everything like so?
PHP Code:
/* function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
// }
*/
There is another reference to the selfURL further down in the code. Will doing this above affect that function call?
yes it should, but i can tell you way, that function is already declared. i think your installation is mixed or not fully v1.2. Or you have a other contribution with the same function name.
im adding to the TODO list,
- add "gc_" to all GC internal functions
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
yes it should, but i can tell you way, that function is already declared. i think your installation is mixed or not fully v1.2. Or you have a other contribution with the same function name.
im adding to the TODO list,
- add "gc_" to all GC internal functions
ropu
Ropu,
Not sure I understand. I had 1.0.4r installed before. I reversed modifications by 1.0.4r before I installed 1.2RC3. I guess I can go back through the install docs for 1.2RC3 to make sure everything is ok. Also, I have seen mention here of a GC 1.5. What is that? Is it another checkout module version for GC? If so, where is it located? I want to make sure I am using most up to date version.
Thanks
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Ok. I already have all this so I went in and changed what it said to change in the files.
This did not make since sorry.
What I meant. I have the folders you where taling about already. I went into them and changed what the instructions said to change. DO I need to just replace them all. I think they are there for Paypal. Which I am not going to use. Unless I just can not get this to work at all.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Hi alik
that is the time out issue that is not completely solved. Not any install error, try using the Multisocket feature, You can set it from the Admin UI.
ropu
did the above and now i get a message on GC Sandbox page
Quote:
"My_Store Does not ship to this address"
tried a few diff. addresses non work.
-did i miss anything else ?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ropu,
Not sure I understand. I had 1.0.4r installed before. I reversed modifications by 1.0.4r before I installed 1.2RC3. I guess I can go back through the install docs for 1.2RC3 to make sure everything is ok. Also, I have seen mention here of a GC 1.5. What is that? Is it another checkout module version for GC? If so, where is it located? I want to make sure I am using most up to date version.
Thanks
Blum, the latest version is 1.2RC3
there is no 1.5, is 1.0.5.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Hi !
I installed Google Checkout module for Zen Cart and Created sandbox account and have some troubles..
It seems to Google Checkout module not working!!
Could U explain how that module should work
There are 4 steps for creating order:
index.php?main_page=shopping_cart – shopping cart. I inserted code
// ** GOOGLE CHECKOUT **
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
// ** END GOOGLE CHECKOUT **
But it will work only when My shopping cart is empty. Then i push the button go to checkout.
And redirect to the page
index.php?main_page=checkout_shipping - type shipping info. Then push continue.
index.php?main_page=checkout_payment . Inserted the code
// ** GOOGLE CHECKOUT **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** END GOOGLE CHECKOUT **
And I should select a payment method. I activate only google checkout and Check\money modules at the admin part. So i see only Check/Money Order payment method at that page. Where google checkout? Should i activate any more modules for working with google checkout? How it work?
When Google Checkout module send data to the Google Checkout Account? How I could check It ? Thank You so much for Your answerers.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
vovich
Hi !
I installed Google Checkout module for Zen Cart and Created sandbox account and have some troubles..
It seems to Google Checkout module not working!!
Could U explain how that module should work
There are 4 steps for creating order:
index.php?main_page=shopping_cart – shopping cart. I inserted code
// ** GOOGLE CHECKOUT **
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
// ** END GOOGLE CHECKOUT **
But it will work only when My shopping cart is empty. Then i push the button go to checkout.
And redirect to the page
index.php?main_page=checkout_shipping - type shipping info. Then push continue.
index.php?main_page=checkout_payment . Inserted the code
// ** GOOGLE CHECKOUT **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** END GOOGLE CHECKOUT **
And I should select a payment method. I activate only google checkout and Check\money modules at the admin part. So i see only Check/Money Order payment method at that page. Where google checkout? Should i activate any more modules for working with google checkout? How it work?
When Google Checkout module send data to the Google Checkout Account? How I could check It ? Thank You so much for Your answerers.
It seems I have the same problem. Please advice :cry:
-
Re: Google Checkout module for Zen Cart (beta)
This is the thread suggested in the version 1.2 RC4 rev1 of the readme file, so I hope that it is the right place to post since the last here was some months ago.
Having installed the new version I am getting the following error messages instead of the Google Checkout button in ZenCart:
Warning: main(googlecheckout/gcheckout.php): failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7
Warning: main(googlecheckout/gcheckout.php): failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7
Warning: main(googlecheckout/gcheckout.php): failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7
Warning: main(): Failed opening 'googlecheckout/gcheckout.php' for inclusion (include_path='.:/usr/local/4admin/apache/lib/php') in /usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/includes/modules/show_google_components.php on line 7
It seemed to work fine with the older version only sans the new shipping modules.
I also do not get a blank page at the API callback URL, but instead get NOT FOUND message for requested URL.
I note that the Installation Notes for this version shows two files to be installed as such:
YOUR_ZENCART_FOLDER/admin/includes/htaccess.php
YOUR_ZENCART_FOLDER/admin/includes/multisock.html
While the downloaded file positioning would seem to show them as:
YOUR_ZENCART_FOLDER/admin/htaccess.php
YOUR_ZENCART_FOLDER/admin/multisock.html
Which positioning is correct?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Bless, thanks for your feedback, i think i found the bug
I was using a different way to find out If there are multiple shipping options selected and they use different shipping tax tables or some dont use tax tables.
I was comparing count(DV) instead of count(shipping providers), its a bug from the time i added Merchant calculations.
Thanks again.
change this in googlecheckout/gcheckout.php line 431
PHP Code:
if(sizeof($tax_class_unique) == 1 &&
sizeof($options) == sizeof($tax_class)) {
for
PHP Code:
if(sizeof($tax_class_unique) == 1 &&
sizeof($module_info) == sizeof($tax_class)) {
and
change this in googlecheckout/gcheckout.php line 469
PHP Code:
if(sizeof($tax_class_unique) > 1 ||
(sizeof($tax_class_unique) == 1 &&
sizeof($options) != sizeof($tax_class) )) {
$googlepayment->variant = "disabled";
$current_checkout_url = selfURL();
}
for
PHP Code:
if(sizeof($tax_class_unique) > 1 ||
(sizeof($tax_class_unique) == 1 &&
sizeof($module_info) != sizeof($tax_class) )) {
$googlepayment->variant = "disabled";
$current_checkout_url = selfURL();
}
im updating the SVN, and later the RC
and issa, please tell us if this worked for you.
ropu
Good news and bad news!
The good news is with the new updates, the button is now enabled when Taxable Goods is set true for all shipping methods.
The bad news is on Flat Rate option works for shipping without a problem. Different options create different errors.
Enabling Flat Rate and Free Shipping Option when order >= $150 generates the following error:
<?xml version="1.0" encoding="UTF-8" ?>
- <error xmlns="http://checkout.google.com/schema/2" serial-number="a9158602-2d08-4eff-b259-05431e1dbe4a">
- <warning-messages>
<string>XML failed to validate against the schema at line: 36, column: 36, 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: 36, column: 36, 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/flat-rate-shipping: Required field must not be blank</error-message>
</error>
Enabling multiple shipping options i.e UPS/Flat Rate/USPS generates error that we do not ship to the customer's country. Obviously, there are still issues with this mod.
-
Re: Google Checkout module for Zen Cart (beta)
Ropu,
I'm not sure if you use CGI basic authentication, but here's the errors from someone who does, using the most up-to-date RC4, and all of the installation/readme instructions followed. I have attempted it several times, and here is what I get:
Settings:
.htaccess - True
Operation - Sandbox
Multisocket - True
Merchant Calculation - http
Default values are set for shipping, googlecheckout has my return url for callback. ht files set up properly.
When .htaccess option is true, my server sends the mercant calculation results, which must have an error in the xml, because googlecheckout says "Anticides Emporium does not ship to this address". Yet my XML that sends to the server says it does, here is the xml it sends:
Code:
<?xml version="1.0" encoding="utf-8"?> <merchant-calculation-results xmlns="http://checkout.google.com/schema/2">
<results>
<result shipping-name="UPS: Next Day Air" address-id="326363196030853">
<shipping-rate currency="USD">26.69</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: Next Day Air Saver" address-id="326363196030853">
<shipping-rate currency="USD">24.09</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: 2nd Day Air" address-id="326363196030853">
<shipping-rate currency="USD">15.3</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: 3 Day Select" address-id="326363196030853">
<shipping-rate currency="USD">11.07</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: Ground" address-id="326363196030853">
<shipping-rate currency="USD">8.25</shipping-rate>
<shippable>true</shippable>
</result>
</results>
</merchant-calculation-results>
However, if I set the .htaccess option to false, with or without the htaccess files made, my server DOES NOT send the xml of calculation results to the server, and googlecheckout uses my default values already sent.
Therefor, the cgi option being true is correct and working (it sends the xml), however the xml formatting or something is incorrect, as googlecheckout isn't updating the price and shutting down checkout by saying we do not ship to that address. Please help, as I am one of the few on this board that has a clue how to get past the install/readme files, as it's apparent people dont read. LOL
Thanks in advance, and your help and hard work is EXTREMELY appreciated,
Anticide
-
Re: Google Checkout module for Zen Cart (beta)
Can someone help me out?
I reinstalled everything, new Zen 1.3.7 and installed the new GCO 1.2 RC4. Doing sandbox, and put in correct merchant ID and Key. No errors on url/googlecheckout/responsehandler.php.
However, the GCO logo is nowhere. I'm trying to only use GCO, the only mention of it is on step 2/3 in the payment process where it says payment method. However, I go through the whole process, confirm order, it congratulates me and I'm done. But of course, never went to GCO so no order really happens. Any ideas?
I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
eva01
Can someone help me out?
I reinstalled everything, new Zen 1.3.7 and installed the new GCO 1.2 RC4. Doing sandbox, and put in correct merchant ID and Key. No errors on url/googlecheckout/responsehandler.php.
However, the GCO logo is nowhere. I'm trying to only use GCO, the only mention of it is on step 2/3 in the payment process where it says payment method. However, I go through the whole process, confirm order, it congratulates me and I'm done. But of course, never went to GCO so no order really happens. Any ideas?
I'm also getting this error when I check the logs:
Sun Mar 4 0:55:28 CST 2007:- HTTP Basic Authentication failed. Can't retrive Merchant Id/Key, Installed over CGI??
I'm guessing I'm making some really basic mistake, but I don't know what it is since I reinstalled everything and started from scratch step by step.
hi eva
have alook to the INSTALLATION file
* Note: The folder YOUR_TEMPLATE refers to the folder that contains your templates.
you must put the files in /includes/templates/YOUR_TEMPLATE/ in your own templates dir
there you should see the GC buy button.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anticide
Ropu,
I'm not sure if you use CGI basic authentication, but here's the errors from someone who does, using the most up-to-date RC4, and all of the installation/readme instructions followed. I have attempted it several times, and here is what I get:
Settings:
.htaccess - True
Operation - Sandbox
Multisocket - True
Merchant Calculation - http
Default values are set for shipping, googlecheckout has my return url for callback. ht files set up properly.
When .htaccess option is true, my server sends the mercant calculation results, which must have an error in the xml, because googlecheckout says "Anticides Emporium does not ship to this address". Yet my XML that sends to the server says it does, here is the xml it sends:
Code:
<?xml version="1.0" encoding="utf-8"?> <merchant-calculation-results xmlns="http://checkout.google.com/schema/2">
<results>
<result shipping-name="UPS: Next Day Air" address-id="326363196030853">
<shipping-rate currency="USD">26.69</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: Next Day Air Saver" address-id="326363196030853">
<shipping-rate currency="USD">24.09</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: 2nd Day Air" address-id="326363196030853">
<shipping-rate currency="USD">15.3</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: 3 Day Select" address-id="326363196030853">
<shipping-rate currency="USD">11.07</shipping-rate>
<shippable>true</shippable>
</result>
<result shipping-name="UPS: Ground" address-id="326363196030853">
<shipping-rate currency="USD">8.25</shipping-rate>
<shippable>true</shippable>
</result>
</results>
</merchant-calculation-results>
However, if I set the .htaccess option to false, with or without the htaccess files made, my server DOES NOT send the xml of calculation results to the server, and googlecheckout uses my default values already sent.
Therefor, the cgi option being true is correct and working (it sends the xml), however the xml formatting or something is incorrect, as googlecheckout isn't updating the price and shutting down checkout by saying we do not ship to that address. Please help, as I am one of the few on this board that has a clue how to get past the install/readme files, as it's apparent people dont read. LOL
Thanks in advance, and your help and hard work is EXTREMELY appreciated,
Anticide
hi anticide
as i can see, ur under CGI. so .htaccess file must be added, and setted to true, and DV are shown.
TIP, if u are using only one shipping provider that has to call a WS (ie. fedex, usps, ups, etc) multisocket is recomended to be set in false, because will only add overhead, (must add this to the docs :D)
If GC page says that ur store doenst ship to some address is because all shipping results are set to false, but is not the example u sent in the xml above.
my suggest, try multsocket false, and test it with the responsehandler_test.php in my signature.
BTW, if you want (or any one) i have an other script that works as a proxy between Zencart and sandbox, there you can log all http messages with the server. but this requires a little more configuration and some DB mods. (not big deal), but is a good debuging tool.
please, send your feedback when trying my suggest
thx
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I finally got it to work right.. I click on the Google Checkout button and it takes me to google.. So now how do I charge shipping because it doesnt show any shipping. I set my admin to flat rate shipping..
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Dave Wilson
I note that the Installation Notes for this version shows two files to be installed as such:
YOUR_ZENCART_FOLDER/admin/includes/htaccess.php
YOUR_ZENCART_FOLDER/admin/includes/multisock.html
While the downloaded file positioning would seem to show them as:
YOUR_ZENCART_FOLDER/admin/htaccess.php
YOUR_ZENCART_FOLDER/admin/multisock.html
Which positioning is correct?
Hi dave, that a doc's typo
files hould be in
YOUR_ZENCART_FOLDER/admin/htaccess.php
YOUR_ZENCART_FOLDER/admin/multisock.html
as they are packaged
First where as doc, but there they cannot be executed.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
hi eva
have alook to the INSTALLATION file
* Note: The folder YOUR_TEMPLATE refers to the folder that contains your templates.
you must put the files in /includes/templates/YOUR_TEMPLATE/ in your own templates dir
there you should see the GC buy button.
ropu
Thanks, but I did that already before. I use to have the GCO button when using 1.0.4, but had issues with the shipping. With this new release I did a fresh installation of Zen 1.3.7 and then installed the new GCO after it. Now there is no button image, nothing.
-
Re: Google Checkout module for Zen Cart (beta)
Ok, I thought I did that, and I did, but just for the hell of it I put those files under /public_html/includes/templates/template_default/templates/
as well. I thought I was suppose to put them in /public_html/includes/templates/simple_zen/
which is the template I'm using. Anyway, that works. Hopefully the shipping works now too, thanks Ropu!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
eva01
Ok, I thought I did that, and I did, but just for the hell of it I put those files under /public_html/includes/templates/template_default/templates/
as well. I thought I was suppose to put them in /public_html/includes/templates/simple_zen/
which is the template I'm using. Anyway, that works. Hopefully the shipping works now too, thanks Ropu!
the best thx is a working site!
thx to you for using GC :D
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Ropu,
When I disabled MultiSocket Shipping Quotes Retrieval and everything worked perfectly, definitely needs to be added to the readme for users using cgi ;) Many thanks appreciated!
-
Re: Google Checkout module for Zen Cart (beta)
You rock Ropu, I don't know how you handle working on this and helping everyone here too, thanks again.
-
Re: Google Checkout module for Zen Cart (beta)
Looks like I'm still getting shipping errors. Whenever I test an international address, it says my site does not ship to this address. Has anyone had luck with this? I remember I wasn't the only one that had problems with this before.
I'm using zone shipping method btw.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
hi eva
have alook to the INSTALLATION file
* Note: The folder YOUR_TEMPLATE refers to the folder that contains your templates.
you must put the files in /includes/templates/YOUR_TEMPLATE/ in your own templates dir
there you should see the GC buy button.
ropu
ropu, can consider putting this mistake under "MOST COMMON MISTAKES"?
thanks, it ate up more time than I am willing to admit =)
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
eva01
Looks like I'm still getting shipping errors. Whenever I test an international address, it says my site does not ship to this address. Has anyone had luck with this? I remember I wasn't the only one that had problems with this before.
I'm using zone shipping method btw.
eva, Int'l shipping is not yet available for GC. So any shipping outside US, will be marked as not-shippable.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
awnold
ropu, can consider putting this mistake under "MOST COMMON MISTAKES"?
thanks, it ate up more time than I am willing to admit =)
Thanks awnold for your suggestion, ive just add it to that section.
any other docs suggestions are very welcome, i must understand that as the developer of the code, lost of things i have them as a default, but for many merchants may mean big trouble!, so feedback for documentation are very helpful :D
thx again
ropu