Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rich hamilton 117 posts 136 karma points
    Apr 13, 2012 @ 11:43
    rich hamilton
    0

    Customer Login

    Can someone send me a link to an overview of how to set up customer login.

    To fill customers details onto the Cart Step.

    Also I have this error:

    'LoginStatus' must be placed inside a form tag with runat=server.

    so how do I sho show customer login details without a form runat=server round the entire page? I re4moved this because TeaCommerce conflicted with the main form.

  • Anders Burla 2560 posts 8256 karma points
    Apr 13, 2012 @ 14:53
    Anders Burla
    0

    Hi Rich

    The Tea Commerce starter kit uses the normal html forms way of doing things and not the .NET forms way. This is to make it possible to have no-javascript fallback. So that is why you cant use the form runat=server in the starter kit. What we normally do is just to use xslt to make the login "form" and use umbraco /base to make the login functions and use it using javascript. Nice and easy. Just use the .NET membership methods to do the login/lout out.

    To auto fill customer info in the cart steps if a customer is logged in - you can use the umbraco xslt library method to get the current member and just fill the input field if the user is logged in.

    Kind regards
    Anders

  • Matt 91 posts 237 karma points
    Oct 23, 2013 @ 15:33
    Matt
    0

    Is there a new solution for this/could you explain a bit more please Anders? I had no problems setting up the login functionality using <asp:login> etc but similarly to Rich, when a <form> tag was used, Teacommerce stopped working on the cart stages. Using latest version of TC and starter kit.

     

     

  • Anders Burla 2560 posts 8256 karma points
    Oct 23, 2013 @ 15:38
    Anders Burla
    0

    Hi Matt

    You will have to make a Login and log out method using WebApi or /baase for Umbraco. When you have that implemented you can build your login/log out UI and post to the login url. And have a post to the log out when logged in. Do you know how to use /base or WebApi of Umbraco? Else here is some docs:
    http://our.umbraco.org/wiki/reference/umbraco-base/simple-base-samples
    http://our.umbraco.org/documentation/Reference/WebApi/

    Or maybe this can be used:
    http://our.umbraco.org/projects/website-utilities/razorlogin

    Kind regards
    Anders

  • Matt 91 posts 237 karma points
    Oct 25, 2013 @ 17:23
    Matt
    0

    Hi Anders,

    Thanks for the quick reply - do you have any examples of login implemented in TC that I can refer to? I am new to /base and WebApi and am struggling a bit.

     

  • Anders Burla 2560 posts 8256 karma points
    Oct 28, 2013 @ 08:32
    Anders Burla
    0

    See my last link in the last comment :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies