title: Adding newsletter checkbox to Magento (1.4.1.1) one page checkout
body: <p>I've taken over an old project from a developer that just left and I could use some help just getting this done.</p>
  
  <p><strong>What I'm trying to do:</strong></p>
  
  <p>Magento (1.4.1.1) with one page checkout, I need to add a newsletter subscribe checkbox that if it is checked will subscribe the customer guest, registered or otherwise to the newsletter.</p>
  
  <p><strong>What I've done:</strong></p>
  
  <p>I've got a checkbox in the billing stage and I have got got a module that works by observing the event <code>checkout_type_onepage_save_order</code> and from that I subscribe the customer like so:</p>
  
  <pre><code>public function list_subscribe(Varien_Event_Observer $observer) 
  {
      $quote = $observer-&gt;getEvent()-&gt;getQuote();
      $customer = $quote-&gt;getCustomer();
  
      if (($customer instanceof Mage_Customer_Model_Customer))
      {
          Mage::getModel('newsletter/subscriber')-&gt;subscribeCustomer($customer);
      }
      else
      {
          Mage::getModel('newsletter/subscriber')-&gt;subscribe($email);
      }
  }
  </code></pre>
  
  <p>That works fine but it subscribes everybody that visits the checkout and I need to somehow check that the checkbox is ticked in the checkout process. This is the part that has got me confused. I'm very new to Magento and just need to get this done so hoping a nice person out there can help me lean how would I go about doing this apparently simple check for a ticked checkbox?</p>
  
  <p>Many thanks in advance for any contributions.</p>