Reply to comment

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.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <apache>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <perl>, <php>, <python>, <ruby>, <xml>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.