If you have split-login enabled in Zen Cart 1.37 and wish to add a Google Checkout "panel" to the login page, then follows is a simple code snippet you can insert into tpl_login_default.php which comes with v.1.3RC2 mod.
Appx Line 57 in tpl_login_default.php
AFTER:
Code:
</form>
</fieldset>
<br class="clearBoth" />
BUT BEFORE:
Code:
<!--EOF PPEC split login- DO NOT REMOVE-->
<?php } else { ?>
<!--BOF normal login-->
INSERT:
Code:
<br />
<?php // ** BOF GOOGLE CHECKOUT ** ?>
<br />
<fieldset>
<legend><?php echo 'OR USE GOOGLE CHECKOUT'; ?></legend>
<table><tr><td>
<div class="information">Or if you prefer you can checkout with <b>Google Checkout</b>. If you have an item in your shopping cart (not a download product) the Google Checkout button displays in full color indicating Google Checkout is available for your order. If it appears gray then Google Checkout is not available (either you have a download product in your shopping cart or you have yet to add any items to your shopping cart).</div>
</td>
<td>
<?php
// ** GOOGLE CHECKOUT **
include(DIR_WS_MODULES . 'show_google_components.php');
// ** END GOOGLE CHECKOUT **
?>
</td></tr></table>
</fieldset>
<br class="clearBoth" />
<?php // ** EOF GOOGLE CHECKOUT ** ?>
Note this is a quick and dirty (not elegant) solution...
(1) Includes some (wordy) text for those whom want to provide instructions regarding the unavailability of Google Checkout for download items. Edit as you desire.
(2) It has NOT been tested with PayPal EXPRESS enabled. If you use PayPal EXPRESS do not use. Later when I get around to testing PayPal Express I will update and post fresh code.
(3) A heading is hard coded in. Later I will make a languages define.
(4) For purists please note the code uses a table. Later I will properly apply CSS.
(5) The code is not yet smart enough to know if you have the Google Checkout payment module disabled or uninstalled. So if you disable or uninstall the mod then you will want to remove the code from the template. Later I will add some simple testing to check if the mod is disabled or installed.
If anyone beats me to it please do post improvements ;-)
-Woody
Bookmarks