private void BindItemImageGallery(AspxCommonInfo aspxCommonObj) { SageFrameRoute parentPage = (SageFrameRoute)this.Page; string itemSKU = parentPage.Key; string costCombination = string.Empty; AspxCoreController obj = new AspxCoreController(); ItemCommonInfo objItemInfo = obj.GetItemInfoFromSKU(itemSKU, aspxCommonObj); if (objItemInfo != null) { ItemID = objItemInfo.ItemID; ItemTypeID = objItemInfo.ItemTypeID; } if (ItemTypeID == 3) { List <GiftCardInfo> lstItemGallery = obj.GetGiftCardThemeImagesByItem(ItemID, aspxCommonObj); BindGiftGallery(lstItemGallery, aspxCommonObj); } else { List <VariantCombination> lstItemCombination = obj.GetCostVariantCombinationbyItemSku(itemSKU, aspxCommonObj); if (lstItemCombination != null && lstItemCombination.Count > 0) { costCombination = lstItemCombination[0].CombinationID.ToString(); } else { costCombination = "0"; } List <ItemsInfoSettings> lstItemGallery = obj.GetItemsImageGalleryInfoBySKU(itemSKU, aspxCommonObj, costCombination); BindGallery(lstItemGallery, aspxCommonObj); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { IncludeCss("ItemDetails", "/Templates/" + TemplateName + "/css/PopUp/style.css", "/Templates/" + TemplateName + "/css/StarRating/jquery.rating.css", "/Templates/" + TemplateName + "/css/JQueryUIFront/jquery-ui.all.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/FancyDropDown/fancy.css", "/Templates/" + TemplateName + "/css/ToolTip/tooltip.css", "/Templates/" + TemplateName + "/css/PopUp/popbox.css", "/Modules/AspxCommerce/AspxItemDetails/css/module.css" ); IncludeJs("ItemDetails", "/js/jDownload/jquery.jdownload.js", "/js/MessageBox/alertbox.js", "/js/DateTime/date.js", "/js/PopUp/custom.js", "/js/FormValidation/jquery.validate.js", "/js/StarRating/jquery.rating.js", "/Modules/AspxCommerce/AspxItemDetails/js/ItemDetails.js", "/Modules/AspxCommerce/AspxItemDetails/js/jquery.currencydropdown.js", "/js/PopUp/popbox.js", "/js/FancyDropDown/itemFancyDropdown.js", "/js/jquery.tipsy.js", "/js/jquery.labelify.js"); } aspxCommonObj.UserName = GetUsername; aspxCommonObj.PortalID = GetPortalID; aspxCommonObj.StoreID = GetStoreID; aspxCommonObj.CustomerID = GetCustomerID; aspxCommonObj.CultureName = GetCurrentCultureName; aspxCommonObj.SessionCode = sessionCode; IncludeLanguageJS(); ItemCommonInfo objItemInfo = AspxCommonController.GetItemInfoFromSKU(itemSKU, aspxCommonObj); if (objItemInfo != null) { itemTypeId = objItemInfo.ItemTypeID; } BindItemQuantityDiscountByUserName(itemSKU); BindItemAverageRating(); if (itemTypeId != 5) { GetPriceHistory(); } BindRatingCriteria(); AddUpdateRecentlyViewedItem(); CheckReviewByUser(); CheckReviewByIP(); }
/// <summary> /// Adds a DebugMenu item to the correct group and tracking. /// </summary> /// <param name="groupName">The group to add to.</param> /// <param name="owner">The owner to associate with.</param> /// <param name="item">The debug menu item to add.</param> /// <returns>The unique id for this item/</returns> public int AddItem(string groupName, GameObject owner, DebugMenuItem item) { DebugItemGroup group = GetItemGroup(groupName, true); ItemCommonInfo info = new ItemCommonInfo(); info.mDebugMenuItem = item; info.mGroupName = groupName; info.mOwner = owner; info.mURID = mCurURID++; group.AddDebugItem(item); mMenuItems.Add(info); return(info.mURID); }
private void BindItemImageGallery() { SageFrameRoute parentPage = (SageFrameRoute)this.Page; string itemSKU = parentPage.Key; if (HttpContext.Current.Session.SessionID != null) { SessionCode = HttpContext.Current.Session.SessionID.ToString(); } string costCombination = ""; aspxCommonObj.UserName = GetUsername; aspxCommonObj.PortalID = GetPortalID; aspxCommonObj.StoreID = GetStoreID; aspxCommonObj.CustomerID = GetCustomerID; aspxCommonObj.CultureName = GetCurrentCultureName; aspxCommonObj.SessionCode = SessionCode; AspxCoreController obj = new AspxCoreController(); ItemCommonInfo objItemInfo = obj.GetItemInfoFromSKU(itemSKU, aspxCommonObj); if (objItemInfo != null) { ItemID = objItemInfo.ItemID; ItemTypeID = objItemInfo.ItemTypeID; } if (ItemTypeID == 3) { List <GiftCardInfo> lstItemGallery = obj.GetGiftCardThemeImagesByItem(ItemID, aspxCommonObj); BindGiftGallery(lstItemGallery); } else { List <VariantCombination> lstItemCombination = obj.GetCostVariantCombinationbyItemSku(itemSKU, aspxCommonObj); if (lstItemCombination != null && lstItemCombination.Count > 0) { costCombination = lstItemCombination[0].CombinationID.ToString(); } else { costCombination = "0"; } List <ItemsInfoSettings> lstItemGallery = obj.GetItemsImageGalleryInfoBySKU(itemSKU, aspxCommonObj, costCombination); BindGallery(lstItemGallery); } }