I can't find where this is written out by the system. I'd like to set the default to "yes" instead of "no"
I can't find where this is written out by the system. I'd like to set the default to "yes" instead of "no"
In 8.x and earlier, that's just added as a radiobutton on the .aspx page. For example createaccount.aspx:
In 9.x, that's part of the Address control, which you would need source to modify. That's in the AspDotNetStorefrontControls project.Code:<asp:RadioButton ID="OKToEMailYes" GroupName="OKToEMail" runat="server" />
This one is version 8. I'm not sure how to edit this to make it default to Yes instead of No though. I don't see any code in the Yes or No asp lines that suggests either should be checked, yet "No" is default as checked.
I tried <asp:RadioButton ID="OKToEMailYes" Selected="True" GroupName="OKToEMail" runat="server" /> without success.
Thanks for the help.
Last edited by ryanjm; 05-17-2010 at 09:00 AM.
Open your createaccount.aspx.cs and follow the changes below.
from:
to:Code:OKToEMailYes.Checked = (ThisCustomer.EMail.Length != 0); OKToEMailNo.Checked = !OKToEMailYes.Checked;
Code:OKToEMailYes.Checked = true; // (ThisCustomer.EMail.Length != 0); OKToEMailNo.Checked = false; // !OKToEMailYes.Checked;
Worked, thanks!