Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
newsletter box checked on registration
 
Pixxa
Sr. Member
 
Total Posts:  275
Joined:  2008-10-23
 

Hi Fontis,

Thx for this great extension. Ive tried to edit the registration.phtml template to make the newsletter box checked on registration:

<?php if ($this->isNewsletterEnabled()): ?>
            
<li>
                <
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 ?> checked/>
                <
label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter'?></label>
            </
li>
            
<?php endif ?>

But the code “checked />” breaks my registration and gives me the error ‘Cant save customer”
I know this isnt something recaptcha is involed but do you know any solution or could you implement it as an option?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Chris Norton
Member
 
Avatar
Total Posts:  52
Joined:  2009-06-15
 
Pixxa - 17 June 2009 12:01 AM

I know this isnt something recaptcha is involed but do you know any solution or could you implement it as an option?

Questions not directly related to this extension should be posted in the general forums. This will give other forum members a chance to help you as well.

Try out the change to the code below:

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

This should have the checkbox ticket by default.

 Signature 

Fontis - the Australian Magento Experts

Our Extensions

M2M Magento MYOB Sync (AU/NZ MYOB editions)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
819302 users|748 users currently online|519714 forum posts