Authentication methods

Anonymous

The store is configured for anonymous purchasing by default, or go into the checkout module settings:

  • Allow anonymous purchasing: Yes
  • Hide login page: Yes

Anonymous buyers will have their address saved to a cookie and will find the addess collector pre-populated next time they place an order - so long as they haven't cleared their cookies in the meantime.


Registered

To require registration for purchasing, go into the checkout module settings:

  • Allow anonymous purchasing: No
  • Hide login page: No

This displays a page with links to login or create an account. In both cases, the buyer will be returned to the checkout and the address fields will be populated with whatever they were required to provide during registration.

This special page is in the logintext.text template. There are variations in the template for different DNN versions and for when popups are enabled in DNN6. Uncomment the section you want to use.


Anonymous and registered

To allow anonymous purchasing and provide optional registration, go into the checkout module settings:

  • Allow anonymous purchasing: yes
  • Hide login page: yes
  • Smooth login: yes
  • Smooth login tab: create a new page and point this setting to that page

On the new page, add a text module and put this into the HTML:

Use this version for DNN6-7 without modal popups

<ul>
    <li><a href="/login.aspx?ReturnUrl=%2ftabid%2fxxx%2fstg%2f2%2fdefault.aspx">Login</a></li>
    <li><a href="/register.aspx?ReturnUrl=%2ftabid%2fxxx%2fstg%2f2%2fdefault.aspx">Create an account</a></li>
    <li><a href="/tabid/xxx/stg/2/Default.aspx">Purchase without creating an account </a></li>
</ul>


Use this version for DNN6-7 modal popups

<ul>
    <li><a onclick="return dnnModal.show('/login.aspx?ReturnUrl=%2ftabid%2fxxx%2fstg%2f2%2fdefault.aspx&popUp=true',/*showReturn*/true,300,650,true,'')" href="/login.aspx?ReturnUrl=%2ftabid%2fxxx%2fstg%2f2%2fdefault.aspx">Login</a></li>
    <li><a onclick="return dnnModal.show('/register.aspx?ReturnUrl=%2ftabid%2fxxx%2fstg%2f2%2fdefault.aspx&popUp=true',/*showReturn*/true,600,950,true,'')" href="/register.aspx?ReturnUrl=%2ftabid%2fxxx%2fstg%2f2%2fdefault.aspx">Create account</a></li>
    <li><a href="/tabid/xxx/stg/2/Default.aspx">Purchase without creating an account </a></li>
</ul>


Use this version for DNN5

<ul>
    <li><a href="/login.aspx?ReturnUrl=/tabid/xxx/stg/2/default.aspx">Login</a></li>
    <li><a href="/register.aspx?ReturnUrl=/tabid/xxx/stg/2/default.aspx">Create an account</a></li>
    <li><a href="/tabid/xxx/stg/2/Default.aspx">Purchase without creating an account </a></li>
</ul>

These three code blocks have not specifically been tested - Let us know in the discussions tab if they work for you.

You will need to change "xxx" in the code to suit your own checkout page and tabid. You can of course also change the wording and layout as you see fit.

This displays a page with links to login, create an account, and to continue without creating an account. In the first two cases, the buyer will be returned to the checkout and the address fields will be populated with whatever they were required to provide during registration. If they choose to purchase anonymously, then they will go straight to the address collector.

 

Last edited Oct 31, 2013 at 10:03 AM by robax, version 5

Comments

No comments yet.