Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ropu,
I removed the module and re-installed it. I am still getting the following error:
"Fatal error: Cannot redeclare selfurl() (previously declared in /home/blumcafe/public_html/coffeeshop/googlecheckout/gcheckout.php:38) in /home/blumcafe/public_html/coffeeshop/googlecheckout/gcheckout.php on line 37"
I look in developer's tool kit to see what else calls that selfURL function, but nothing shows there. I don't know what else to do at this point. Furthermore, in your previous post, you suggested that I add a "gc_" to all GC internal functions. I am not a programmer and I am not sure I understand what that means. Does that mean wherever I see a function call, I need to add the "gc_"? for instance "function strleft($s1, $s2) {" would now be "function gc_strleft($s1, $s2) {"? Please advise. I am running ZenCart 1.3.7. I just installed the GC module 1.2RC4Rev1.
Thanks,
Blum
Hui blum, there is no need to rename any function, i put that for the TODO list in the module.
what you can do to help me, is addressing me where is the other strleft function declared.
there i can see where the error appears.
thx
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Ropu,
Is there a possibility of posting a definitive list of what Zen Cart functions/features ARE supported by your GC mod, and which functions/features are NOT supported?
Also is there any programming option available in your mod to disable Google Checkout option whenever customer:
1) is logged in with an account associated with a non US address
2) adds a "virtual" product to their shopping cart?
3) for customers not logged into Zen Cart does your mod provide any feedback to the customer to make them aware that international shipping is not supported, before they spend time filling out forms at the Google Checkout site.
Or maybe update the Google Checkout logo to state "US domestic shipping only". Or can we edit te logo to show this? Otherwise how are customers to understand the shipping limitation?
I was really hoping that Google Checkout would quickly become a viable competitor to PayPal. But lacking support for international shipping and for virtual products (softgoods), that competition will not take place.
Maybe Google could hire some extra "Summer Coders" to make this happen?
Woody
Woody, hi, thx for ur comments as usual
i cannot give any dates or any thing about new features released by google because i dont know :D
but, as i told you i some latest post, there is a link to post suggestions for new features, and all of the ones u are proposing are there. so i dont think google will ignore it. because its not only u the one asking for them.
ill keep you and all merchants updated.
ps: i think google is giving a lot of effort to this project and have more than just "summer coders" working there!, i can assure that, i know some of them. ;)
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Ropu, is there a way to clean up this file /googlecheckout/gcheckout.php or align it better so that it's easier to comment out the different shipping options. The white space is all over the places that sometimes commenting a line actually creates an error.
Thanks!
bless, u shouldnt touch /googlecheckout/gcheckout.php to enable or disable shipping methods. the only place is includes/modules/payment/googlecheckout.php mc_shipping_methods and mc_shipping_methods_names methods
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I am using option B in the instructions. The mentioned files
[FONT=Courier New]tpl_checkout_payment_default.php [/FONT]
[FONT=Courier New]tpl_login_default.php [/FONT]
[FONT=Courier New]tpl_shopping_cart_default.php[/FONT]
[FONT=Courier New]these are the files that go in MY TEMPLETE. [/FONT]
[FONT=Courier New]I already have these files so I followed the instructions and replaced the information that I was suppose to. Do I need to completely replace these files instead of just the curtain info? [/FONT]
jhaase, you just need to replace the code pointed in the INSTALLATION file.,(option B)
note: This if u are using a different template than the default one.
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
netwiser
Hi All..
I am a Zen Wannabe LOL
I installed and configured the google checkout mod.
I have a single test product, wi:lamo: th free shipping...
I go through the check out process with no errors
and get to the check out success screen, however
when I go to my google check out account, no orders
show up..
So... Now... Im lost LOL
Id be happy to provide access to anyone that might wanna take a look and see what I mucked up??
Thanks
Bob :lamo:
Hi bob
please double check this things.
In the Admin UI, do you see the orders?
What environment is setted in the Admin UI, sandbox or production? Remember, sandbox and production have 2 different merchant id/key pairs.
when you check your checkout account, if u use sandbox, u use http://sandbox.google.com/checkout/sell ?
response_error.log shows something?
please, look at these items and see if u missed something
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Dave Wilson
>From looking at the Sandbox Merchant Center, it appears that my API
callback handler returns the following when Google Checkout sends
merchant-calculation-callback message:
<br />
<b>Fatal error</b>: Call to undefined function: socket_create() in
<b>/usr/local/4admin/apache/vhosts/nativeamericantrade.com/httpdocs/zencart/googlecheckout/multisocket.php</b>
on line <b>188</b><br />
As I metioned before I am not getting real time shipping rates (only default rates) and my orders are not showing up in the order inbox.
There seems to be a problem in the code that is causing a timeout or some other problem preventing the callback to fail. Please advise as this seems to be the major hurdle preventing me from getting my cart up and operating after waiting since Dec. to overcome some of these GC problems.
Thanks
please, try disabling multisocket feature from the Admin UI.
if this doenst help, feel free to ask again..
ps: test ur implementation with the responsehandler_test.php in my signature
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
nabrown78
Oops - The class was being declared twice because instead of having the language file and the module file each called googlecheckout.php, I simply had two copies of the module file, one stores where the language file should have been. My bad, as they say.
hi nabrown
:D, np, can happen to the best :P
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Ropu, anybody?
Could the source of my problem be due to the fact that some of the files already have paypal express embeded - ZC ver. 1.3.7. I have made too many mods to my site and really don't want to have to re-do the whole thing. Any suggestions are welcome. I saw where one other person in this forum had a similar issue but I could not find the solution? Please Help.:(
blumcafe
One quick solution, that could work, is commenting the whole strleft function in gcheckout.php try this and let me know
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
Anyone knows is the googlecheckout sandbox is working?
I need to get a sandbox account.
This is the correct url correct?
http://sandbox.google.com/checkout/sell
I keep getting a 502 Server error when I go there.
"Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds. "
tj, i really dont know what is happening with Sanbox, but there are a lot of reports on that. perhaps a maintenance on the servers... i could connect several times, but others i had that same issue.
ill ask goog people and let you know
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
blumcafe
Thanks all for your feedback. I did check and did verify that the modules were different. I guess I am just stumped at the moment and was wondering if I really needed this function call? If I don't need it, can someone tell me how to work around it?
Thanks
the work around as i told u is commenting the function, but be careful, the other function must do the same as the one commented :P
or, if u prefer, rename that function, and all the calls to it in the gcheckout.php file.
in fact just line 39
try replacing this
(googlecheckout/gcheckout.php line 37)
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'];
}
function strleft($s1, $s2) {
return substr($s1, 0, strpos($s1, $s2));
}
with
PHP Code:
function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = gc_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}
function gc_strleft($s1, $s2) {
return substr($s1, 0, strpos($s1, $s2));
}