Page 1 of 2
Problem With Google Checkout Please Help
Posted: Mon Sep 20, 2010 7:37 am
by n19bmw
I have been using the google checkout module with no problems, however now it is not working. When i click the Google payment link i get the following error.
Code: Select all
Notice: Undefined index: name in /home/n19bmw/public_html/catalog/model/checkout/gcheckout.php on line 138Warning: Cannot modify header information - headers already sent by (output started at /home/n19bmw/public_html/index.php:92) in /home/n19bmw/public_html/system/google/library/googlerequest.php on line 135https://checkout.google.com/view/buy?o=shoppingcart&shoppingcart=920705854548331
q2
I am not sure what changed, i did update my template however i made no changes to the google checkout code.
My Site
http://www.briansaudio.net
Any help would be amazing.
Thanks
Re: Problem With Google Checkout Please Help
Posted: Mon Sep 20, 2010 9:59 pm
by Miguelito
Does Google checkout work with default template? If the answer is yes then there's something wrong in your new template...
Re: Problem With Google Checkout Please Help
Posted: Tue Sep 21, 2010 12:31 am
by n19bmw
I get the error with this template, Default template and another that it previously worked on. Should i delete the Google Checkout Tables and reinstall the entire process?
Re: Problem With Google Checkout Please Help
Posted: Tue Sep 21, 2010 12:55 am
by n19bmw
n19bmw wrote:I get the error with this template, Default template and another that it previously worked on. Should i delete the Google Checkout Tables and reinstall the entire process?
Ok so i deleted every file that the google checkout came with along with the DB files. I reinstalled it from scratch and still am getting the exact same error
Code: Select all
Notice: Undefined index: name in /home/n19bmw/public_html/catalog/model/checkout/gcheckout.php on line 138Warning: Cannot modify header information - headers already sent by (output started at /home/n19bmw/public_html/index.php:92) in /home/n19bmw/public_html/system/google/library/googlerequest.php on line 135https://checkout.google.com/view/buy?o=shoppingcart&shoppingcart=147930061746075
Any ideas would be 100% welcome
Re: Problem With Google Checkout Please Help
Posted: Wed Sep 22, 2010 5:26 am
by JNeuhoff
Any ideas would be 100% welcome
I think there is something wrong with your Weight-based shipping method for which it cannot find the name of a geo-zone for which you defined the weight and cost ranges.
Re: Problem With Google Checkout And Need A Google Tutorial
Posted: Wed Sep 22, 2010 11:50 am
by n19bmw
Thanks for all the help i got it working properly, it was an issue with the Geo Zone.
Thanks for everyone who tried to help.
Also can someone do a Google Merchant Shipping for dummies. I have tried to get this working with the API Callback however i could use all the help i can get
Thanks
Re: Problem With Google Checkout And Need A Google Tutorial
Posted: Thu Sep 23, 2010 4:44 am
by JNeuhoff
n19bmw wrote:
Also can someone do a Google Merchant Shipping for dummies. I have tried to get this working with the API Callback however i could use all the help i can get
Thanks
Are you talking about Google's merchant calculated shipping? Its callback URL needs to be specified in the Google Checkout module itself. The same callback URL also has to be specified in the Google merchant account (settings integration) which Google uses for sending other notifications (e.g. new order/ order state messages) to Opencart.
See Google's
developer guidelines for more details.
Re: Problem With Google Checkout Please Help
Posted: Thu Sep 23, 2010 8:22 am
by n19bmw
Yes i am talking about the merchant calculated shipping, I can not get this to work. I have the same address from the google module in the API information on googles website under integration, however when i turn on merchant calculated shipping, i can not chekout any item through google. Any help and ideas would be great, If you can explain it good enough i will write a Google checkout for dummies on this forum,
Thanks
Re: Problem With Google Checkout Please Help
Posted: Thu Sep 23, 2010 4:45 pm
by JNeuhoff
Make sure the following conditions are met, as described in the
install.txt file:
1)
If the 'Merchant Calculated Shipping' is set to 'Yes' and
some of your products have the 'Requires Shipping' set to 'Yes' then
at least one of the supported OpenCart shipping modules should be enabled.
The Google Checkout module has been tested with the following standard shipping modules:
- Free Shipping
- Flat Rate
- Per Item Rate
- Weight
And it has also been tested with the following contribution:
- Zone (Available from
http://www.mhccorp.com/downloads-opencart.shtml)
2)
Make sure all of the enabled shipping modules which support a tax class
use the same tax class.
3)
Make sure the product's tax rules, if there, are compatible with Google Checkout.
In particular, tax rules are only allowed for the UK or USA.
4)
If a shipping method specifies a UK-based geo zone make sure it includes
all UK counties.
5)
If the 'System > Settings > Option > Stock Checkout' is set to 'No' then
whenever the customer tries to add an out-of-stock item to the cart
it won't be possible to do the fast checkout with Google Checkout.
6)
Use Google sandbox seller and buyer accounts for testing before going live.
More details on sandbox accounts can be found at
http://code.google.com/apis/checkout/de ... x_Accounts
Also, check your system/logs/error.txt and system/logs/googleerror.log for any error messages as to why you can't check out your items.
Re: Problem With Google Checkout Please Help
Posted: Sat Sep 03, 2011 12:50 am
by ThePath
Im getting ControllerModuleGCheckout::available: Product's tax rules not compatible for Google Checkout errors in 1.5.1.1
Not sure how to sort it. Ive set the GC module to UK Shipping zone. There is no tax settings in the GC Checkout account.
It was working before I seem to remember. I have three shipping options but only one available to UK VAT zone (its free shipping)
Can anyone offer some advice?
Re: Problem With Google Checkout Please Help
Posted: Sat Sep 03, 2011 1:08 am
by JNeuhoff
ThePath wrote:Im getting ControllerModuleGCheckout::available: Product's tax rules not compatible for Google Checkout errors in 1.5.1.1
Not sure how to sort it. Ive set the GC module to UK Shipping zone. There is no tax settings in the GC Checkout account.
It was working before I seem to remember. I have three shipping options but only one available to UK VAT zone (its free shipping)
Can anyone offer some advice?
What's in your Opencart's system/error.txt ?
Re: Problem With Google Checkout Please Help
Posted: Sat Sep 03, 2011 6:34 pm
by ThePath
ControllerModuleGCheckout::available: Product's tax rules not compatible
Its defo the tax rules but I have no idea what to change. Like I said Ive applied the GC module to UK tax zone only so shouldnt that be OK?
Cheers
Re: Problem With Google Checkout Please Help
Posted: Sat Sep 03, 2011 10:47 pm
by JNeuhoff
ThePath wrote:ControllerModuleGCheckout::available: Product's tax rules not compatible
Its defo the tax rules but I have no idea what to change. Like I said Ive applied the GC module to UK tax zone only so shouldnt that be OK?
Cheers
According to your error message, some of your products use tax rules which are not compatible with Google. If you are a UK merchant products should only use a tax class for the UK and all its counties.
Re: Problem With Google Checkout Please Help
Posted: Tue Sep 06, 2011 12:20 am
by ThePath
OK so I found that it wasnt working because in the "Taxable Goods" tax class I had entered a european tax and an international tax rate.
Is there not a way that I can have varying taxes associatted with different areas within the one tax class i.e. "Taxable Goods"
Does the module not know through OC where the user is (obviously it will only happen at a certain stage in Guest Checkout)
Cheers
Re: Problem With Google Checkout Please Help
Posted: Wed Sep 07, 2011 2:45 am
by hellogoodbye
I have the tax set to one state only on OpenCart, but on google checkout it gets applied to every state...
Re: Problem With Google Checkout Please Help
Posted: Wed Sep 07, 2011 3:46 am
by JNeuhoff
ThePath wrote:OK so I found that it wasnt working because in the "Taxable Goods" tax class I had entered a european tax and an international tax rate.
Is there not a way that I can have varying taxes associatted with different areas within the one tax class i.e. "Taxable Goods"
Does the module not know through OC where the user is (obviously it will only happen at a certain stage in Guest Checkout)
Cheers
At the moment, for a UK merchant, it only allows the tax class for the whole of the UK.
However, I think it's worth trying to change the code so it allows a EU-wide tax class which, if I understand it correctly, is the same 20% VAT rate for a UK based merchant.
As regards knowing the customer address: The Opencart Google Checkout doesn't necessarily know the customer address because the customer can directly click on the Google Checkout button, without ever logging into his Opencart account. Opencart passes all the Opencart tax rules and shopping cart items to Google and then transfers the customer to the Google payment gateway. It is there where the customer will log into or create his Google account, and then Google knows the customer address and applies one of the tax rules accordingly.
Try this: Comment out the following lines in
catalog/controller/module/checkout.php, in method
available:
Code: Select all
// Make sure product's tax rules, if there, are compatible with Google Checkout
$rows = $this->model_checkout_gcheckout->findProductTaxRules( $this->cart->getProducts() );
foreach ($rows as $row) {
if ($row['iso_code_2']=='US') {
if (is_null($row['code'])) {
continue;
}
if ($this->model_checkout_gcheckout->isUSStateArea( $row['code'] )) {
continue;
}
}
else if ($row['iso_code_2']=='GB') {
if (is_null($row['code'])) {
continue;
}
}
error_log( date('Y-m-d H:i:s - ', time())."ControllerModuleGCheckout::available: Product's tax rules not compatible for Google Checkout\n",3,DIR_LOGS."error.txt" );
return FALSE;
}
Let me know if Google will now accept your EU tax rule. I assume you don't charge VAT for international, that is, non-EU customers.
Re: Problem With Google Checkout Please Help
Posted: Wed Sep 07, 2011 3:54 am
by JNeuhoff
hellogoodbye wrote:I have the tax set to one state only on OpenCart, but on google checkout it gets applied to every state...
Are you a US or UK merchant? Need more details in order to reproduce your error, if any.
Re: Problem With Google Checkout Please Help
Posted: Wed Sep 07, 2011 6:52 am
by hellogoodbye
JNeuhoff wrote:
Are you a US or UK merchant? Need more details in order to reproduce your error, if any.
US merchant. I only put the % rate for one state and it adds the same tax rate to all other states too.
Re: Problem With Google Checkout Please Help
Posted: Thu Sep 08, 2011 4:02 am
by JNeuhoff
hellogoodbye wrote:JNeuhoff wrote:
Are you a US or UK merchant? Need more details in order to reproduce your error, if any.
US merchant. I only put the % rate for one state and it adds the same tax rate to all other states too.
Now fixed for 1.5.1.x, please download and install again from
here.
Re: Problem With Google Checkout Please Help
Posted: Thu Sep 08, 2011 4:09 am
by JNeuhoff
ThePath wrote:OK so I found that it wasnt working because in the "Taxable Goods" tax class I had entered a european tax and an international tax rate.
Is there not a way that I can have varying taxes associatted with different areas within the one tax class i.e. "Taxable Goods"
Does the module not know through OC where the user is (obviously it will only happen at a certain stage in Guest Checkout)
Cheers
I now fixed it. If the store owner is a UK merchant tax rules different whole countries, including the UK, are now accepted for a tax class, e.g. the "Taxable Goods". Realistically, you should only include EU countries in your 20% VAT tax rate. There is no need for UK merchants to define a tax rate for non-EU countries as it is 0% anyway.