Forums / Addon Payment Modules / Removing Checkout button for Google Checkout

Removing Checkout button for Google Checkout

Results 1 to 13 of 13
15 Apr 2008, 20:18
#1
ricky_101 avatar

ricky_101

New Zenner

Join Date:
Apr 2008
Posts:
3
Plugin Contributions:
0

Removing Checkout button for Google Checkout

Ive searched this site and found that you have to "comment out" certain lines of code from the "tpl_shopping_cart_default.php" file, but still the checkout button shows up.. Under admin i only selected google check out as my only payment module.. so i dont know what to do, please help.. and if possible, once the checkout button is able to be removed, can i move the google checkout buttom to the same spot the original checkout button was??

Thanks
Ricky
12 May 2008, 18:51
#2
handkem avatar

handkem

Zen Follower

Join Date:
Oct 2006
Posts:
152
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

I am having the same problem.

How can we get rid of the Checkout Button located on the shopping cart page. I have already disabled the credit card checkout process. If you do hit the Go To Checkout button, then you get the below message and if you try to go to Step 3, you get a warning box saying:

"Errors have occurred during the processing of your form
Please make the following corrections:
*Please select a payment method for your order.."

How can I get rid of this option/button completely? If you have any questions, you can go to www.desertskyink.net. Please help!!! Thx much.

Sorry, we are not accepting payments from your region at this time.
Please contact us for alternate arrangements.

I am trying to only enable Google checkout as the only payment option.

Plz Help!!!


<A href="http://desertskyink.net/index.php?main_page=checkout_shipping" target=_blank rel=nofollow>http://desertskyink.net/includes/tem...n_checkout.gif
26 Jun 2008, 13:41
#3
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Posts:
286
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

If you are wanting to totally remove the 'Go to Checkout' button in your shopping cart and just leave the Google Checkout button, you need to do this:

Open this file: /public_html/includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

Find:
<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
<?php
// show update cart button
  if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div>
<?php
  } else { // don't show update button below cart
?>
<?php
  } // show update button
?>
<!--eof shopping cart buttons-->


Replace it with:
<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
<?php
// show update cart button
  if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div>
<?php
  } else { // don't show update button below cart
?>
<?php
  } // show update button
?>
<!--eof shopping cart buttons-->


Next part is optional depending on whether or not you want to remove the -Or Use- text above the Google Checkout button.

Go to this file: /public_html/includes/languages/english/modules/payment/googlecheckout.php

Find:
define('MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION', '- Or use -'); 


Replace it with:
define('MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION', ''); 


Then remove the 'Checkout' link from your navigation menu.
Go to this file: /public_html/includes/languages/english/YOUR_TEMPLATE/header.php

Find:
define('HEADER_TITLE_CHECKOUT', 'Checkout');


Replace it with:
define('HEADER_TITLE_CHECKOUT', '');


That worked for me. Hope it helps you. :smile:
27 Aug 2008, 20:42
#4
watzursn avatar

watzursn

New Zenner

Join Date:
Jul 2008
Posts:
58
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

this worked great for me ! Thanks!
27 Oct 2008, 18:24
#5
handkem avatar

handkem

Zen Follower

Join Date:
Oct 2006
Posts:
152
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

I did remove the Checkout option in the Navigation bar, but cannot remember what file edited to accomplish this. I also need to remove the Log In option since I am using Google Checkout. Can anyone tell me what file I need to edit? I don't see anything in /includes/languages/english/modules/MY_TEMPLATE/header.php

Any help is much appreciated. Thx.
27 Oct 2008, 21:42
#6
handkem avatar

handkem

Zen Follower

Join Date:
Oct 2006
Posts:
152
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

Also, I just want to remove the text, not the entire Navigation/Header bar.
12 Jul 2009, 23:17
#7
spdster avatar

spdster

New Zenner

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

Re: Removing Checkout button for Google Checkout

Hey guys, i following these instructions and now when you press the google checkout button, it will just refresh the page and wont go to googles checkout page. When i first installed it, it would forward to checkout. Please help me.
13 Jul 2009, 19:28
#8
spdster avatar

spdster

New Zenner

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

Re: Removing Checkout button for Google Checkout

any help?
20 Aug 2009, 19:33
#9
rossaf avatar

rossaf

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

Spdster: Just came across your post from a month ago. I had the same problem and found that it was from putting the Google code within Zen Cart's existing form area for its own cart buttons. You have to make sure that "<!-- * BEGIN GOOGLE CHECKOUT * -->" is AFTER "</form>" at around line 134. Hops this helps!
26 Aug 2009, 19:21
#10
spdster avatar

spdster

New Zenner

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

Re: Removing Checkout button for Google Checkout

thank u bro! problem solved :)
27 Aug 2009, 18:04
#11
alisammeredith avatar

alisammeredith

New Zenner

Join Date:
Apr 2008
Posts:
37
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

Rossaf:

Spdster: Just came across your post from a month ago. I had the same problem and found that it was from putting the Google code within Zen Cart's existing form area for its own cart buttons. You have to make sure that "<!-- * BEGIN GOOGLE CHECKOUT * -->" is AFTER "</form>" at around line 134. Hops this helps!


Thank you, that helped a lot!
01 Oct 2009, 03:33
#12
brucecode avatar

brucecode

New Zenner

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

Re: Removing Checkout button for Google Checkout

Boggled:

If you are wanting to totally remove the 'Go to Checkout' button in your shopping cart and just leave the Google Checkout button, you need to do this:

Open this file: /public_html/includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

Find:
<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
<?php
// show update cart button
  if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div>
<?php
  } else { // don't show update button below cart
?>
<?php
  } // show update button
?>
<!--eof shopping cart buttons-->
Replace it with:
<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
<?php
// show update cart button
  if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div>
<?php
  } else { // don't show update button below cart
?>
<?php
  } // show update button
?>
<!--eof shopping cart buttons-->


For those who may be having troubles with PayPal Express checkout too, this helps but you DON'T need to edit the second file.

NB: You may also find (like I did) that the tpl_shopping_cart_default.php is NOT in the /includes/templates/YOUR_TEMPLATE/templates/ in which case you can copy it there from /includes/templates/template_default/templates/ and then edit it as mentioned.

Regards,

Bruce
05 Mar 2011, 23:32
#13
americanoutdoors avatar

americanoutdoors

New Zenner

Join Date:
Dec 2010
Posts:
5
Plugin Contributions:
0

Re: Removing Checkout button for Google Checkout

Help! I am using a templatemonster template and my code looks nothing like the code mentioned above.

My tpl_shopping_cart_default.php file reads:

[PHP]
get_template_dir(ICON_IMAGE_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_TRASH_ALT); ?>
$value) { ?>

' . zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . ''; ?>
0 and value >0 if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True') { include(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); } ?>

Execute(SQL_SHOW_SHOPPING_CART_EMPTY); while (!$show_display_shopping_cart_empty->EOF) { ?> fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?> get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?> get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?> get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') { include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); } ?> MoveNext(); } // !EOF ?>
[/PHP]