I discovered that on my ZC 1.3.8a site, Google Checkout (googlecheckout 1.4.7 mod) was showing up as a radio button on the checkout_payment page, which it should not do. When it was selected, the checkout would proceed to confirmation, but when the submit button was pressed, the customer would be taken back to the shopping cart with no action taken. No order would be created, but the customer might assume that the order was complete, and abandon it.
I don't know if this was the best solution, but I decided to hack into the template file for the checkout_payment page (.../templates/tpl_checkout_payment_default.php) and skip the iteration of the "for" loop building the display of radio buttons, if the id of the module for that iteration is "googlecheckout."
Specifically, where the original version of tpl_checkout_payment_default.php (around lines 136-139) has this:
PHP Code:
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
?>
I inserted a one-line if statement like this:
PHP Code:
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
// AJ 03/12/2009 - Skip Google Checkout
// which should not appear on the checkout_payment page
if ($selection[$i]['id']=="googlecheckout") { continue; }
?>
Admittedly this is a rather ugly workaround, but it seems to work. Does anyone have a better solution?
Bookmarks