I need a bit of help with the User module from Solspace - I want new registrations to be auto logged in once they register. That seems doable based on my reading - but my code isn’t working…
What else do I need to do here?
Here’s my code for my setup.. Template 1 is where the user registers and is then redirected to Template 2 where they need to click to pay for their subscription. I went them to be auto-logged when they hit Template 2.
TEMPLATE 1 /user/register/
{exp:user:register return="/user/subscription/" admin_register="yes" allowed_groups="5"}
<h3>Step 1 of 2: Create a User Account</h3>
Once you create a user account, you will be redirected to the payment page.
<h4>Enter Your Email Address:</h4>
<input class="request-form-field" type="text" name="username" size="40" />
<h4>Your Full Name: </h4>
<input class="request-form-field" type="text" name="screen_name" size="40" /></p>
<h4>Choose a Password:</h4>
<input class="request-form-field" type="password" name="password" size="40" /></p>
<input class="request-form-field" type="password" name="password_confirm" size="40"/>
<input class="submit" type="submit" value="Go to Step 2 »" /></p>
{/exp:user:register}TEMPLATE 2: /user/subscription/
{if logged_in}
<h2>Hi {screen_name}</h2>
<h3>Step 2: Pay for your subscription</h3>
{exp:weblog:entries weblog="pages" entry_id="156" limit="1"}
{exp:simple_commerce:purchase entry_id="156" success="/clients/new-subscriber/"}
<h3><a >Click Here to Pay - {item_sale_price} for One Year</h3>
{/exp:simple_commerce:purchase}
{/exp:weblog:entries}
{/if}Mod Edit: Moved to the Modules: Discussion and Questions forum.
FYI - Solspace showed me how to accomplish the same goal withOUT the extension mentioned before… http://www.solspace.com/forums/viewthread/1971/
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.