Zen Cart Logo
Forums / Addon Payment Modules / Google Checkout module for ZC 1.3.x (beta)

Google Checkout module for ZC 1.3.x (beta)

Locked

Views: 1,099,647

Results 841 to 860 of 3,921
This thread is locked. New replies are disabled.
13 Mar 2007, 12:35 AM
#841
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

I can't get any shipping to work the way I want. Basically I want to charge $5 for shipping on the first item, $2 each additional item.

Table rate didn't work, it charge $5 regardless of how many items. I did set table rate to per item calculation. However during Google Checkout, it says Table: Vary by Weight/Price.

Here are my settings:

Table Rate

Enable Table Method
True

Shipping Table
1:5.00,2:7.00,3:9.00,4:11.00, 5:13.00,6:15.00,7:17.00,8:19.00, 9:21.00,10:23.00,11:25.00,12:27.00, 13:29.00,14:31.00,15:33.00,16:35.00

Table Method
item

Handling Fee
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
0

Then I figured maybe I could work around this by doing per item and setting a handling fee. It should work basically the same:

Per Item

Enable Item Shipping
True

Shipping Cost
2.00

Handling Fee
3

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
0

However all this does is make shipping $3.00 regardless of the number of items. Has anyone got this working, and did you have to do anything special? Am I missing something?

13 Mar 2007, 2:15 AM
#842
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I set up a test store on which I try new things before trying them on my live store. I installed the GoogleCheckout module and I think everything is working OK.

After logging on to my test store today I noticed there were 10 new customers. I was surprised as this is a new test store no one knows about it and there aren't any links to it.
After clicking on the new customers' details I realized these were the same customers who had made payments for eBay and Yahoo auctions using GoogleCheckout.

So my question is, will a new account be created in my ZC store for anyone that sends me a GoogleCheckout payment?
If that's the case, I guess a separate GoogleCheckout account is needed for each separate store one might have. Does anyone know if one is allowed to have more than one seller account?

Also, does anyone if the customers received notification of the accounts created in the test store?

Thanks.

13 Mar 2007, 3:19 AM
#843
12stepspace_com avatar

12stepspace_com

New Zenner

Join Date:
Nov 2006
Posts:
3
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Gave up on 1.2RC4 and have gone back to 1.0.4r which works fine other than the fact that I have to manually update the stock on the event of a sale.

Must say I am very disappointed by the level of support for releases .. Documentation is apalling and the engineering is subpar.

My 2 cents.

12stepspace.com:

I am really confused ... Shipping is always 0.00. I have 1.2 RC4 and 1.3.7 The merchant id/key are correct. I have 2 shipping zones and 2 modules for shipping.

I have spent the whole day trying to update the cart from 1.0.4 GCO and nothing ....

Any help would be appreciated. I am posting my module Info for shipping and GCO

========================================================
Per Item

Enable Item Shipping
True

Shipping Cost
10.00

Handling Fee
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
Not US

Sort Order
2

========================================================

Table Rate

Enable Table Method
True

Shipping Table
27:4.95,40:6.95,54:9.50,67:11.50,80:14.00,99.99:18.00,10000000.00:0.00

Table Method
price

Handling Fee
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
United States

Sort Order
0

GoogleCheckout

Enable GoogleCheckout Module
True

.htaccess Basic Authentication Mode
False

Merchant ID
xxxxxxxxxxxxxxx

Merchant Key
xxxxxxxxxxxxxxxxxxxxxx

Select Mode of Operation
https://checkout.google.com/

MultiSocket Shipping Quotes Retrieval
False

Select Merchant Calculation Mode of Operation
https

Default Values for Real Time Shipping Rates

Google Analytics Id
NONE

Sort order of display.
0

13 Mar 2007, 8:44 AM
#844
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Any way to integrate the normal checkout with GCO or remove the normal checkout button all together? I want to try to use GCO exclusively, but one of two things happens:

Add to cart> regular checkout button>payment method says google checkout>confirm order> THE END....but of course it never goes to gco, no payment has really been made, no errors, looks like a successful transaction.

or

Customer sees the GCO button and just uses that. That's fine, but there still seem to be issues for a lot of people that orders don't show up in admin, which I'm having problems with too.

If you only use GCO, having that regular checkout button basically leads to nowhere for customers. Clicking it doesn't eventually lead anyone to GCO my only option. It doesn't tell the customer there is no other payment method and to go back. Is there any way to either get rid of it, or integrate the GCO button into that process?

13 Mar 2007, 12:12 PM
#845
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I don't think you should use GCO only since you will limit your customer base to US only.

About this GCO plug-in, is there anyway to use my Zone rates shipping fee for this GC?

13 Mar 2007, 5:04 PM
#846
eva01 avatar

eva01

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Thanks, but I'll deal the international shipping issue later. I'm sure they'll get that working eventually.

I'm not the only one that is trying to do this, someone started a new thread on it, but I'm asking about it here to keep it organized.

13 Mar 2007, 9:26 PM
#847
gdorn avatar

gdorn

New Zenner

Join Date:
Jan 2004
Posts:
46
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

Another suggested fix:

If you are using the urchin tracker and have SSL enabled, the following code (around line 548 in gcheckout.php) will cause a cert warning, possibly driving off some customers:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">

This should probably be replaced with:

<script src="<?php echo ($_SERVER['SERVER_PORT']=='443') ? 'https://ssl.google-analytics.com/urchin.js' : 'http://www.google-analytics.com/urchin.js'; ?>" type="text/javascript">

However, given that google's urchin.js is currently broken under firefox, I suggest following the suggestion here:
http://giantrobot.co.nz/gr/2006/11/27/urchintracker-not-defined/

In that case, you'd host a copy of urchin.js on your own server and refer to it in the src instead.

13 Mar 2007, 9:54 PM
#848
sophwise_com avatar

sophwise_com

New Zenner

Join Date:
Apr 2006
Location:
Sunny California
Posts:
44
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

In following a bit more with Zen conventions its even better to switch it to:

<script src="' . <?php echo (($request_type == 'SSL') ? 'https://ssl.google-analytics.com/urchin.js' : 'http://www.google-analytics.com/urchin.js' ); ?> . '" type="text/javascript">
14 Mar 2007, 4:02 PM
#849
blumcafe avatar

blumcafe

New Zenner

Join Date:
Mar 2007
Posts:
21
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

ropu:

the work around as i told u is commenting the function, but be careful, the other function must do the same as the one commented :P

or, if u prefer, rename that function, and all the calls to it in the gcheckout.php file.

in fact just line 39

try replacing this
(googlecheckout/gcheckout.php line 37)

function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}
function strleft($s1, $s2) {
return substr($s1, 0, strpos($s1, $s2));
}

>  
> with 
>  
> ```php
  function selfURL() { 
    $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
    $protocol = gc_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
    $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
    return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
  }
  function gc_strleft($s1, $s2) { 
    return substr($s1, 0, strpos($s1, $s2)); 
  }

blumcafe:

Ropu,
Added the "gc_" but did not fix error displayed in shopping cart. I'll wait to hear from you. Thanks, Blum

Ropu,
So Do I just wait for a new release now or am I missing something? I wanted to go live offering GCO and PP EC. But I guess I will just have to move forward with only PP EC:cry:

15 Mar 2007, 5:24 PM
#850
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

blumcafe:

Ropu,
In addition to the gcheckout.php file at line 39 and line 43,
strleft function is also declared in multisocket.php at lines 164 and 168
Blum, thats true, but multisocket should not be included in gcheckout.php

ropu

15 Mar 2007, 5:27 PM
#851
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

LADG:

Installed the latest and greatest. Copied all files to server, making sure to chagne the 'your_template' name to my template. I get the Google checkout cart showing up in the shopping cart. I don't get any Google Checkout option after that if I select the Zen check out method. The problem with this is that my shipping rates do not show up during the Google check out process. I have seen a lot of the same comments as mine, but see no resolution to this. Is there one yet?

I have table rates set up for shipping and in the Admin panel, it says "No merchant calculation shipping selected" and gives no option for me to select my shipping method.
hi ladg,
Table rates are a flat rate method, so there is no need of merchant calculations neither to set Default Values.

do you have any tax table selected? or a tax zone? that can filter that shipping?

ropu

15 Mar 2007, 5:29 PM
#852
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

blumcafe:

Ropu,
Added the "gc_" but did not fix error displayed in shopping cart. I'll wait to hear from you. Thanks, Blum

blum, try commenting one of the declarations (gcheckout.php or multisocket.php)

if this works, trace where multisocket is included in gcheckout.php... because that an error.

ropu

15 Mar 2007, 5:30 PM
#853
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

jhaase83:

I am using the default template.
I did just replace the code. So what else could be the problem? I have the google checkout option clicked on my payment module. Which lets you pick google checkout at checkout. But there is not a blue google checkout button anywhere on my site. If you need I can give you my url so you can see what I am talking about.

Jhaase,
the problem is in the template dir, please send me ur template dir tree

ropu

15 Mar 2007, 5:35 PM
#854
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

jwoodall:

Can someone help me get rid of the radio button on step 2 of the checkout?

I have GCO installed and working (well..some things I still need to work on).

I need to remove the radio button for GCO on step 2.

There are several references about changing this via this code:

<?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { // ** GOOGLE CHECKOUT ** if($selection[$i]['id'] == "googlecheckout") continue; // ** END GOOGLE CHECKOUT ** ?>

Can someone help me modify my code? Every time I modify it, I trash my checkout.

I'm running in sandbox mode right now if someone wants to test it.

A customer can just choose GCO from the radio button and get an order confirmation without being sent to GCO.

Should they be sent to GCO when choosing the radio button? If they choose the GCO icon on the login page, it works fine.

I also can't get GCO orders to show up in admin. In fact, my orders.php is trashed too, so I need to fix that.

I'm a Zen newbie so please point me in the right direction.

Thanks!

Joseph Woodall
http://www.hollywoodmoviemall.com

Joseph, as far a i can see u haven't setted up the templates correctly.

u can see the GC button in the login page, but not in the shopping cart page. double check that.

in the templates is the code to avoid GC radio button in step 2

ropu

MOST COMMON MISTAKES

  1. The folder YOUR_TEMPLATE in the package refers to the folder that contains
    your templates, you must put the files in /includes/templates/YOUR_TEMPLATE/
    in your own templates dir
15 Mar 2007, 5:36 PM
#855
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

BlessIsaacola:

Actually that was an error on my part. The file I meant to reference for clean up was includes/modules/payment/googlecheckout.php mc_shipping_methods.

Thanks!

Hi bless, thx for ur comments again.

could u give me some tips on how would u like to clean up that code?

im not sure that i understand u

ropu

15 Mar 2007, 5:44 PM
#856
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Dave Wilson:

Thank Ropu,
Disabling multisocket feature from the Admin UI seem to work as I now have real time shipping rates for UPS Ground. I thought that we had changed the code in mcshipping to enable GNDCOM, GNDRES and STD as well. Perhaps I have not enabled them somewhere else, but this is excellent progress. Can you foresee whether I should want to enable the multisocket feature in the future?
I ran an order through Sandbox, but it does not show up in the order inbox. Is it possible that Sandbox orders should NOT show up there?
Could you please explain how to test my implementation with the responsehandler_test.php in your signature? Sorry, I'm pretty php code challenged.

Dave

Dave, i good to hear that is working.

Multisocket is needed if u have more that one shipping provider (say, usps, ups, fedex) if not, there is no need to.

but the truth is that the feature is not working as i expected. and im not able right now to refactor it. there are also other ways in progress to get rid of with the timeout issue.

regarding orders, i dont know with inbox u are referring, GC one, or Zencart?

The idea of the responsehandler test is to emulate GC requests (merchant-calculation-callbacks, new order notifications, or any request that hits responsehandler.php)
as the README in the code says, u need to add the resphand.php url, ur merchant id/key, and an xml with the request (response_message.php should have plenty of them)

after filling this info, run the code and u should see the XML response

if u need more help, just ask

ropu

15 Mar 2007, 5:48 PM
#857
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

SophWise.com:

In following a bit more with Zen conventions its even better to switch it to:

<script src="' . <?php echo (($request_type == 'SSL') ? 'https://ssl.google-analytics.com/urchin.js' : 'http://www.google-analytics.com/urchin.js' ); ?> . '" type="text/javascript"> ``` Taking note, adding it to the trunk dev code thx SophWise and [GDOrn](http://www.zen-cart.com/forum/member.php?u=1202) ropu
15 Mar 2007, 6:30 PM
#858
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Hi all

i finished installing a Demo Server with Google Checkout module installed

here is the URL

http://demo.globant.com/~brovagnati/zen_demo1/

have a look to it.

Also play with MC Log Viewer and the Notification log viewer (links are in the header) to see how messages are passed to Google Checkout server and how GC send notifications to Zencart

ropu

15 Mar 2007, 6:36 PM
#859
jhaase83 avatar

jhaase83

New Zenner

Join Date:
Jan 2007
Location:
MO
Posts:
24
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

ropu:

Jhaase,
the problem is in the template dir, please send me ur template dir tree

ropu

Where would you like me to send it to? And what would be my template dir tree. Is it the folders and files I have in that folder?

15 Mar 2007, 8:32 PM
#860
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

jhaase83:

Where would you like me to send it to? And what would be my template dir tree. Is it the folders and files I have in that folder?

yes jhaase83

send my ur template directory structure form includes/templates/classic (u told me u are using clasic template, arent u?)

u can PM me

ropu