Hi. I'm trying to install the most up-to-date version of discount codes but I have a problem with 1 of the php files. When I went to install the code (I have quite a few contributions installed so updating manually) in catalog/checkout_payment.php the lines don't quite match and their seems to be <?php missing. I have tried installing the module with or without the <?php but when going to checkout I get a server error on the catalog/checkout_payment page.
The code (according to the install instructions) I need to add on this page is supposed to be after:
<h2><?php echo TABLE_HEADING_COMMENTS; ?></h2>
<div class="contentText">
<?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?>
</div>
<?php
but in my php file I only have
<h2><?php echo TABLE_HEADING_COMMENTS; ?></h2>
<div class="contentText">
<?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?>
</div>
/* kgt - discount coupons */
if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) {
?>
<h2><?php echo TABLE_HEADING_COUPON; ?></h2>
<div class="contentText">
</div>
<div class="contentText">
<?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"', $coupon); ?>
</div>
<?php
}
/* end kgt - discount coupons */
I hope someone can help as I'm so close to my shop going live. Also I have to say I'm a total noob at php so I'm flying in the dark here.
Thanks in advance.