ZC v1.5.8a
OPC v2.4.6
On my create account (registered) page I have the compulsory privacy checkbox enabled and, unlike the newsletter checkbox, it does not remain checked upon page reload.
This would normally not be an issue except that I am now adding a reCaptcha to this page and if it is missed by the customer - it will cause a reload and clearing of the privacy checkbox, which may then be subsequently missed potentially causing yet another refresh and customer frustration.
I would like the privacy checkbox to remain checked on page reload. For a registered account the code is
\includes\templates\MY_TEMPLATE\templates\tpl_create_account_register.php
PHP Code:
<?php
echo zen_draw_checkbox_field('privacy_conditions', '1', false, 'id="privacy"');
?>
<label class="checkboxLabel" for="privacy"><?php echo TEXT_PRIVACY_CONDITIONS_CONFIRM;?></label>
\includes\modules\pages\create_account\header_php_create_account_register.php
PHP Code:
if (DISPLAY_PRIVACY_CONDITIONS === 'true') {
if (!(isset($_POST['privacy_conditions']) && $_POST['privacy_conditions'] === '1')) {
$error = true;
$messageStack->add('create_account', ERROR_PRIVACY_STATEMENT_NOT_ACCEPTED, 'error');
}
}
This obviously also occurs if it is a create account (full) page.
Bookmarks