Alex
Alex

Reputation: 1073

Add terms and condition to the new account registration

How can i add the checkbox and Content of the terms and condition when a user create new account.

The file we are talking about is register.phtml

Upvotes: 0

Views: 9130

Answers (4)

Vinsin
Vinsin

Reputation: 61

<li class="control">
         <div class="input-box">
           <input type="checkbox" id="privacy_policy" name="privacy_policy" value="1" title="<?php echo $this->__('Accept the privacy policy') ?>" class="checkbox required-entry">
         </div>
        <label for="is_subscribed"><?php echo $this->__('Accept the privacy policy') ?> (<a href="<?php echo Mage::helper('cms/page')->getPageUrl( 6 ) ?>"><?php echo $this->__('privacy policy'); ?></a>)</label>
    </li>

This works great, thanks!

Upvotes: 5

jruzafa
jruzafa

Reputation: 4266

My solution for register page:

   <li class="control">
         <div class="input-box">
           <input type="checkbox" id="privacy_policy" name="privacy_policy" value="1" title="<?php echo $this->__('Accept the privacy policy') ?>" class="checkbox required-entry">
         </div>
        <label for="is_subscribed"><?php echo $this->__('Accept the privacy policy') ?> (<a href="<?php echo Mage::helper('cms/page')->getPageUrl( 6 ) ?>"><?php echo $this->__('privacy policy'); ?></a>)</label>
    </li>

Upvotes: 3

Alex
Alex

Reputation: 1073

I add this into the register.phtml and works ok.

<input type="checkbox" id="something" name="something" value="1" title="something" class="checkbox required-entry">

Upvotes: 1

Supriti Panda
Supriti Panda

Reputation: 1301

Create a CMS page for Terms and conditions and then include this in register.phtml.

echo $this->getLayout()->createBlock('cms/block')->setBlockId('my-new-block')->toHtml();

Upvotes: 0

Related Questions