Quote Originally Posted by geoman64 View Post
It took me forever to get this script set up exactly the way I wanted it - but, I finally did it.

If you have a Zen Cart store, and you want to accept only Google Checkout, (like me), all you have to do is this very simple "cheat":

In your shopping_cart.php file, modify the dimensions for the script's "built-in" checkout button (your_template/buttons/english/button_checkout.gif) to: 1px x 1px. I'm sure that it's also possible to simply make the dimensions 0px x 0px, I just haven't done it yet.
I was very happy to find these instructions, but it seems the code has changed in the new version (v1.3.8). I did some digging and found a solution. Figured I'd share it here. This is what I had to do:

To remove the default "checkout" button:
- edit file includes/templates/{your_template}/templates/tpl_shopping_cart_default.php

- comment out the following code:

<!--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>


to comment just move characters "-->" from the end of the first line of the code, to the very end. or just delete this code all together if you dont think you'll ever need this feature in the future.


To remove the "- Or Use -" text:

- edit file: includes/languages/english/modules/payment/googlecheckout.php

- change the line:

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

to:

define('MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION', ''); // '- Or use -');


or just delete the "- Or Use -" (leave the quotes).


enjoy simple checkout :)