Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Hi nabrown
i don'y really know the cause of the issue
but this should solve it
replace in googlecheckout/gcheckout.php 38
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'];
}
with this
PHP Code:
if (!function_exists('selfURL')) {
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'];
}
}
please send your feedbacks
hope this helps
ropu
After doing this I now get this error:
Fatal error: Cannot redeclare strleft() (previously declared in /home/wilmersc/public_html/store/googlecheckout/gcheckout.php:44) in /home/wilmersc/public_html/store/googlecheckout/gcheckout.php on line 44
:|
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Greyboy
ropu,
I just installed the 3RC1Rev1 version of GC and everything I am using is working perfectly. We have a site using CGI with the UPS shipping module installed. No defaults set for 1day air, 2day air and ground shipping and the calc callback is working great. Thanks so much for all your hard work. We are going live with this site this Thursday and I was starting to sweat.... Got the fix I needed just in the nick of time!
Thanks Again:clap:
BTW: Someone in this thread was asking if godaddy turbossl certs worked with GC. We have this cert and it works fine.
hi Greyboy
im happy to hear that!
:D
ropu
Re: Google Checkout module for Zen Cart (beta)
I tried doing a if function on strleft and then it gave me this error:
Fatal error: Call to undefined function: strleft() in /home/wilmersc/public_html/store/googlecheckout/gcheckout.php on line 39
Re: Google Checkout module for Zen Cart (beta)
BTW, this happens when I add something to the cart and then remove it. At least that's where I've noticed it so far.
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
After successfully testing on a test store, I tried to use it on a live store and I got this error when displaying the contents of the cart:
***************
Warning: main(admin/includes/configure.php) [function.main]: failed to open stream: No such file or directory in /public_html/googlecheckout/gcheckout.php on line 33
Fatal error: main() [function.require]: Failed opening required 'admin/includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/googlecheckout/gcheckout.php on line 33
**************
I think the cause of this error is that I, as any ZC user should as recommended for security, have renamed the admin directory.
Line 33 on googlecheckout/gcheckout.php reads:
require_once('admin/includes/configure.php');
I think the instructions should mention one should change this line if the one has renamed the admin directory.
Thx tj
added in the README file
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
ropu -
I hope you are enjoying a well-deserved holiday there in Argentina!!
I really appreciate all the hard work you have put into this module! And I'm overjoyed to say I have merchant calculated shipping and taxes working just fine on my site now in cohabitation with PayPal Express checkout!!
Well done!!
Hi chain_man!
in happy to hear that is working in an other Zencart e.commerce :D
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
It appears that the button style is determined by your merchant account. I have the exact same URL for my button as does BlessIsaacola (except for the merchant number) and my button does not display the $10 off style button.
BlessIsaacola, did you have to sign up with Google for any special promotions?
Thanks,
Chain, please have a look to this post, there is explained how to get that button
http://groups.google.com/group/googl...c198e410602d59
hope this helps
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Thanks Ropu -
I checked out that thread last week and made the suggested mods to my site. I guess it's up to Google now...
Welcome back!
Re: Google Checkout module for Zen Cart (beta)
Hi all
as u can see im back again!
im glad to see that now we have 100+ post since i've been off..
i've read them all and i'll try to answer all of them, but its not possible in just one day. so please little patience!
also thx a LOT to woddy, bless chain, tj, for helping with this contrib!
well, stop chit chat, and start to work :D
ropu
The order does not show in my Sandbox
My orders are showing up in the Customer Orders section and are listed as pending. When I log in to my sandbox account there are no orders there.
If I do https://www.mydomain.com/cart/google...nsehandler.php
I see the following:
Mon Apr 9 15:37:02 US Mountain Standard Time 2007:- Invalid
Is that causing the problem?
I'm in Michigan so the time should be eastern time; however, I do not see where to change it in the admin section.
Other than no orders showing up in my sandbox account everything else seems to be working great. I go through the order process and the confirmation email is sent to my test user.
Misc Information about my setup:
I am testing using the sandbox for googlecheckout with the latest versions of zen-cart and googlecheckout. (downloaded from Ropu's sig)
I have activated the sandbox account and set the Integration settings to the following:
API callback: https://www.mydomain.com/cart/google...nsehandler.php
Callback method: XML
Shopping cart post security checkbox is checked.
I do have SSL enabled.
I am on a shared windows server that has PHP4 and curl installed.
The MySQL 5 database is set to cache to the database.
Since I do not have the getallheaders function I had to comment out the security authentication checks. I did Ropu's recommendation of creating the .htaccess and .htpassword files.
I've checked for spaces in my merchant key and merchant ID and both look good. I got them from the sandbox account and double checked that I am not using my production keys.