
Originally Posted by
Woodymon
ropu-
For those upgrading from previous mod versions, for example from 1.3RC1 to 1.3RC2...
Can you confirm there is no longer any need for the following edit in
tpl_checkout_payment_default.php
PHP Code:
// ** Google Checkout **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** Google Checkout **
And thus those whom have previously edited tpl_checkout_payment_default.php can remove that specific edit?
Can you please confirm?
Thanks,
Woody
woody, thats confirmed
there is no need to update that template as docs say, because as from zencart v1.3.7 in that template u have one option to disable the radio button for a shipping module. Just need to add to the googlecheckout.php class
PHP Code:
function selection() {
return array('id' => $this->code,'module' => $this->title, 'noradio' => true);
}
have a look to the 'noradio' => true
this will hit in the template in line 136
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 } ?>
<?php
} else {
so the redio button wont be show!, just the name of the payment module.
ropu
Bookmarks