PDA

View Full Version : Google Checkout Module?



carver6
02-03-2007, 04:01 PM
I'm jumping back into osCMax after several years. Stumbled into Google Checkout and want to use it. Have found a couple mods but its unclear if I need to cut an paste code or just install the module. Anyone who has installed a mod for Google Checkout on osCMax have comments / recommendations?

michael_s
02-03-2007, 06:25 PM
I have not had a chance to delve into the code. It is on my to do list, but that just keeps getting longer.

My recommendation is to take a look at the files included in the google checkout mod, and compare them with a diff tool against the oscmax RC3.01 files to get a good idea of what code changes are needed.

I am planning to do this in the next week or so, but if you can't wait, go ahead and take a peek under the hood...

Invizix
02-04-2007, 03:51 PM
When you do port it over to osCMax, PLEASE modify it so as it can use the FedEX, UPS, and USPS shipping modules. Without those, the whole point of using Google Checkout is moot for my webstores, and I desperately need Google Checkout for my shop.

Thanks. :)

Gripped Films
02-05-2007, 02:11 PM
I too am very interested in Google Checkout. Free processing for the rest of the year is a great deal and I would like to take advatage of this.

Thanks,

Ken

michael_s
03-05-2007, 02:31 PM
I have an alpha of the osCommerce google checkout module that I have ported to osCMax. I do not have a google checkout account though, so I cannot test this.

Please note that I am not sure if it works yet, but if you have a test shop available that you can install this on, please give it a try. I make no guarantees, so backup your files before uploading this. Once you have made a backup of your files, just upload the files in this zip to your osCMax installation.

I did install this on my dev shop and it did not cause any problems and it did allow me to go to the google checkout page, but since I don't have an account...

Do not use this on a live store. Only for testing.

If you use this on a test store, post feedback as to how it works, any errors, etc, to this thread.

Invizix
03-06-2007, 06:03 PM
Well, the module falls into place correctly, however there is no checkout option, it doesn't direct the carts contents to the Google Checkout servers.

The admin portion of setting it up, etc all seems to work, however as mentioned above, there it does not direct the carts contents to the Google Checkout servers, it just automatically directs itself to the "Thank You" screen for checkout, and back to the index.php file.

michael_s
03-06-2007, 06:13 PM
Hmmm... It doesn't do that for me... Back to work.

michael_s
03-06-2007, 06:18 PM
Questions:

Thank you page redirect : does it go to googles thankyou page or osCMax's?

When you say no checkout option, do you not see the Google Checkout button on the shopping cart page or the login page?

michael_s
03-06-2007, 06:29 PM
Ok,

Here is how it works for me...

1. Google Checkout buton appears on shopping cart or login page. See screenshots below.

2. Clicking takes me to google checkout with the cart contents. Again see screenshots. If it is not working for you, let me know specifically what the issue is, or where I should be looking. I may repackage the mod for you if I can narrow down where the issue is.

Invizix
03-06-2007, 06:51 PM
I forgot about that... i'm so used to using the osC 'checkout' button. Heh.

Anyways, everything seems to be up and up, when it goes to the button actually showing up. I'm not using the 'fallback' template though, i'm using a custom AlgoZone template, however the button is showing up reguardless. I compared the shopping_cart.tpl.php & login.tpl.php files of both the default fallback & the algozone template with a diff tool and both are identical with no differences.

However I am receiving an error on the shopping_cart.php & login.php pages:

Warning: Invalid argument supplied for foreach() in /home/invisix/domains/prideofnature.com/public_html/googlecheckout/gcheckout.php on line 273

I'd much MUCH appriciate it if you could help out with that.

And also an error directly from the Google Checkout server:

Oops! Pride of Nature has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try checking out again.

Checking the Google Checkout error log it appears to be an XML Parsing error.

michael_s
03-06-2007, 07:13 PM
I made no changes to the gcheckout.php file, so if you have issues with it, try re-uploading it. Perhaps it is corrupted.

If your template has its own custom content pages, you will need to modify them with the changes in this package. As with all mods, first get it working with the default osCMax templates then work it into your custom...

michael_s
03-07-2007, 07:02 PM
Invizix, did you get your error resolved?

Any more issues with this or can I consider it working to post to the projects section?

nicholasbw
03-08-2007, 02:30 AM
You can do a search for "Sandbox+Google+Checkout" and get a developers account for testing purposes. The account will allow you to simulate an actual purchase.

(I coughed up a few bucks and purchased my Google Checkout)

Invizix
03-08-2007, 08:56 AM
Same error... don't know what's wrong.



Invizix, did you get your error resolved?

Any more issues with this or can I consider it working to post to the projects section?

michael_s
03-08-2007, 12:53 PM
You can do a search for "Sandbox+Google+Checkout" and get a developers account for testing purposes. The account will allow you to simulate an actual purchase.

(I coughed up a few bucks and purchased my Google Checkout)

I have finally created a google checkout and sandbox account. It works great for me with no errors.


Same error... don't know what's wrong.
Take a break. I am going to repackage the mod for you, but it will not get done today. Possibly tomorrow.

Invizix
03-08-2007, 02:13 PM
Take a break. I am going to repackage the mod for you, but it will not get done today. Possibly tomorrow.

Awsome! Thanks Michael. :D

michael_s
03-09-2007, 01:11 PM
Ok,

Here is a repackage of the google checkout module. I think there was a problem with the package I previously uploaded as it was slightly different than this new package. I think I missed one of the updated files... regardless, here it is. Test and let me know how it works for you.

---
Zip was removed as a new release is available here:
http://www.oscmax.com/project/google_checkout

michael_s
03-12-2007, 01:44 PM
Any updates? Did the new mod work for you?

josemanuel
03-15-2007, 11:07 AM
Hello Michael,
I would like to integrate this, but I see a few changes to other files, and I wonder- will any of those changes affect my ability to accept Paypal using the Paypal IPN? Other modules?

michael_s
03-15-2007, 11:13 AM
It should not have any effect on the other modules, as it works a bit differently, and diverts the customer before he gets to the internal payment checkout page.

josemanuel
03-15-2007, 05:45 PM
Hello again. Now, preparing my installation, and there seems something a bit off. There is a new file referred in the installation instructions as: /catalog/admin/includes/htaccess.php. The package puts it in/catalog/admin/htaccess.php. The same is for /catalog/admin/includes/multisock.html, which unrars to /catalog/admin/multisock.html

Where should these be located?

michael_s
03-15-2007, 07:06 PM
I just unzipped and that is not the path they are saved to in the zip file. They are unzipping to the admin directory and that is where they belong.

In the zip I just downloaded, this is where the files are located:

catalog/admin/

customers.php
htaccess.php
modules.php
multisock.html
orders.php


Note that I made no changes to the install instructions. This is meant to be an upload and go test, not ready for modified sites or prime time. Testing only.

josemanuel
03-15-2007, 07:21 PM
So as a reference for future instructions changes- the instructions state:
20. /catalog/admin/includes/htaccess.php
21. /catalog/admin/includes/multisock.html
22. /catalog/googlecheckout/multisocket.php

There is also a missing instruction on the admin/customers.php file. That is set with the change in your zipped version.
Thanks for the 24 hour service (smile.)

michael_s
03-15-2007, 07:32 PM
Thanks for that. When it is has been tested a little more, and we all agree it is working, I will make full osCMax install instructions.

debbie703
03-22-2007, 01:30 PM
I'm working on a brand new fresh install of osCMax. I entered a test product and got to the checkout screen and all seemed to work ok.
so now I'm trying to install the google checkout (trial on a fresh install of osCMax)

and the file structure shown in the installation file do not match with what is in the zipped file in this forum.


16. /catalog/checkout_payment.php <<<not in this zipped file>>>
17. /catalog/login.php <<<not in this zipped file>>>
18. /catalog/shopping_cart.php <<<not in this zipped file>>>
20. /catalog/admin/includes/htaccess.php <<<this file is in /catalog/admin/>>>
21. /catalog/admin/includes/multisock.html <<<this file is in /catalog/admin/>>>

Could you please double check the files in the zipped file? I'm trying to adhere strictly to the installation.txt that comes with it. Please help!

I'd like to say thank you to all who have developed this! I used the oscommerce and really like it! and I'm really looking forward to a new install without having to make so many adjustments to get the ups shipping module to work along with the google checkout! Thank you so much!

michael_s
03-22-2007, 06:40 PM
Read the google checkout thread. This is specifically discussed.

From here on:
http://www.oscmax.com/forums/google-checkout/7380-google-checkout-module.html#post25658

debbie703
03-22-2007, 07:00 PM
I'm new to this so please forgive me...but I downloaded the zip file again and according to the installation instructions it says to copy over certain files...but some files aren't even in the zipped file...
there is no:
catalog/checkout_payment.php,
catalog/login.php,
catalog/shopping_cart.php
I'm reading the installation.txt that is included in the zipped file in this forum
I just downloaded the zip file again that is posted in this forum and I still don't see those files.

debbie703
03-22-2007, 08:28 PM
Well, I was able to get it to work...I guess the installation.txt file needs to be updated for osCMax, I guess that'll come later...I copied over the files in the templates folder and I was able to get the shopping cart to work with the google checkout.

So far so good when using a Google Sandbox account!

BUT...if I enable UPS shipping module, I get the following error:

Warning: Invalid argument supplied for foreach() in /home/u2/debbie703/mysitename.com/html/catalog/googlecheckout/gcheckout.php on line 273

if ($enable == "True") {
foreach($googlepayment->mc_shipping_methods[$key] as $shipping_type){
foreach($shipping_type as $method => $name){


Enabling the UPSxml works and calculates shipping so I'll use that one!…but when using the google checkout, it doesn’t calculate shipping in the google window…so I’ll mess with this some more tomorrow to see what I can figure out…

virendrak
04-12-2007, 05:30 AM
Awsome! Thanks Michael. :D


Where can I get the Google Checkout Module for oscMax. ?

waiting for a response.

Thanks in advance.

michael_s
04-12-2007, 08:34 PM
A few posts up this thread, there is a zip file attached. Here is the post:
http://www.oscmax.com/forums/google-checkout/7380-google-checkout-module.html#post25477

virendrak
04-12-2007, 08:50 PM
The attachment has been removed. Please write me the link where I can get that I tired of searching osCMax Google Checkout Module 1.

Thanks

Virendra

michael_s
04-12-2007, 09:59 PM
It has not been removed, It is in the post I said, I just downloaded it.

virendrak
04-12-2007, 10:06 PM
Thanks ... I got that .
:)

virendrak
04-12-2007, 10:15 PM
I have downloaded the oscMax GoogleCheckout module 1 but as per the instructions in the INSTALLATION.txt file included I don;t find any code to replace in the for
/catalog/checkout_payment.php LINE 219
/catalog/login.php LINE 203
/catalog/shopping_cart.php LINE 197

when I logged in Admin Panel I can see the Gcheckout avaiavble for install but the installation doesnot start when I click on it.

I think I Missed some thing .

Thanks

michael_s
04-13-2007, 07:18 AM
Yes, you did not read this thread thoroughly. Do not read the included instructions that are in the zip file, they do not apply to osCMax.

Simply upload the files in the package over your existing store. If you are using a modified osCMax install (you hacked in other mods) then you need to use a file compare utility to merge in the changes. If all you did was change the template in osCMax, you should be fine in just uploading the files.

This is still in development, as has been noted in this thread a couple of times and the instructions included in the mod are the original unchanged instructions that only apply to the old osCommerce mod, not the osCMax mod.

virendrak
04-15-2007, 07:22 PM
I have used the mod for Osc Max Google checkout and I have problem i.e. when I choose
google checkout the shipping information is not passed to google. So when they go to checkout all the shipping options are set to 0 dollars... I have disabled USPS as I learned from the thread.

SO how can I remove this error of not getting shiiping charges at google.

please help !!!

Thanks in advance

VK

battleaxe
04-29-2007, 02:12 PM
Michael, Is this the level 2 module that works with API?

michael_s
04-29-2007, 08:46 PM
Yes, this is the a ported version of the official Google Checkout Level 2 module for osCommerce.

battleaxe
04-30-2007, 06:12 AM
Heads up for UK merchants, do a quick search and replace for mentions of USD in code; replace with GBP otherwise you will get a currency mismatch at the checkout

battleaxe
04-30-2007, 08:59 AM
am further now, but when I get to the sandbox checkout which comes up fine, it will not allow me to ship to an address in the UK. I have tried checking and unchecking the automated shipping button but it makes no difference. When I overwrote Michaels package with the Google developers v1.3RC2 I get this in admin:

Fatal error: Call to undefined function: tep_admin_check_login() in /home/****/***l/******/catalog/admin/includes/application_top.php on line 214

in a 2RC3 store that has had the look modified. The catalog itself looks fine. When I pass the sale to Google I get:

This XML file does not appear to have any style information associated with it. The document tree is shown below. − − − XML failed to validate against the schema at line: 22, column: 22, with error: cvc-enumeration-valid: Value 'MODULE_PAYMENT_GOOGLECHECKOUT_TAXMODE' is not facet-valid with respect to enumeration '[UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN, HALF_EVEN, UNNECESSARY]'. It must be a value from the enumeration. − XML failed to validate against the schema at line: 22, column: 22, with error: cvc-type.3.1.3: The value 'MODULE_PAYMENT_GOOGLECHECKOUT_TAXMODE' of element 'mode' is not valid. − XML failed to validate against the schema at line: 23, column: 23, with error: cvc-enumeration-valid: Value 'MODULE_PAYMENT_GOOGLECHECKOUT_TAXRULE' is not facet-valid with respect to enumeration '[PER_LINE, TOTAL]'. It must be a value from the enumeration. − XML failed to validate against the schema at line: 23, column: 23, with error: cvc-type.3.1.3: The value 'MODULE_PAYMENT_GOOGLECHECKOUT_TAXRULE' of element 'rule' is not valid. − Error parsing XML; message from parser is: Invalid value for body of mode in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/rounding-policy: That is not one of the acceptable values

Has anyone any idea for a dirty fix (or otherwise). Meantime I am comparing the code of the v1.3RC2 which supposedly supports UK merchants. The other error I am coming up against using Michaels package... on the cart page where the Google Checkout button is, I am getting this...

Warning: Invalid argument supplied for foreach() in /home/huskyzco/public_html/001_full_store_oscmaxv2rc3/catalog/googlecheckout/gcheckout.php273 on line 273

Any ideas on any of this gratefully received

trkannanbabu
05-02-2007, 10:54 PM
Hi All,

Even i have been very curious to integrate Google Checkout with our existing Site..

I integrated and tested, we have customized the OSCommerce, but the issue is we are not in a position to keep track GC in our backend (admin) .. Each and everything we are depending in Google..

Is there anyway to keep track of that?

Thanks in Advance.
Kannan

battleaxe
05-27-2007, 04:02 PM
What version is your existing site?

Googles api updates the admin in oscmax v2 automatically to pending when the customer orders through the checkout. when you charge the customers' card, it changes to processing, and when you post (ship) the order, it changes to dispatched. Maybe I didnt understand you question.....

nickt15
06-08-2007, 08:36 AM
Anybody know if Google Checkout can be programmed for Real Time Shipping using oscmax ?
If not how about oscommerce ?

Google Checkout is about 50% of my orders now & if you have all different sizes & weights of packages you can't use flat rate shipping, so if anybody has any idea or is there a new contribution out there please help !!!!!

kingsland
07-05-2007, 04:14 AM
I have tried to install this package using the included zip files. I have read though hundreds of threads to no avail. This is the error message:


Parse error: syntax error, unexpected T_ARRAY_CAST in /home/10849/david_kly/www.kingslandfloors.co.uk/public_html/admin/modules.php(234) : eval()'d code on line 1

When I click install within admin nothing happens. But when I click on the google module I get the error. There has been many similar problems on the forums, but none that match my problem directly.

michael_s
08-05-2007, 07:10 PM
This will be good news for many of you:

I just released the ported Google Checkout 1.4 module. It is a full install package with instructions and is fully compatible with osCMax 2.0 RC3 and newer.

On new installs, no edits are needed, just upload all files in the package.

Anyway, here is the official discussion thread:
http://www.oscmax.com/forums/google-checkout/10076-official-google-checkout-v1-4-oscmax-2-0-thread.html

And you can download the package here:
http://www.oscmax.com/project/google_checkout

edgeconsults
03-08-2008, 04:23 PM
i'm getting this xml parse error from shipping to googlecheckout
[Sun Mar 09 00:02:39 2008] [error] [client 209.85.170.136] PHP Fatal error: Cannot redeclare class XMLParser in /home/edgeconsults/www/investinhardmoney.com/includes/classes/xmldocument.php on line 209

edgeconsults
03-08-2008, 04:24 PM
also why is carrier calculated shipping missing from this contrib?

michael_s
03-08-2008, 04:32 PM
If you note the version, it has not been updated to include carrier calculated shipping yet.

I have never seen that error before (xml error) and do not get it in my osCMax test store, so any other info you can provide would be helpful. When/where do you get the error?


Also, this is the current thread to discuss this mod:
http://www.oscmax.com/forums/google-checkout/10076-official-google-checkout-v1-4-oscmax-2-0-thread.html

edgeconsults
03-08-2008, 04:36 PM
ups xml works on the website and forwards to paypal and my cc module but when the customer goes to googlecheckout and logs in the ups rates don't pull up they show 0's and also when the order is completed it doesn't show up on the admin backend.

what would cause the level 2 integration from not working? also so you know this is a fresh installation with only the googlecheckout mod installed and that was done by a simple drag & drop to replace and then upload.

oh btw i'm getting that error in my apache logs.

michael_s
03-08-2008, 04:43 PM
What is a 'drag & drop' install?

To install google checkout module you need to follow the install instructions.

edgeconsults
03-08-2008, 04:49 PM
well in the install instructions under fresh install it tells you to replace the files in your catalog and admin directories. and do chmod on the 2 log files. did i miss something?

edgeconsults
03-09-2008, 07:29 AM
for some reason when someone orders through googlecheckout it doesn't show the order in my admin page. do you know what could be causing this?

edgeconsults
03-19-2008, 08:08 PM
any one here? i'm also having an issue with the low order fee transfering to googlecheckout and paypal. i don't know why. please help.

bdepew
11-17-2008, 02:20 PM
I am getting the same issue, order is placed thru google checkout and its there and everyone gets emails, but it doesnt show up in the admin area under orders in OSCMax, any ideas?

bargaini
01-07-2009, 09:02 PM
I'm trying to install google checkout for oscmax, but I can't seem to find the right version. Installed ver 1.4.5.CCS, but it was giving me an quote stating I had the beta version? Then removed and installed the 1.4beta1.2 version and got the same error.

I'm still trying to find my way around the site, but I'm not sure if I'm downloading the current mod. can someone point me to the right directions to download google checkout.

Thanks
:D

michael_s
01-08-2009, 05:08 PM
Did you install this one:
http://www.oscmax.com/forums/google-checkout/13792-beta-module-google-checkout-oscmax-v1-4-5-ccs.html

What is the exact error you are getting? Copy and paste it here.

bargaini
01-08-2009, 06:40 PM
I installed the google_checkout_oscCMax_1.4.5.CCS

I have the following message before checkout

* The Version of the installed module in the Admin UI is osCMax v1.4beta1.2 and the one of the package is osCMax v1.4.5_CCS, Remove/Reinstall the module

Am I installing the wrong version? I removed it and installed the version
google-checkout-oscmax-v1.4beta1.2.zip which I found at the following thread: Google Checkout for osCMax - osCMax - osCommerce Maximized (http://www.oscmax.com/project/google_checkout) But I still received the same message. I have a clean install so I used option A when installing.

Not sure what I'm doing wrong or if I have the wrong version.

Thanks for the help.

bargaini
01-25-2009, 09:20 AM
Figured out which google checkout to use.

It was confusing because the correct googlecheckout file is named
"google-checkout-oscmax-v1.4beta1.2" the "Beta" in the name threw me off.

The actual "beta" file is named "google_checkout_oscCMax_1.4.5.CCS.zip"

;)

bargaini
03-03-2009, 11:07 AM
Ok I have installed googlecheckout and when I select googlecheckout in the checkout_payment page. I get redirected to checkout_confirmation page, and from there to the checkout_success.php.

I can't figure out why I'm not redirected to the googlecheckout?

Can someone help me out?
https://www.bargainitemsgalore.com/shopping_cart.php
Test account
User email: test@test.com
PW: testaccount