You are missing a } in your code.
Try the code below:
PHP Code:
<?php
if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_CONDITIONS; ?></legend>
<div><?php echo TEXT_CONDITIONS_DESCRIPTION;?></div>
<?php echo zen_draw_checkbox_field('conditions', '1', false, 'id="conditions"');?>
<label class="checkboxLabel" for="conditions"><?php echo TEXT_CONDITIONS_CONFIRM; ?></label>
</fieldset>
<?php
}
if (DISPLAY_DELIVERY_ON_CHECKOUT == 'true') {
?>
<fieldset>
<?php echo zen_draw_checkbox_field('delivery', '1', false, 'id="delivery"');?>
<label class="checkboxLabel" for="delivery"><?php echo TEXT_DELIVERY_INSTRUCTIONS; ?></label>
</fieldset>
<?php
}
?></fieldset>
To force the user to check the box, you can maybe add a quick javascript function to show an alert with an error message if the box is not checked.
it would be something like:
Code:
<script type="text/javascript">
function validate()
{
if(document.forms[0].conditions.checked == false)
{
alert('Please accept the conditions!');
return false;
} else {
return true;
}
}
</script>
and add the following to your form tag:
Code:
onSubmit="return validate();"