Dynamicweb.eCommerce.Orders Namespace > Order Class : ConnectToUsersEmail Method |
class MyPage : System.Web.UI.Page { private void AddOrder(Dynamicweb.eCommerce.Orders.Order order) { // If the current user is not logged in as an extranet user then... if (new Dynamicweb.Frontend.Extranet().UserID == 0) { // Try to add the order to the user based on the entered email order.ConnectToUsersEmail(order.CustomerEmail); } } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2