Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Confirm the Privacy & Cookie Policy


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">
	      <label>
            <?php
            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'));?>
          </label>
        </div>
     </div>
   </div>
  </div>
<!-- Confirm Privacy & Cookie Policy EOF -->

and

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.

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...