Reputation: 1073
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
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
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
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
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