Okay, so now I've got it working but to get it to work I've had to delete some of the code. Here's what I did. The install said:
Code:
/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php
====================================================================
FIND:
-
<?php
}
for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
<fieldset>
<legend><?php echo $selection[$i]['module']; ?></legend>
<?php echo $selection[$i]['redeem_instructions']; ?>
<div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? '
for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo
$selection[$i]['fields'][$j]['title']; ?></label>
<?php echo $selection[$i]['fields'][$j]['field']; ?>
</fieldset>
<?php
}
}
?>
-
REPLACE WITH:
-
<?php
}
for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
<?php if(!($COWOA && $selection[$i]['module']==MODULE_ORDER_TOTAL_GV_TITLE)) {?>
<fieldset>
<legend><?php echo $selection[$i]['module']; ?></legend>
<?php echo $selection[$i]['redeem_instructions']; ?>
<div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? '
for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo
$selection[$i]['fields'][$j]['title']; ?></label>
<?php echo $selection[$i]['fields'][$j]['field']; ?>
</fieldset>
<?php } ?>
<?php
}
}
?>
-
I did not update the original code with the COWOA code. Each time I upload tpl_checkout_payment_default.php with the updated code, then attempt to purchase on the site, my purchase process stalls on the "...page=checkout_payment" page. The header displays normally, but the body of the page is blank. I suspect this is an error in the php, but I don't know where to go to fix it. My two questions are these:
1. What is the error in the php that causes the stop?, and
2. What am I losing by not having that bit of code in there.
Thanks in advance!
Brian
Bookmarks