Ropu & Everyone-
I installed 1.3RC2 GC mod on another shop. And then I observed what some have been reporting in this thread, that is the LABEL "Google Checkout" is still appearing on the checkout payment page WITHOUT the radio button.
So ropu, your adjustment in 1.3RC2 removed the radio button but did not prevent the display of the shipping method label.
Below is what you will observe in the HTML source:
Code:
<label for="pmt-googlecheckout" class="radioButtonLabel">GoogleCheckout</label>
So I copied a few lines of relevant Google Checkout code from the 1.3RC1 version of
tpl_checkout_payment_default.php and integrated it into the latest Zen Cart 1.37 version of the same file.
(thus I added two new lines of code and commented out two other lines).
For those who want to edit themselves.
/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php
At appx line 136
CHANGE THIS:
PHP Code:
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
TO THIS:
PHP Code:
<?php
if (sizeof($selection) > 1) {
// if (empty($selection[$i]['noradio'])) {
if($selection[$i]['id'] == "googlecheckout")
continue;
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php // } ?>
(note the last right brace commented out)
Hope this helps.
Woody
Bookmarks