| 
                                                                        
                                                                         
                                                                            
                                                                                kentico_helenag
                                                                            - 
                                                                                12/4/2008 8:18:38 AM
                                                                            
                                                                         
                                                                         
                                                                            
                                                                        
                                                                        
                                                                         
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                         
                                                                        
                                                                            RE:Anonymous user - Checkout fields
                                                                        
                                                                            Hello Gavin,
  I suppose you have already find the file: ShoppingCartCheckRegistration.ascx
  So switch it to the code behind and find this code (line about 571):
 
  // Check 'Continue as anonymous customer' section             else if (radAnonymous.Checked)             {                 this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "checkAnonymous", ScriptHelper.GetScript("showHideForm('tblAnonymous','" + radAnonymous.ClientID + "');"));
                  result = val.NotEmpty(txtFirstName2.Text, ResHelper.GetString("ShoppingCartCheckRegistration.FirstNameErr"))                     .NotEmpty(txtLastName2.Text, ResHelper.GetString("ShoppingCartCheckRegistration.LastNameErr"))                     .NotEmpty(txtEmail3.Text, ResHelper.GetString("ShoppingCartCheckRegistration.EmailErr")).Result;
 
  and add the NotEmpty validation for the Company name control.
  It could look like this:
 
  // Check 'Continue as anonymous customer' section             else if (radAnonymous.Checked)             {                 this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "checkAnonymous", ScriptHelper.GetScript("showHideForm('tblAnonymous','" + radAnonymous.ClientID + "');"));
                  result = val.NotEmpty(txtFirstName2.Text, ResHelper.GetString("ShoppingCartCheckRegistration.FirstNameErr"))                     .NotEmpty(txtLastName2.Text, ResHelper.GetString("ShoppingCartCheckRegistration.LastNameErr"))                     .NotEmpty(txtCompany2.Text, "Error message!")                     .NotEmpty(txtEmail3.Text, ResHelper.GetString("ShoppingCartCheckRegistration.EmailErr")).Result;
 
  Best regards, Helena Grulichova 
                                                                         
                                                                        
                                                                            
                                                                         
                                                                        
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                         
                                                                     |