Hi I'm trying to set up a new regulation in 'Configuration, Regulations'
So far I've managed to set this up in the database by adding a new row. The row is called DISPLAY_DELIVERY_ON_CHECKOUT.
This will then force the customer to tick a box once they've entered delivery instructions.
I've edited tpl_checkout_payment_default so it displays an extra checkbox on the website to do this and the new regulation shows up in the admin however when you go through the payment process step 2 just shows up a blank page.
This is what I've done with the code in tpl_checkout_payment_default
<?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>
However if I take out this line
<?php
if (DISPLAY_DELIVERY_ON_CHECKOUT == 'true') {
?>
The check box displays, although doesn't force the customer to tick it.
So any ideas on how I might get this to function correctly?
Please see the graphic attached for how step 2 of the payment process should display.
Thanks
Nick



