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.
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.
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.
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.
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.
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
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.
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
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.
See my last link in the last comment :)
is working on a reply...