title: Redirecting to checkout after account is created and products are in cart
body: <p>I have a special case where users have to sign up for an account via the account sign up page (e.g. /customer/account/create/). Upon completion, and in the event that they have a product in the cart, I need to redirect them back to the checkout screen.</p>
  
  <p>I currently have an observer in place that listens to the <code>customer_register_success</code> event. The observer upgrades the users account to a membership group via this code:</p>
  
  <pre><code>class Hatclub_MembershipHandler_Model_Observer {
  
      // members group id
      const GROUP_ID = 4;
  
      // called when a customer registers for the site
      public function registrationSuccess(Varien_Event_Observer $observer) {
  
          // extract customer data from event
          $customer = $observer-&gt;getCustomer();
  
          // a cookie should have been set with the membership id
          if (isset($_COOKIE['membership_account_id'])) {
  
              $customer
                  -&gt;setGroupId(self::GROUP_ID)
                  -&gt;setRmsId($_COOKIE['membership_account_id']);
  
          }
  
          return $this;
  
      }
  
  }
  </code></pre>
  
  <p>Is there another event that I can listen to that is better suited for what I want to do? I have a redirect_to cookie that is available as well if that helps.</p>