Beispiel #1
0
    public void GetBrowseByCategorySetting(AspxCommonInfo aspxCommonObj)
    {
        List <CategoryDetailsInfo> lstCategorySetting = AspxBrowseCategoryController.GetBrowseByCategorySetting(aspxCommonObj);

        if (lstCategorySetting != null && lstCategorySetting.Count > 0)
        {
            foreach (CategoryDetailsInfo item in lstCategorySetting)
            {
                count = item.ItemCount;
                level = item.CategoryLevel;
            }
        }
    }
Beispiel #2
0
    public void GetShoppingOptionsByCategory()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.UserName    = UserName;
        aspxCommonObj.CultureName = CultureName;
        int    categoryId    = 0;
        string pageExtension = SageFrameSettingKeys.PageExtension;
        string modulePath    = this.AppRelativeTemplateSourceDirectory;

        hst = AppLocalized.getLocale(modulePath);
        List <CategoryDetailsInfo> lstCategory = AspxBrowseCategoryController.BindCategoryDetails(categoryId, count, level, aspxCommonObj);
        StringBuilder categoryOptions          = new StringBuilder();

        categoryOptions.Append("<div class=\"cssClassBrowseByCategory\" id=\"divCategoryItemsOptions\">");
        if (lstCategory != null && lstCategory.Count > 0)
        {
            categoryOptions.Append("<h2>");
            categoryOptions.Append(getLocale("Browse by"));
            categoryOptions.Append("</h2><ul>");
            foreach (CategoryDetailsInfo item in lstCategory)
            {
                categoryOptions.Append("<li><a href=\"");
                categoryOptions.Append(aspxRedirectPath);
                categoryOptions.Append("category/");
                categoryOptions.Append(AspxUtility.fixedEncodeURIComponent(item.CategoryName));
                categoryOptions.Append(pageExtension);
                categoryOptions.Append("\" alt=\"");
                categoryOptions.Append(item.CategoryName);
                categoryOptions.Append("\" title=\"");
                categoryOptions.Append(item.CategoryName);
                categoryOptions.Append("\">");
                categoryOptions.Append(item.CategoryName);
                categoryOptions.Append("</a></li>");
            }
            categoryOptions.Append("</ul><div class=\"cssClassclear\"></div>");
        }
        else
        {
            categoryOptions.Append("<span class=\"cssClassNotFound\">");
            categoryOptions.Append(getLocale("No category with item is found!"));
            categoryOptions.Append("</span>");
        }
        categoryOptions.Append("</div>");
        ltrCategoryItemsOptions.Text = categoryOptions.ToString();
    }
Beispiel #3
0
    public void GetBrowseByCategorySetting()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.CultureName = CultureName;
        List <CategoryDetailsInfo> lstCategorySetting = AspxBrowseCategoryController.GetBrowseByCategorySetting(aspxCommonObj);

        if (lstCategorySetting != null && lstCategorySetting.Count > 0)
        {
            foreach (CategoryDetailsInfo item in lstCategorySetting)
            {
                count = item.ItemCount;
                level = item.CategoryLevel;
            }
        }
    }