Ik heb zojuist de couponcode in mijn step_2.tpl geplaatst en hij geeft hem goed weer, maar wanneer ik op "Toepassen" klik, dan controleer hij de couponcode niet. Zowel niet wanneer deze goed is, of fout.
Hieronder mijn stukje code in guest_step_2.tpl
Dit is het stukje van de coupon code (uit de default template gekopieerd)
Code: Select all
<?php if ($coupon_status) { ?>
<div class="content" style="background: #EEEEEE; border: 1px solid #CCCCCC;">
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="coupon">
<p><?php echo $text_coupon; ?></p>
<div style="text-align: right;"><?php echo $entry_coupon; ?>
<input type="text" name="coupon" value="<?php echo $coupon; ?>" />
<a onclick="$('#coupon').submit();" class="button"><span><?php echo $button_coupon; ?></span></a></div>
</form>
</div>
<?php } ?>
Code: Select all
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?></div>
<?php } ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
Hoe moet ik dit oplossen?