title: Redirect to registration and not login page during UberCart checkout in Drupal?
body: <p>Currently if a user is not logged in, they are redirected to the "login page" when checking out in UberCart. I need them to rather be redirected to the "registration" page.</p>
  
  <p>In other words:</p>
  
  <pre><code>Go here: user/register
  NOT here: user
  </code></pre>
  
  <p>The key here is to get it to work with UberCart. I know you can use login toboggan and other tricks to do it normally, but I can't get it to work with UberCart?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I still don't have a decent solution so I added bounty for this. Currently, if you have "anonymous checkout" disabled, ubertcart automatically add these messages:</p>
  
  <ol>
  <li>You must login before you can proceed to checkout.</li>
  <li>If you do not have an account yet, you should register now.</li>
  </ol>
  
  <p>This is also a problem in that it doesn't make sense showing them if you go to the user page. So even my hard hack of forwarding the user to /user/register whenever it encounters "user?destination=cart/checkout" and the user is not logged, to forward them to "user/register?destination=cart/checkout" does not work that well.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>This is where the magic happens: line 94, uc_cart.pages.inc</p>
  
  <pre><code>// Send anonymous users to login page when anonymous checkout is disabled.
  if (!$user-&gt;uid &amp;&amp; !variable_get('uc_checkout_anonymous', TRUE)) {
      drupal_set_message(t('You must login before you can proceed to checkout.'));
      if (variable_get('user_register', 1) != 0) {
      drupal_set_message(t('If you do not have an account yet, you should &lt;a href="!url"&gt;register now&lt;/a&gt;.', array('!url' =&gt; url('user/register', array('query' =&gt; drupal_get_destination())))));
    }
    drupal_goto('user', array('query' =&gt; drupal_get_destination()));
  }
  </code></pre>
  
  <p>So, basically I need a way to override that behaviour? (i.e. without hacking core?)</p>