Re: Google Checkout module for Zen Cart (beta)
GC 1.5 is installed & working, but orders are still not showing up in Admin. responsehandler.php opened directly returns the error:
Fatal error: Call to a member function on a non-object in /home/mpayson/public_html/zc137/includes/languages/english/credit_cards.php on line 57
That error doesn't appear to be mentioned in any other post in this thread. That file has not been edited in my install. Here is line 57 for reference:
Code:
define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));
Since I don't accept credit cards directly, I can't imagine why this is even being called. No additional payment modules are even installed.
response_error.log reports:
Sun Feb 18 0:23:46 EST 2007:- Shopping cart not obtained from session.
Please forgive me for not reading through the entire 68 pages of this thread before posting. I've read many of the posts, particularly from around p32 and through p49 to this point (plus roughly p60+). Based on the recommendations on those pages I've upgraded from 1.04r to 1.5, but I'm still getting the same error. I'll keep reading through the rest of the thread, but if anyone has any suggestions in the meantime, I would really appreciate it.
Re: Google Checkout module for Zen Cart (beta)
Ok, i got the admin working with the latest revision. i have sizes, colors, etc. working also.
Basically Comment out these lines like below in the responsehandler.php:
/*if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) &&
isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key =
$HTTP_SERVER_VARS['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}*/
$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key =
$googlepayment->merchantkey;
/*if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("Line 127: merchant_id or merchant_key does not match.\n");
exit(1);
}*/
Re: Google Checkout module for Zen Cart (beta)
I got the Google checkout button on my checkout. But when you go through it to order something it goes all the way to the last step you click Confirm the Order and you get a page that says "Email Error: SMTP Error: Could not connect to SMTP host." Now what do I do? Please help.
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
anjordan77
Ok, i got the admin working with the latest revision. i have sizes, colors, etc. working also.
Basically Comment out these lines like below in the responsehandler.php:
/*if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) &&
isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
$compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$compare_mer_key =
$HTTP_SERVER_VARS['PHP_AUTH_PW'];
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}*/
$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key =
$googlepayment->merchantkey;
/*if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("Line 127: merchant_id or merchant_key does not match.\n");
exit(1);
}*/
anjordan77, hi
Thanks for your comment. This will work because u take out the security measures to authenticate the messages sent. With out that code any one could send spoofed messages to ur responsehandler. Please, have a look to this post where i explain how to set .htaccess for those with PHP over CGI, where Basic Authentication is Not supported.
http://www.zen-cart.com/forum/showpo...&postcount=665
Try it and let us know how it worked.
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
I got the Google checkout button on my checkout. But when you go through it to order something it goes all the way to the last step you click Confirm the Order and you get a page that says "Email Error: SMTP Error: Could not connect to SMTP host." Now what do I do? Please help.
jhaase83, hi
Could you explain a little more ur issue.
I can understand if the error arises in ur zencart page or google's one.
If it is in your site, the error is somewhere else. u shouldnt have any "Confirm the order" button in zencart, that must be in the GC site
thanks,
ropu
Re: Google Checkout module for Zen Cart (beta)
Ropu,
I believe it is on my zen cart. The page looks like my web site. I think the problem is when it is trying to leave my site to go to GC to get the credit card info. I was not asked for any payment info before the error page.
Here is what I did.
I picked an item to order, added to cart, went to checkout, confirmed address, picked payment option, confirm the order, then error page. The order did show up on my admin.
Is that enough info? Or is there something else you need?
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Ropu,
I believe it is on my zen cart. The page looks like my web site. I think the problem is when it is trying to leave my site to go to GC to get the credit card info. I was not asked for any payment info before the error page.
Here is what I did.
I picked an item to order, added to cart, went to checkout, confirmed address, picked payment option, confirm the order, then error page. The order did show up on my admin.
Is that enough info? Or is there something else you need?
Well, thats a problem with your installation. Do you see in any place of your shopping cart or login page the GC button like this ones
http://code.google.com/apis/checkout...generator.html ?
if not, double check the template installation, you must rename the dir YOUR_TEMPLATE with the name of your own template.
you should not use regular checkout to use GC, u only need to add items to the cart, and then click GC button. Google handles all the rest of the checkout.
any doubt, feel free to ask.
ropu
Re: Google Checkout module for Zen Cart (beta)
Ropu,
I think I understand now. Let me know if this is right.
Yes I have it set up wrong. When I uploaded the files I did not put them in my Custom folder. Which is where my custom template is. This is where the files need to be.
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
jhaase83
Ropu,
I think I understand now. Let me know if this is right.
Yes I have it set up wrong. When I uploaded the files I did not put them in my Custom folder. Which is where my custom template is. This is where the files need to be.
The files under YOUR_TEMPLATE dir yes, you put them under ur custom template folder
ropu
Re: Google Checkout module for Zen Cart (beta)
Ropu,
Ok. Once I have done this is there anything else that needs done to get the button on my site? Or will it just be there?