I am trying to make the phone number a required field in the shopping cart check out. I have found the validators for the form in ShoppingCartOrderAdresses.ascx.cs at line 881. In the section below I don't know where the ResHelper.GetString is coming from so that I can add one for the Billing Phone.
Validator val = new Validator();
// check billing part of the form
string result = val.NotEmpty(txtBillingName.Text, ResHelper.GetString("ShoppingCartOrderAddresses.BillingNameErr"))
.NotEmpty(txtBillingAddr1.Text, ResHelper.GetString("ShoppingCartOrderAddresses.BillingAddressLineErr"))
.NotEmpty(txtBillingCity.Text, ResHelper.GetString("ShoppingCartOrderAddresses.BillingCityErr"))
.NotEmpty(txtBillingZip.Text, ResHelper.GetString("ShoppingCartOrderAddresses.BillingZIPErr")).Result;
if (result == "")
{
I am thinking that I just need to add a line like this:
.NotEmpty(txtBillingPhone.Text, ResHelper.GetString("ShoppingCartOrderAddresses.BillingPhoneErr"))
but don't know where to wire it up otherwise.
Thanks.