Post by LivingTheDream » Mon Oct 11, 2010 9:14 pm

I'm not sure if this is the right forum for this but anyway

I've installed the google checkout module and all seemsfine except that the shipping always shows 0.00 - it picks up the fact that it is weight based but not the price. It shows fine on my site at checkout but when I go to google it's zero.

Ive gone though - three times - the setup instructions but still the same problem. Paypal picks it up fine through the checkout.

I'm using OC 1.4.9.1

Any advice appreciated

LtD
Last edited by i2Paq on Wed Oct 13, 2010 7:53 pm, edited 1 time in total.
Reason: Topic moved


Posts

Joined
Sat Oct 09, 2010 6:20 am

Post by JAY6390 » Tue Oct 12, 2010 8:59 am

Can you post a link to your site

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by LivingTheDream » Tue Oct 12, 2010 3:32 pm

Of course- thanks for looking

http://Www.hobsonandson.co.uk


Posts

Joined
Sat Oct 09, 2010 6:20 am

Post by LivingTheDream » Tue Oct 12, 2010 4:38 pm

If it helps - I have gone through my settings and they are as follows

Localization

Tax class - taxable, geo zones - Uk VAT set as 17.5%
Uk Shipping is blank

Geo zones - uk shipping - country - uk - zones - all zones

Zones are standard and I have confirmed uk has all counties

Countries are standard

Google checkout is set to geo zone - all zones


Shipping

Tax class - taxable

Uk shipping is enabled with rates in
Uk vat is disabled

Sorry for the format of this - doing it from my mobile - hope you get the idea


Posts

Joined
Sat Oct 09, 2010 6:20 am

Post by LivingTheDream » Tue Oct 12, 2010 9:39 pm

Some more info from my integration console

Error: error parsing XML; message from parser is : Content is not allowed in trailing section.

The XML that was received

<b>Warning</b>: fopen(../logs/googleerror.log) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/home/hobsonan/public_html/system/google/library/googlelog.php</b> on line <b>41</b><b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/hobsonan/public_html/index.php:92) in <b>/home/hobsonan/public_html/system/google/library/googlelog.php</b> on line <b>42</b><br />
<b>Warning</b>:  fopen(/home/hobsonan/public_html/system/logs/error.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/home/hobsonan/public_html/system/library/log.php</b> on line <b>12</b><br />
<br />
<b>Warning</b>:  fwrite(): supplied argument is not a valid stream resource in <b>/home/hobsonan/public_html/system/library/log.php</b> on line <b>14</b><br />
<br />
<b>Warning</b>:  fclose(): supplied argument is not a valid stream resource in <b>/home/hobsonan/public_html/system/library/log.php</b> on line <b>16</b><br />
Cannot open ../logs/googleerror.log file.
Logs are not writable, set them to 777


Posts

Joined
Sat Oct 09, 2010 6:20 am

Post by LivingTheDream » Tue Oct 12, 2010 9:54 pm

Wow!

So I set the RWX permission for the logs as it suggests in the error message and it works! Shipping comes through at last!

But - the logs now have full access, 777 - the install file specifically says to restrict access - will this be a problem for me?


Posts

Joined
Sat Oct 09, 2010 6:20 am

Post by sumitson » Sat Oct 30, 2010 10:05 pm

Version 1.4.9.1 - I am encountering the same error. Shipping methods in regular checkout shows the shipping amounts fine, however, when I press the google checkout it shows three (3) drop downs with 0.00 as the shipping cost. The 3 drop downs are UPS, USPS, and Free Shipping.

Not sure how or where it is taking this from and why it is showing $0.00? Even though the value for shipping in this case was $5.95 for UPS in regular checkout?

Any help will be greatly appreciated.

Regards,
-S

Newbie

Posts

Joined
Sun Oct 17, 2010 9:29 am

Post by JNeuhoff » Mon Nov 01, 2010 5:47 pm

Please use only one of the supported shipping methods for Google Checkout's merchant calculated shipping, or turn off merchant calculated shipping and configure your Google Checkout seller account with the appropitate shipping methods in the Settings > Integration.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by vna822 » Sat Apr 09, 2011 7:35 am

I am having the same problem. I have enabled only shipping module - Weight based. In the Weight based, I have configured so that the shipping is $6.99 for Zones 1-2 ( NH,VT, MA, RI, CT) and $7.99 for (ME, NY, NJ, DE, PA). I do not ship to any other states. So, on my website it says no shipping option available when someone from other states tries to order. The following is the Weight based shipping setup:

50:6.99,100:13.99,150:20.99,200:27.99,250:34.99,300:41.99,350:48.99,400:55.99,450:62.99,500:69.99

50:7.99,100:15.99,150:23.99,200:31.99,250:39.99,300:47.99,350:55.99,400:63.99,450:71.99,500:79.99

Each additional 50lb adds $7

This is working perfect for me in opencart but when I use google checkout the shipping is always displayed as zero. I am not sure if I could use the googles shipping setup because I may not be able to restrict the shipping zones that I dont sell to.

It would be really helpful if you could fix this error. You can try out the setup on my site at: www.bhartimart.com

Thank you for your time.

Naresh

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by vna822 » Sat Apr 09, 2011 8:32 am

What is interesting is that the correct zone is being displayed by Google. That when the address is in Zone (1-2) google displays Zone (1-2) for the shipping option and when the address is in Zone 3 it displays as Zone 3. It also displays a message saying no shipping options available when the address is out side my shipping region. But it always displays 0 for shipping cost. I tried disabling the weight based shipping and enabled flat rate shipping and still the shipping cost is zero.

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by vna822 » Sat Apr 09, 2011 10:45 pm

I think the problem may have to do with my SSL certificate. The bhartimart.com is my test server and I have a self-signed certificate which is obviously not supported by Google checkout. But my real server has a positive SSL which I bought from my hosting company - Dreamhost and seems like that one is not supported either. Google has a list of accepted certificates here:
https://checkout.google.com/support/sel ... swer=57856

My positive SSL is issued by Comodo but there seems to be some issue with chain not going all the way up or something as explained here:

http://www.google.com/support/forum/p/c ... d29e&hl=en

Am I right with this theory. Could the experts please verify this. For those of you who were able to get the google checkout working, could you please post your certificates that are reasonably priced so I could purchase one that will work for sure.

Thank you,
Naresh.

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by JNeuhoff » Sun Apr 10, 2011 12:30 am

Interesting, never had this issue myself.

I am using Hostgator's shared SSL which is sufficient and works fine with Google Checkout.

Just to be sure, have you checked all your error logs, including those on your Google account?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by vna822 » Sun Apr 10, 2011 12:36 am

So, as I did more debugging I see that google never uses the callback URL ( probably because it doesn't like the SSL certificate ). I put this code in the first line of the function "callback()" in gcheckout.php in the catalog/controller and I dont see a popup message:
echo("<script language='javascript'>alert('Hi');</script>");
Excuse my rudimentary debugging skills but this does mean google is not calling back right? Anyways I am in the process of installing the Godaddy Standard SSL certificate - they are giving it for $12.49 as some promotion. Hope google likes this one. I will update this post if that works.

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by vna822 » Sun Apr 10, 2011 12:40 am

Just checked the Google error log in system/logs. Has this:

Sat Apr 9 13:54:39 UTC 2011:- Failed to Get Basic Authentication Headers
(wonder what time it is on cause it is still April 9, 12:39 here in RI, USA )

Where exactly is the error log in the google checkout account

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by JNeuhoff » Sun Apr 10, 2011 1:16 am

The Google error log can be found under Tools > Integration Console.

Let us know if you get it to work with GoDaddy's SSL.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by vna822 » Sun Apr 10, 2011 4:28 am

I have the errors in the Error log in Google checkout account. The error for my actual site seems to be different than the SSL issue. The following is the error:

We encountered an error trying to access your server at https://www.desimart.com/index.php?rout ... t/callback -- the error we got is Sending failed with HTTP response code: 401. Response body was: Failed to Get Basic Authentication Headers

The error for my test site www.bhartimart.com is as expected related to the SSL certificate:

We encountered an error trying to access your server at https://bhartimart.com/index.php?route= ... t/callback -- the error we got is Error 'SSL_CERTIFICATE_ERROR' connecting to url 'https://bhartimart.com/index.php?route= ... t/callback'.

It is good that atleast the SSL certificate on my real site is ok. But I still have to figure out why I get this error on the main site.

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by vna822 » Sun Apr 10, 2011 4:51 am

I found the following link which may be related. I dont understand entirely but I will follow their steps and see where it takes me. I will try it out tomorrow but in the mean time if the experts (J.Neuhoff ;) )here think that this is nonsense please let me know so I dont waste a lot of time:

http://prashcom.blogspot.com/2007/09/go ... basic.html

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by JNeuhoff » Tue Apr 12, 2011 4:14 pm

The callback function whose URL should be a secure one, starting with https://, shouldn't use basic authentication at all as far as I remember. You can easily test it: Just type in the secure URL like https://www.my-store.com into your web browser. Does it prompt you for a user name and password then? It shouldn't!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by vna822 » Wed Apr 13, 2011 4:43 am

Actually, it does ask for username and password. You can try it here:

https://www.desimart.com/index.php?rout ... t/callback

When I put in my google checkout Merchant ID and Merchant Key it still wont let me in. According to this it should let me pass: ( 2nd response from GoogleCheckoutDevPro )

http://groups.google.com/group/google-c ... 207b744d32

When I hit cancel then I get the following message in my browser:
Notice: Undefined index: in /home/desimart_babu/desimart/catalog/controller/checkout/gcheckout.php on line 384Failed to Get Basic Authentication Headers

I looked in the gcheckout.php file in catalog/controller/checkout and on line 384 is where it does the HTTP Authentication. I couldn't get it to work with the .htaccess files either.

There seems to be a lot of discussion about this error occuring with google checkout when the webserver is set up to run PHP as a CGI under apache and most suggestions are to use .htaccess. I dont entirely understand this but is it possible that it can be checked, in what mode PHP is running and accordingly use an authentication scheme in the gcheckout.php file?

Thank you for all your help and for providing the google checkout module itself.

New member

Posts

Joined
Sat Mar 05, 2011 12:42 am

Post by JNeuhoff » Wed Apr 13, 2011 5:30 am

Can't you just disable the basic authentication altogether on your server? I never use them for Google Checkout, I always the HTTPS without the Basic Authentication!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 10 guests