Jump to content

Recommended Posts

Hi Guys


I wrote a small extension for the create_account.php. The new user must accept the Policy in create_account.php.


In create_account.php befor buttonSet

<!-- Confirm Privacy & Cookie Policy BOF -->
  <h2><?php echo CATEGORY_PRIVACY; ?></h2>

  <div class="contentText">
    <div class="form-group has-feedback">
      <label for="inputPrivacy" class="control-label col-sm-3"><?php echo ENTRY_CONFIRM; ?></label>
      <div class="col-sm-9">
		<div class="checkbox">
            echo tep_draw_checkbox_field('privacy', '1', NULL, 'required aria-required="true" id="inputPrivacy"');
            echo FORM_REQUIRED_INPUT;
            <?php echo sprintf(ENTRY_PRIVACY_CONFIRMATION_TEXT, tep_href_link('privacy.php'));?>
<!-- Confirm Privacy & Cookie Policy EOF -->


in english.php

// Confirm Privacy & Cookie Policy
define('ENTRY_CONFIRM', 'Please confirm');
define('CATEGORY_PRIVACY', 'Privacy & Cookie Policy');
define('ENTRY_PRIVACY_CONFIRMATION_TEXT', '<strong>I have read and agree to the <a href="%s"><u>Privacy & Cookie Policy</u></a></strong>.');

I think this the easiest way.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now