The newsletter checkbox does not appear on the registration page. How can I make it display when a new customer registers?

  • Update: I have tried editing all the regist‌​er.phtml files I could find an not one made any change on the frontend. I have deleted the cache every time before testing. – Dupdroid May 21 at 9:24
  • check my answer ... – Mohit Patel May 21 at 9:52

Go to this path and write some code


Find this line:

<?php if ($this->isNewsletterEnabled()): ?>

Right below it, add this:

$checked = true;
if($this->getFormData()->getEmail()) {
if(!$this->getFormData()->getIsSubscribed()) {
    $checked = true;

Then Find this div

<div class="input-box">

Replace the code in the div with this code:

<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed" checked="checked" class="checkbox" />

And you will get more information see this link


Hope this help you

Thanks ...

| improve this answer | |

Add the below code in your regist‌​er.phtml file in your theme.


template file

<?php if ($this->isNewsletterEnabled()): ?>

    <input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed"<?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" />
    <label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>

    <?php echo $this->getChildHtml('customer.form.register.newsletter')?>

<?php endif ?>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.