AdvantShop.NET contains over 50.000 lines of C# / VB.NET code all of which are essential for web store functioning.

To launch a web store on a local PC here’s what you’ll need: IIS 7 (Integrated mode), .NET framework 4.0 to launch initial codes and MS SQL 2008 (or higher) for database.

Code File Organization

  • Physically the code is located in function-arranged directories.
  • Repository - initial code main repository
  • Controls - directory for web store non-visual components
  • Core - system base functions
  • SEO - helper modules for search engine optimization
  • Helpers - helper functions
  • Payment - payment modules
  • Shipping - shipping modules

 

Internal Code Organization

  • In internal NameSpace the code is located the similar way:
  • AdvantShop.Core - initial code main repository
  • AdvantShop.Data - directory for system classes and models
  • AdvantShop.Helpers - helper functions repository
  • AdvantShop.Controls - directory for web store non-visual components

 

Code sample

  • MetaInfo model class example (SEO)
    
    namespace AdvantShop.Data
    {
     public class MetaInfo
     {
      public string Id { get; set; }
      public string Title { get; set; }
      public string MetaKeywords{ get; set; }
      public string MetaDescription{ get; set; }
     }
    }
    
  • Database processing code on the example of category product quantity calculation function
    
    
    Imports AdvantShop.Data
    {
        public class CategoryService
        {
    …
        public static void RecalculateProductsCount()
            {
                try
                {
                    using (var db = new SQLDataAccess())
                    {
                        db.cmd.CommandText = "[Catalog].[sp_RecalculateProductsCount]";
                        db.cmd.CommandType = CommandType.StoredProcedure;
                        db.cnOpen();
                        db.cmd.ExecuteNonQuery();
                        ClearCategoryCache();
                        db.cnClose();
                    }
                }
                catch (Exception ex)
                {
                    Debug.LogError(ex);
                }
            }
    …
        }
    }
    
        
  • Provider for access to web.config file settings
        
    namespace AdvantShop.Core
    {
        
        public class SettingProvider
        {
    …
        public static string GetConfigSettingValue(string strKey)
            {
                try
                {
                    var config = new AppSettingsReader();
                    return config.GetValue(strKey, typeof(String)).ToString();
                }
                catch (Exception ex)
                {
                    Debug.LogError(ex, strKey);
                    return "";
                }
            }
    …
        }
    }
        

Any question? Ask now!