This is a great post, helped me big time! I used this to create a module to add the terms and conditions in the registration page but the data is not being saved. Basically, I created a static block and called it directly from register.phtml.
What I've noticed, is if I edit the edit.phtml file and add:
htmlEscape($this->getCustomer()->getAgreement()) ?>" title="<?php echo $this->__('I AGREE') ?>" class="input-text required-entry" />
Open the account info page, type something in, save, and it will commit to the database.
But the following below will not commit to the database.
//Calling the static block so that it will display under New Registration
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('terms_and_agreements')->toHtml();?>
//Created the label and the input box * <?php echo $this->__('I AGREE') ?>
What is wrong with my input box, as the value the customer puts in, is not saving to the database.
Using CE 1.5.1 with fontis recaptcha module, and wireframe base default template.
The sql inserts has been added per Brian's additional info, and the rest is followed accordingly to the instructions.
This is a great post, helped me big time! I used this to create a module to add the terms and conditions in the registration page but the data is not being saved. Basically, I created a static block and called it directly from register.phtml.
What I've noticed, is if I edit the edit.phtml file and add:
htmlEscape($this->getCustomer()->getAgreement()) ?>" title="<?php echo $this->__('I AGREE') ?>" class="input-text required-entry" />
Open the account info page, type something in, save, and it will commit to the database.
But the following below will not commit to the database.
//Calling the static block so that it will display under New Registration
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('terms_and_agreements')->toHtml();?>
//Created the label and the input box
* <?php echo $this->__('I AGREE') ?>
//Create the input box
htmlEscape($this->getFormData()->getAgreement()) ?>" title="<?php echo $this->__('I AGREE') ?>" class="input-text required-entry" />
What is wrong with my input box, as the value the customer puts in, is not saving to the database.
Using CE 1.5.1 with fontis recaptcha module, and wireframe base default template.
The sql inserts has been added per Brian's additional info, and the rest is followed accordingly to the instructions.
Any help would be great.
Thanks.