jcadima
3/18/2015 - 12:59 AM

Newsletter Signup on CMS page in Magento

Newsletter Signup on CMS page in Magento

<?php
// this is what is being referenced when calling:
// {{block type="core/template" template="newsletter/subscribe.phtml"}}
<div class="block block-subscribe">
  <form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="newsletter-validate-detail">
    <div class="input-group"> <span class="input-group-addon"><?php echo $this->__('Newsletter') ?></span>
      <input type="text" class="form-control input-sm required-entry validate-email" title="<?php echo $this->__('Sign up for our newsletter') ?>" id="newsletter" name="email">
      <span class="input-group-btn">
      <button class="btn btn-default btn-sm" title="<?php echo $this->__('Subscribe') ?>" type="submit"><?php echo $this->__('Subscribe') ?></button>
      </span></div>
  </form>
  <script type="text/javascript">
//<![CDATA[
var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
//]]>
</script> 
</div>



?>