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,827

Results 1,301 to 1,320 of 3,921
This thread is locked. New replies are disabled.
25 Apr 2007, 4:28 PM
#1301
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Google Checkout module for ZC 1.3.x (beta)

zgraphic:

Thanks Woody! I am really a Newbie on this. I did download "google-checkout-zencart-v1.3RC2"
Where is "tpl_checkout_payment_default.php" located?
And where should I upload it to?

How do I remove google check out icon after customer login to my site?

and remove the radio GCO payment option after login to my site.

As already stated:

  • You cannot remove the GCO icon. It remains no matter if customer is logged in or not.

  • Apparently you were not able to follow the instructions regards to removing google checkout from checkout payment page.

So PM me your website URL if you don't wish to post publicly.

As ropu stated you have likely uploaded the template files to the wrong directory

Note YOUR_TEMPLATE is just an example which indicates whatever the name of your template is. Zen Cart takes a bit of time/effort to learn. Before proceeding with implementing Google Checkout or any other mod you need to learn about templates/overrides. See the FAQ for info.

Woody

25 Apr 2007, 5:46 PM
#1302
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

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

@z:

The name of your custom template directory is named "z".

So in your case
/includes/templates/YOUR_TEMPLATE/templates/

means
/includes/templates/z/templates/

That is the directory where you should be uploading and/or editing mod template files.

If you are still not sure you need to review templates overrides in the FAQ.

Woody

26 Apr 2007, 4:02 AM
#1303
zgraphic avatar

zgraphic

New Zenner

Join Date:
Apr 2007
Posts:
20
Plugin Contributions:
0

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

Sorry for the wait Woody, I was out working. I was tried to PM you earlier. But I think my pop-up blocker blocked.

  1. GCO icon - so, no matter the customer login or not, the GCO icon can't be hide or remove?

My concern is, on Step 2, payment options. if customer select google check-out, then confirm the order on step 3. It'll go to order completed page. It didnt go to google check-out page. How can my customer pay me? (The order show on my admin page.)

  1. Upload files - I downloaded the file as you said "google-checkout-zencart-v1.3RC2" And I did upload
  • tpl_login_default.php
  • tpl_shopping_cart_default.php

From
\includes\templates\YOUR_TEMPLATE\templates

To
/includes/templates/z/templates/

I really don't see the file "tpl_checkout_payment_default.php"
in any google's folder.

26 Apr 2007, 4:14 AM
#1304
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

zgraphic:

Sorry for the wait Woody, I was out working. I was tried to PM you earlier. But I think my pop-up blocker blocked.

  1. GCO icon - so, no matter the customer login or not, the GCO icon can't be hide or remove?

My concern is, on Step 2, payment options. if customer select google check-out, then confirm the order on step 3. It'll go to order completed page. It didnt go to google check-out page. How can my customer pay me? (The order show on my admin page.)

  1. Upload files - I downloaded the file as you said "google-checkout-zencart-v1.3RC2" And I did upload
  • tpl_login_default.php
  • tpl_shopping_cart_default.php

From
\includes\templates\YOUR_TEMPLATE\templates

To
/includes/templates/z/templates/

I really don't see the file "tpl_checkout_payment_default.php"
in any google's folder.

If your installation is correct...it is impossible for your customers to checkout with google checkout in step 2. Visit our site in my signature or other sites to see how things are suppose to work. The fact that you still have the radio button is an indication that your installation is messed up.

As Woody suggested, if you have tpl_checkout_payment_default.php in /includes/templates/z/templates delete it. If you do not have one there then make sure you copy the original tpl_checkout_payment_default.php and override the one in /includes/templates/template_default/templates (assuming you don't have a modification to this template already).

26 Apr 2007, 4:51 AM
#1305
zgraphic avatar

zgraphic

New Zenner

Join Date:
Apr 2007
Posts:
20
Plugin Contributions:
0

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

O! My god, your site is very nice! I didn't know zen-cart can modifiy like that. Are you a programmer? How do you modify it?

Any way, I dont have the file "tpl_checkout_payment_default.php" in /includes/templates/z/templates/
or in google's folder that I downloaded!

26 Apr 2007, 4:58 AM
#1306
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

zgraphic:

O! My god, your site is very nice! I didn't know zen-cart can modifiy like that. Are you a programmer? How do you modify it?

Any way, I dont have the file "tpl_checkout_payment_default.php" in /includes/templates/z/templates/
or in google's folder that I downloaded!

Did you override the copy of the tpl_checkout_payment_default.php in your /includeds/templates/templates_default/templates with the one that originally came with your Zen Cart download (NOT google checkout)? Thanks for the compliments on our site.

26 Apr 2007, 5:49 AM
#1307
zgraphic avatar

zgraphic

New Zenner

Join Date:
Apr 2007
Posts:
20
Plugin Contributions:
0

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

That's what I missed! I am a newbie. What do I need to modify on that file? :smartalec:

26 Apr 2007, 1:05 PM
#1308
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

zgraphic:

That's what I missed! I am a newbie. What do I need to modify on that file? :smartalec:

For Google Checkout, you do not need to modify anything. Assuming you have the original file in the default template folder, you customer will not be able to checkout for free on step 2. Basically, google checkout is available to your customer from the login page and shopping cart. In step 2 it will display a static google checkout text. If you do not want this text you will need to modify the tpl_checkout_payment_default.php to remove like. You will notice the static text is not on our step 2 page on our site.

26 Apr 2007, 2:08 PM
#1309
jnetmcp avatar

jnetmcp

New Zenner

Join Date:
Apr 2007
Posts:
23
Plugin Contributions:
0

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

I have installed the Google Checkout module. Everything works great when checking out if a customer chooses the Google Checkout button icon button, however, if they wait until given the option button for payment methods and choose Google Checkout, it doesn't work!

Anyone else had this problem and know a fix? I have already had to remove the PayPal module because it wouldn't return the ordering information via email to me, so I can't afford to lose Google Checkout too!:huh:

26 Apr 2007, 2:30 PM
#1310
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)

Woodymon:

ropu, et al-

The Zen Cart team just posted a fix for XSS vulnerabilities in Zen Cart 1.37. One of the files updated is /admin/orders.php. That file is distributed in the Google Checkout mod, so please remember to include the fix in the next mod release.

For info on the patch and some background:
http://www.zen-cart.com/forum/showthread.php?t=64115
Backgound: http://www.zen-cart.com/forum/showthread.php?t=63677

Woody
thx woody!

ill drop the fix!

thx again!

ropu

26 Apr 2007, 2:44 PM
#1311
jnetmcp avatar

jnetmcp

New Zenner

Join Date:
Apr 2007
Posts:
23
Plugin Contributions:
0

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

Ok. So I went back and read previous posts and figured out that Google Checkout was not suppose to be an option button. I have deleted my custom template tpl_checkout_payment_default.php file, but I still see the GoogleCheckout text on this page. I know I have to modify this file in order to remove this text, but could someone who has done this please post what the modification should be? This would be a blessing.

Thanks!

26 Apr 2007, 2:52 PM
#1312
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

jnetmcp:

I have installed the Google Checkout module. Everything works great when checking out if a customer chooses the Google Checkout button icon button, however, if they wait until given the option button for payment methods and choose Google Checkout, it doesn't work!

Anyone else had this problem and know a fix? I have already had to remove the PayPal module because it wouldn't return the ordering information via email to me, so I can't afford to lose Google Checkout too!:huh:

Assuming you're using the latest version of Google Checkout, you shouldn't have the problem you described. Please read what has been suggested to zgraphics. It appears you both have similar issues.

You shouldn't have to remove Paypal either. It appears that wasn't installed/configured correctly as well.

26 Apr 2007, 3:09 PM
#1313
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)

tj1:

Ropu, would like to try it, but there seems to be something wrong with the demo at this time, the GC button appears grayed out no matter what I add to the cart.

Have you installed USPS and checked if international calculated shipping works?
USPS is the international prefered shipping method by most, it is much more cost effective and with less hassles.

Tj, may be that some one missconfigured the Admin UI, try using the red Restore button in the Admin Area.

Also look that all shipping have the same tax configured.

ropu

26 Apr 2007, 3:35 PM
#1314
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

Does anyone know where to configure taxes for this mod? I have never been able to get tax to work.

We currently collect tax for two states. Taxes works just fine when using any other payment module BUT googlecheckout.

26 Apr 2007, 3:47 PM
#1315
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)

ropu:

thx woody!

ill drop the fix!

thx again!

ropu

Hi, to solve the XSS bug in zencart (http://www.zen-cart.com/forum/showthread.php?t=64115 )

replace in admin/orders.php (from the GC module package, not the original) line 476

  for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) {
       echo '<br /><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br($order->products[$i]['attributes'][$j]['value']);
       if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
       if ($order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') echo TEXT_INFO_ATTRIBUTE_FREE;
       echo '</i></small></nobr>';
     }

with

        for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) {
          echo '<br /><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
          if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
          if ($order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') echo TEXT_INFO_ATTRIBUTE_FREE;
          echo '</i></small></nobr>';
        }

ropu

26 Apr 2007, 3:53 PM
#1316
jnetmcp avatar

jnetmcp

New Zenner

Join Date:
Apr 2007
Posts:
23
Plugin Contributions:
0

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

Isaccola, you said "In step 2 it will display a static google checkout text. If you do not want this text you will need to modify the tpl_checkout_payment_default.php to remove like. You will notice the static text is not on our step 2 page on our site."

This is what I am trying to do. I want to remove the static text. Just wondering if you could post the changes you made to the tpl_checkout_payment_default.php file to make this not show.

Thanks.

26 Apr 2007, 4:51 PM
#1317
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)

ropu:

Tj, may be that some one missconfigured the Admin UI, try using the red Restore button in the Admin Area.

Also look that all shipping have the same tax configured.

ropu

Hi Ropu, you seem to have two zencart demos http://demo.globant.com/~brovagnati/zen_demo1 and http://demo.globant.com/~brovagnati/zen_demo2

Which is the one you'd like us to use or does it make any difference which one we test?

Also, please try to get the USPS international calculated rates working. Almost everyone prefers to use USPS internationally. Very few choose to use private couriers such as FedEx, UPS, DHL. USPS is the preferred one.

26 Apr 2007, 5:39 PM
#1318
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)

tj1:

Hi Ropu, you seem to have two zencart demos http://demo.globant.com/~brovagnati/zen_demo1 and http://demo.globant.com/~brovagnati/zen_demo2

Which is the one you'd like us to use or does it make any difference which one we test?

Also, please try to get the USPS international calculated rates working. Almost everyone prefers to use USPS internationally. Very few choose to use private couriers such as FedEx, UPS, DHL. USPS is the preferred one.

hi tj

zen_demo1 is the stable one, on zen_demo2 i use it for testing.

please refer zen_demo1

regarding USPS, i have no accounts for the service, i'll try to get one. and make it work

ropu

26 Apr 2007, 7:13 PM
#1319
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

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

jnetmcp:

Isaccola, you said "In step 2 it will display a static google checkout text. If you do not want this text you will need to modify the tpl_checkout_payment_default.php to remove like. You will notice the static text is not on our step 2 page on our site."

This is what I am trying to do. I want to remove the static text. Just wondering if you could post the changes you made to the tpl_checkout_payment_default.php file to make this not show.

Which version of Google Checkout did you last install? Version number please.

I posted to this thread recently several different methods to solve this simple predicament. Including the code to edit out, if you decide to go that extreme route. Please read the last week of this thread to become up-to-date.

If you are certain you have overwritten the checkout file in your custom templates directory with the same file provided in the latest Google Checkout 1.3RC2 package, but the Google checkout radio button is still showing up on Step 2 page of the checkout process (select payment method), then you MUST have previously (incorrectly) overwritten the same file in your templates_default directory.

So your should upload the stock/default Zen Cart 1.37 file of the same name to to your templates_default directory and everything should be hunky dory (assuming you have not edited that file for any other purpose except for the previous version of Google Checkout).

EVERYONE... If you are going to use/mange the Google Checkout mod, then you MUST first learn how template overrides work. There is just not getting around that simple basic requirement. So PLEASE go the the Zen Cart FAQ to learn that basics of template overrides. Then give Google Checkout a whirl.

If you decide template overrides is not your cup of tea then I recommend you hand off the privilege of configuring Google Checkout to someone that understands the basic overrides concept.

Thanks,
Woody

26 Apr 2007, 7:21 PM
#1320
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)

Hi Ropu, I have configured and tried both demos and this is what I get:

Screenshot zen_demo1:

Screenshot zen_demo2:

As you can see, only fixed rates work in zen_demo1.
In zen_demo2, it does display FedEx international, but not calculated as it has $0, which most likely means it's timing out or some other issue.

Could you double check this? Possible show a screenshot of this working?

Anyway, regarding international shipping, I really don't care much for FedEx or UPS, at the most only about 1% of the international customers request those services. The great majority of international customers want to use USPS. You should give more priority to getting USPS international calculated rates than the other private couriers.