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