View Full Version : [Beta Module] Google Checkout for osCMax v1.4.5 CCS

05-03-2008, 06:19 PM
BETA SOFTWARE : Do Not Use on a Live Store - for testing only!

I need a little help beta testing the latest update for the Google Checkout module. I just finished updating the code, but could use some help testing in on a few other shops.

If you have a development osCMax RC3.0.1 shop, grab the attached zip and give it a try on your code base.

This is beta software, so it may have some bugs in it that cause issues with either the install process or checkout, so Do Not Use on a Live Store

On an un-modified osCMax RC3.0.1, unzip the archive and upload the files, overwriting the osCMax files. If you already have an earlier version of google checkout installed in your shop, be sure to disable the module prior to upgrading, then after upgrading, re-enable it for the changes to take effect.

Also included are manual install instructions for osCMax, if needed.

Please report any problems in this thread.

Change Log (update from 1.4beta)

Added Carrier Calculated Shipping Support (CCS)!!
(Google Checkout Developer's Guide Addendum - Carrier-calculated Shipping - Google Checkout APIs - Google Code (http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Carrier_Calculated_Shippin g.html))
Added Sandbox and Production id/key config in Admin UI
Added SANDBOX string to the payment method in order page for orders processedwith GC using sandbox.
Added a warning under the GC Button when in Sandbox mode.
Added a warning in the Payment Modules page in the Admin UI when in Sandbox mode.
Disalbe merchant Calculation Shipping methods from the Admin UI by settingDefault value to 0.
Added Google Checkout Custom Order States that match Google Checkout ones. (Check INSTALLATION, an SQL must be run to update old GC order status)
Check for non-valid state changes
Allow product categories to use GC as checkout system
Added Cart Expiration
Check for correct configure.php defines to avoid shipping module inclusion errors
Added a configuration to disable GC button for specific product categories (double check Google Checkout Program Policies and Guidelines (http://checkout.google.com/seller/policies.html#4))
Send Zencart's Credentials to new customers created with GC
If AutoCharge is enabled in GC, a whole Digital purchase is processed without merchant intervention.
Use updated PHP Sample code
Changed PHP Sample code parser classes names to avoid complicts (XMLParser -> CG_XMLParser, XMLBuilder -> CG_XMLBuilder)
Added Cancel Order feature.
Added shipping_methods_uk.php with UK pre-configured shipping methods.
Admin UI configuration regroupment
Added Recommended Default Values to Shipping_generator

07-12-2008, 07:30 PM
Nobody wants to help test this?

07-23-2008, 08:17 PM
I checked your google checkout module and I found that it is the very same code to official GGC 145a, so it will be suffer from the same bug that the official module have. I will talk about GGC integration first.

At first I try to install it over OSCMaxRC4, the error show that a table name "zone to geo zone" (sorry i can't remember an exact name) doesn't exist. I think this error has nothing to do with GGC module but it happen becuase the rc4 database building script is not complete yet.

So I install it over OSCMaxRc3.01 and it works if I checking out normally from my shopping cart page with GGC. However, if I didn't click GGC and click normal checkout button instead, there are 2 minor bugs occur as follow:

1. After I click the normal checkout button, the login.php page will pop up and ask me to sign in. If I click the GGC button in this login page, I expect to go to google page but I get stuck here.

2. If I do login in the login page above or click the purchase with out account, there are no google checkout list as my payment method.

I will talk about official bug in later post.

07-23-2008, 09:01 PM
The official bug that I have been found on my website ( I have my own modificatoin over original OSC).

1. The order total value won't display correctly in google page. This because the error in file gcheckout.php. It psot wrong xml to google server, check out this thread (http://groups.google.com/group/google-checkout-for-osc-mod-support/browse_thread/thread/6f0fe068f4a7330d/b8b68571e0b00224?lnk=gst&q=%24ot_value#b8b68571e0b00224) in google forum.

2. The attribute stock won't be deducted because the file responsehandler.php, which suppose to post data back to your store, wasn't designed for QTPro or anything like this contribution. There are some thread in osc forum about how to integrate QTpro with GGC but I can't find it, sorry.

3. When customer make order, google will create order log in admin side. Somehow, if you are not selling in US, the country of the buyer won't come in and it will show Afganistan which is the first country in the list instead. This will result in wrong Tax zone. The solution is in this thread (http://groups.google.com/group/google-checkout-for-osc-mod-support/browse_thread/thread/8d0aa9b95cea4268/815a66ab8e2565f8?lnk=gst&q=zone#815a66ab8e2565f8).

4. If you fix the above problem, GGC will be able to post correct country of the buyer in to your admin order page, but this time it will post in country ISO code not the country name like another order. This thing can be modified easily in responsehandler.php by making it query the country name form the ISO code in your database before post them to order log.

5. This is the last problem I'm unable to find anyway to solve, it is the wrong shipping weight calculation. It will occur if you buy the same product with different attribute, like 1 shirt Color black Size L and 1 shirt color red size L, it will calculate the weight only 1 product instead of 2. I think the problem lies within gcheckout.php. It should be able to separate product with different attribute from each other. But i'm not good at php at all so I can't fix it myself.

That's all problems that I know. I hope somebody can provide a fix since there are no support from official GGC for OSC anymore.

07-24-2008, 07:10 AM
Of course it is the exact same code as the official Google Checkout 145 module .

It is just ported to work with osCMax. No changes at all to the core module (and there will not be any). I am not developing this module, just porting the existing code to work with osCMax. Whatever existing bugs in the actual module should be addressed at the Google Checkout module discussion group.

Regarding the problems with the module installation on osCMax, I will address those, as that is the feedback I am looking for.

The zones_to_geo_zones error is a known issue in RC4 right now, but intermittent and has something to do with mysql timinig out during the sql execution during the initial installation of osCMax. This results in the last table zones_to_geo_zones not being created, resulting in the error you see. Simple workaround is to open the osCMax.sql file in the install directory, copy the sql that creates the zones_to_geo_zones table and manually create the table with phpmyadmin.

This problem does not occur every time, and I can install with no issues on the very same server more than 50% of the time. It is odd and I am trying to work out where the issue occurs.

1. RC3 issues - I will attempt to repeat this error and look for the solution.
2. I did not include the GC code in the PWA module. It was an oversight. I will add the integration code to the PWA files and include in a new package. A workaround is to copy the integration code (the code that shows the button) into the PWA files.

11-09-2008, 09:51 PM
is this stable enough for a live store?

11-10-2008, 08:50 AM
Should be, but nobody has tested it besides me (or at least not posted that they have), so I am not 100% sure. I have used it without any issues for a long time.

12-19-2009, 12:56 PM

should i use this instead of the other oscmax GC release?


12-19-2009, 02:21 PM
give it a try, but remember it is beta...

12-19-2009, 02:31 PM

is it production ready beta, or risky beta?


12-19-2009, 03:10 PM
beta is never production ready, that is why it is beta. Use at your own risk. If you are worried about breaking your live site, first install on a test store and play around with it. I use it without any issues though.

12-19-2009, 03:58 PM

is there a main difference with the other GC mod that makes this one special?

enough to risk it?


12-19-2009, 05:29 PM
It is more current, thats all.

12-19-2009, 05:35 PM

how should i install, just overwrite the other one?


08-19-2010, 08:22 AM
I have tried this on a live store - it has advantages over the earlier versions such as sandbox and live accounts only need entering once; better reporting. The main issues are that the total passed to google does not include tax - this seems to occur whether the prices are tax inclusive or not, and also sppc does not work. Google checkout appears in the list on the customer group page, but if it is not ticked it still shows up as a payment option for that customer group. The main use of google checkout is that the google checkout symbol will appear next to links to your site when potential customers search google for a product. With this module so close it would be great if it could be finished.