Hi, I need to add a checkbox to the registration form, so the customer can confirm whether they are VAT exempt or not. This is for a disability website and products are VAT exempt only if they are disabled. I have added text boxes with no problems. And yes all these fields have been added to the mysql table.
I edited customers.php tpl_modules_create_account.php and create_account.php
All the fields display correctly apart from the last checkbox which is what I added.
It appears as the checkbox then ENTRY_VATEXEMPTCONFIRMENTRY_VATEXEMPTCONFIRM_TEXT
So it does not name the field properly, it also does not update the sql db table to say whether the box was checked or not.
I think the error is here
on the tpl_modules_create_account.php pageCode:<fieldset> <?php echo zen_draw_checkbox_field('vatexemptconfirm', '1', $vatexemptconfirm, 'id="vat-checkbox"') . '<label class="checkboxLabel" for="vat-checkbox">' . ENTRY_VATEXEMPTCONFIRM . '</label>' . (zen_not_null(ENTRY_VATEXEMPTCONFIRM_TEXT) ? '<span class="alert">' . ENTRY_VATEXEMPTCONFIRM_TEXT . '</span>': ''); ?> <br class="clearBoth" /> </fieldset>
Please help.



Reply With Quote


Bookmarks