Step one of the registration process.
By changing the values of the control's properties in the SitePages.config file for your Site, you can enable or disable certain behaviors, set certain defaults, alter aspects of the display or otherwise cusomtize your site's implementaion of the control.
The following describes properties pertaining to key functional areas of the control that can be configured to suit your needs.
CSS Properties
The CharacteristicFieldCssClass gets or sets the characteristic field CSS class.
The CharacteristicFieldGroupCssClass gets or sets the characteristic field group CSS class.
The CharacteristicLabelCssClass gets or sets the characteristic label CSS class.
Family Properties
The DisplayFamilyName gets or sets a value indicating whether to display family name.
The FamilyName gets or sets the names of the family, or families or Account type Characteristic Families that are to be included as a series of additional fields to be included in the Account registration.
The HideFamiliesOnEmpty gets or sets a value indicating whether to hide Families when empty.
Key Properties
There are multiple key properties which can be customizes for this control. These key properties include the PrivateKey, PublicKey, SecretKey, and the SiteKey property which sets the private key, public key, secret key, and the site key respectively.
Recaptcha Properties
The RecaptchaLanguage gets or sets the recaptcha language.
The RecaptchaProxyUrl gets or set the proxy url for recaptcha
The RecaptchaTheme gets or sets the recaptcha theme.
The RecaptchaUrl gets or set the url for recaptcha verification
The UseRecaptcha gets or sets a value indicating whether this Dovetail.Ecommerce.Controls.CatalogContactUsControl use recaptcha.
Properties Inherited from the Base CyberStoreBaseControl
Properties specific to the CyberStoreBaseControl can be listed in the following categories:
- Override Properties
- Contextual Properties
Override Properties
When the IgnoreControl property is set to true, all processing of a control is skipped, and the control's Visible property is set to false ensuring that it is not rendered in the resulting CyberStore page.
Contextual Properties
Contextual properties define specific details about the current instance of the control based on context. Context can be set by any number of factors including the log in state of the Shopper, the Site being visited, or the properties that have been established for a control.
The AttributesBag property is used internal to control processing and is the collection of attributes, or properties, and their values based on how the control is configured. The attributes in this property are set by processing the SitePages.config file as well as any specific declared property values in any registered sub controls. It allows for the passing down of all properties to a control and any registered sub controls.
The ComConfig, UserData and Site_ID properties are read-only values made available to all CyberStore controls to aid in processing and establishing context about the Site and Shopper.
The table below lists and describes sub controls used by the default CustomerAccountControl.
The following is the markup for this control.
Developer's Note:
To create a custom version of the control, copy all of the code below into a file of the same name and place it into your Site's control folder (e.g., ../YourSiteFolder/Control). The CyberStore page engine will then override the default markup with your customized version.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomerAccountControl.ascx.cs"
Inherits="Dovetail.Ecommerce.Controls.CustomerAccountControl" %>
<@ Register TagPrefix="uc1" TagName="CommonValidEmailControl" Src="~/Control/CommonValidEmailControl.ascx" >
<@ Register TagPrefix="uc1" TagName="CommonRequiredPasswordControl" Src="~/Control/CommonRequiredPasswordControl.ascx" >
<@ Register TagPrefix="uc1" TagName="CustomerAccountMFAControl" Src="~/Control/CustomerAccountMFAControl.ascx" >
<!--BEGIN ACCOUNT Registration Module-->
<!--<p class="BodyHeader">Account Registration
1 of 3</p>-->
<style type="text/css">
.control-group.row {
margin-bottom: 0px;
}
#onfile .FormLabel {
margin-top: 10px;
}
#recaptchaDiv, .FormButtonMatte {
/* margin-left: 120px;*/
}
input#cancelButton {
padding: 8px;
}
</style>
<p class="accountIntro col-xs-12">Please complete the following information to establish your website account.</p><br>
<asp:ValidationSummary ID="registrationValidationSummary" ForeColor=" " HeaderText="Important Message:"
CssClass="ValidationMessage" runat="server"></asp:ValidationSummary>
<asp:Label ID="outputLabel" CssClass="InfoMessage" runat="server"></asp:Label>
<p>
</p>
<dx:ASPxPanel ID="onfile" CssClass="container" ClientIDMode="Static" runat="server" ClientInstanceName="onfile" DefaultButton="registrationsubmitButton">
<PanelCollection>
<dx:PanelContent>
<div class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
<asp:Label ID="lbl_firstname" runat="server">First Name:</asp:Label>
</label>
<div class="controls col-xs-12 col-sm-5">
<asp:TextBox ID="firstnameTextBox" TabIndex="1" CssClass="FormField" runat="server"
Width="222px" MaxLength="10"></asp:TextBox><asp:RequiredFieldValidator ID="firstnameRequiredFieldValidator"
CssClass="RequiredFieldLabel" runat="server" Width="10px" Display="None" ControlToValidate="firstnameTextBox"
ErrorMessage="You must enter a First Name">*</asp:RequiredFieldValidator><span class="RequiredFieldLabel">*</span>
</div>
</div>
<div class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
<asp:Label ID="lbl_lastname" runat="server">Last Name:</asp:Label>
</label>
<div class="controls col-xs-12 col-sm-5">
<asp:TextBox ID="lastnameTextBox" TabIndex="2" CssClass="FormField" runat="server"
Width="222px" MaxLength="19"></asp:TextBox><asp:RequiredFieldValidator ID="lastnameRequiredFieldValidator"
CssClass="RequiredFieldLabel" runat="server" Display="None" ControlToValidate="lastnameTextBox"
ErrorMessage="You must enter a Last Name">*</asp:RequiredFieldValidator><span class="RequiredFieldLabel">*</span>
</div>
</div>
<div class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
Email Address:
</label>
<div class="controls col-xs-12 col-sm-5">
<uc1:CommonValidEmailControl ID="Email1" tabIndex="3" runat="server"></uc1:CommonValidEmailControl>
</div>
</div>
<div id="divPassword" runat="server" class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
Password:
</label>
<div class="controls col-xs-12 col-sm-5 requestFieldText">
<asp:TextBox ID="passwordTextBox" TabIndex="4" CssClass="FormField" runat="server"
Width="222px" TextMode="Password">
</asp:TextBox>
<asp:RequiredFieldValidator ID="passwordRequiredFieldValidator" CssClass="RequiredFieldLabel"
runat="server" Display="None" ControlToValidate="passwordTextBox" ErrorMessage="You must enter a password">*</asp:RequiredFieldValidator>
<asp:CustomValidator ID="pwCustomValidator" runat="server" Display="None" ControlToValidate="passwordTextBox"
ErrorMessage="The password must be a minimum of 5 characters." OnServerValidate="pwCustomValidate"
EnableClientScript="false">*</asp:CustomValidator>
<span class="RequiredFieldLabel">*</span> <br>(5 character minimum)
</div>
</div>
<div id="divConfirmPassword" runat="server" class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
Confirm Password:
</label>
<div class="controls col-xs-12 col-sm-5">
<asp:TextBox ID="passwordconfirmTextBox" TabIndex="5" CssClass="FormField" runat="server"
Width="222px" TextMode="Password">
</asp:TextBox>
<asp:RequiredFieldValidator ID="confirmpasswordRequiredfieldvalidator" CssClass="RequiredFieldLabel"
runat="server" Display="None" ControlToValidate="passwordconfirmTextBox" ErrorMessage="You must confirm your password."
EnableClientScript="false">*</asp:RequiredFieldValidator>
<asp:CompareValidator ID="passwordCompareValidator" runat="server" Display="None"
ControlToValidate="passwordconfirmTextBox" ErrorMessage="Confirm Password does not match password."
ControlToCompare="passwordTextBox">*</asp:CompareValidator>
<span class="RequiredFieldLabel">*</span>
</div>
</div>
<div class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
Primary Phone:
</label>
<div class="controls col-xs-12 col-sm-5">
<asp:TextBox ID="primaryphoneTextBox" TabIndex="7" CssClass="FormField" runat="server"
Width="155px"></asp:TextBox><span class="FormLabel"> Ext.</span>
<asp:TextBox ID="primaryphoneextTextBox" TabIndex="8" CssClass="FormField" runat="server"
Width="30px"></asp:TextBox>
</div>
</div>
<div class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
Alternate Phone:
</label>
<div class="controls col-xs-12 col-sm-5">
<asp:TextBox ID="alternatephoneTextBox" TabIndex="9" CssClass="FormField" runat="server"
Width="155px"></asp:TextBox><span class="FormLabel"> Ext.</span>
<asp:TextBox ID="alternatephoneextTextBox" TabIndex="10" CssClass="FormField"
runat="server" Width="30px"></asp:TextBox>
</div>
</div>
<%--<div class="control-group row col-xs-12">
<uc1:CustomerAccountMFAControl ID="CustomerAccountMFAControl1" runat="server"></uc1:CustomerAccountMFAControl>
</div>--%>
<div class="control-group row col-xs-12">
<label class="FormLabel col-xs-12 col-sm-3">
</label>
<div class="controls col-xs-12 col-sm-5">
<dx:ASPxCheckBox ID="chkMailchimpStatus" runat="server" Visible="false" />
</div>
</div>
<asp:PlaceHolder ID="plcCharacterisitcs" runat="server"></asp:PlaceHolder>
<div class="control-group row col-xs-12">
<div class="controls col-xs-12 col-sm-5 col-sm-offset-3 offset-sm-3" id="recaptchaDiv" runat="server" />
<asp:CustomValidator ID="recaptchaValidator" runat="server" Display="None"
ErrorMessage="You must pass the reCAPTCHA to submit the form."
EnableClientScript="false" />
<div class="controls col-xs-12 col-sm-5 col-sm-offset-3 offset-sm-3 FormButtonMatte">
<dx:ASPxButton ID="registrationsubmitButton" TabIndex="11" CssClass="DT-Button"
runat="server" Text="Continue" OnClick="registrationsubmitButton_Click">
</dx:ASPxButton>
<dx:ASPxButton CausesValidation="false" ID="cancelButton" CssClass="DT-Button secondary-btn-theme" runat="server" Text="Cancel"
OnClick="cancelButton_Click">
</dx:ASPxButton>
</div>
</div>
</dx:PanelContent>
</PanelCollection>
</dx:ASPxPanel>