public void BindWishListItem() { decimal rate = 1; AspxCommonInfo aspxCommonObj = new AspxCommonInfo(); aspxCommonObj.StoreID = StoreID; aspxCommonObj.PortalID = PortalID; aspxCommonObj.UserName = UserName; aspxCommonObj.CultureName = CultureName; StoreSettingConfig ssc = new StoreSettingConfig(); decimal additionalCCVR = decimal.Parse(ssc.GetStoreSettingsByKey(StoreSetting.AdditionalCVR, aspxCommonObj.StoreID, aspxCommonObj.PortalID, aspxCommonObj.CultureName)); string MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, aspxCommonObj.StoreID, aspxCommonObj.PortalID, aspxCommonObj.CultureName); if (HttpContext.Current.Session["CurrencyRate"] != null) { if (Session["CurrencyCode"].ToString() != MainCurrency) { decimal rate1 = decimal.Parse(Session["CurrencyRate"].ToString()); rate = Math.Round(rate1 + (rate1 * additionalCCVR / 100), 4); } else { rate = decimal.Parse(Session["CurrencyRate"].ToString()); } } string modulePath = this.AppRelativeTemplateSourceDirectory; string aspxTemplateFolderPath = ResolveUrl("~/") + "Templates/" + TemplateName; string aspxRootPath = ResolveUrl("~/"); hst = AppLocalized.getLocale(modulePath); string pageExtension = SageFrameSettingKeys.PageExtension; var count = 10; var isAll = "1"; int limit = 5; //get value from drop down int offset = 1; int sortBy = 1; // get value from drop down List <WishItemsInfo> lstWishList = AspxWishItemController.GetWishItemList(offset, limit, aspxCommonObj, isAll, count, sortBy); StringBuilder wishListStringBld = new StringBuilder(); if (lstWishList != null && lstWishList.Count > 0) { SortByList(); wishListStringBld.Append("<thead>"); wishListStringBld.Append("<tr class=\"cssClassCommonCenterBoxTableHeading\">"); wishListStringBld.Append( "<td class=\"cssClassWishItemChkbox\"> <input type=\"checkbox\" id=\"chkHeading\"/></td>"); wishListStringBld.Append( "<td class=\"cssClassWishItemDetails\"><label id=\"lblItem\" class=\"sfLocale\">Item</label></td>"); wishListStringBld.Append( "<td class=\"row-variants\"><label id=\"lblVariant\" class=\"sfLocale\">Variants</label></td>"); wishListStringBld.Append( "<td class=\"cssClassWishListComment\"><label id=\"lblComment\" class=\"sfLocale\">Comment</label></td>"); wishListStringBld.Append( "<td class=\"cssClassAddedOn\"><label id=\"lblAddedOn\" class=\"sfLocale\">Added On</label></td>"); wishListStringBld.Append( "<td class=\"cssClassAddToCart\"><label id=\"lblAddToCart\" class=\"sfLocale\">Add To Cart</label></td>"); wishListStringBld.Append("<td class=\"cssClassDelete\"></td>"); wishListStringBld.Append("</tr></thead>"); wishListStringBld.Append("<tbody>"); ArrayLength = lstWishList.Count; foreach (var response in lstWishList) { // ArrItemListType.Add(response.ItemID); RowTotal = response.RowTotal; string imagePath = "Modules/AspxCommerce/AspxItemsManagement/uploads/" + response.ImagePath; if (response.ImagePath == "") { imagePath = NoImageWishList; } else if (response.AlternateText == "") { response.AlternateText = response.ItemName; } JavaScriptSerializer ser = new JavaScriptSerializer(); string WishDate = (Convert.ToDateTime(response.WishDate)).ToShortDateString(); //WishList.DateDeserialize(response.WishDate, "yyyy/M/d"); var itemSKU = ser.Serialize(response.SKU); //JSON2.stringify(response.SKU); var cosVaraint = ser.Serialize(response.CostVariantValueIDs); //JSON2.stringify(response.CostVariantValueIDs); var href = ""; var cartUrl = ""; if (response.CostVariantValueIDs == "") { cartUrl = "#"; href = aspxRedirectPath + "item/" + response.SKU + pageExtension; } else { cartUrl = aspxRedirectPath + "item/" + response.SKU + pageExtension + "?varId=" + response.CostVariantValueIDs + ""; href = aspxRedirectPath + "item/" + response.SKU + pageExtension + "?varId=" + response.CostVariantValueIDs + ""; } if (lstWishList.IndexOf(response) % 2 == 0) { if (AllowOutStockPurchase.ToLower() == "false") { if (response.IsOutOfStock != null && (bool)response.IsOutOfStock) { wishListStringBld.Append("<tr class=\"sfEven\" id=\"tr_" + response.ItemID + "\">"); wishListStringBld.Append("<td class=\"cssClassWishItemChkbox\">"); wishListStringBld.Append("<input type=\"checkbox\" id=\"" + response.WishItemID + "\" class=\"cssClassWishItem\"/></td>"); wishListStringBld.Append("<td class=\"cssClassWishItemDetails\">"); wishListStringBld.Append("<div class=\"cssClassImage\">"); wishListStringBld.Append("<img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + response.AlternateText + "\" title=\"" + response.AlternateText + "\"/>"); wishListStringBld.Append("</div>"); wishListStringBld.Append("<a href=\"" + href + "\">" + response.ItemName + "</a></br>"); wishListStringBld.Append("<span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(response.Price) * rate, 2) + "</span></td>"); wishListStringBld.Append( "<td><input type=\"hidden\" name=\"hdnCostVariandValueIDS\" value=" + cosVaraint + "/>"); wishListStringBld.Append("<span>" + response.ItemCostVariantValue + "</span></td>"); wishListStringBld.Append("<td class=\"cssClassWishComment\">"); wishListStringBld.Append("<textarea maxlength=\"300\" onkeyup=\"" + "WishList.ismaxlength(this)" + "\" id=\"comment_" + response.WishItemID + "\" class=\"comment\">" + response.Comment + "</textarea></td>"); wishListStringBld.Append("<td class=\"cssClassWishDate\">" + WishDate + "</td>"); wishListStringBld.Append("<td class=\"cssClassWishToCart\">"); wishListStringBld.Append("<div class=\"sfButtonwrapper cssClassOutOfStock\">"); wishListStringBld.Append("<a href=\"#\"><span>" + getLocale("Out Of Stock") + "</span></a></div></td>"); wishListStringBld.Append("<td class=\"cssClassDelete\">"); wishListStringBld.Append("<img onclick=\"WishList.DeleteWishListItem(" + response.WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); wishListStringBld.Append("</td></tr>"); } else { wishListStringBld.Append("<tr class=\"sfEven\" id=\"tr_" + response.ItemID + "\">"); wishListStringBld.Append("<td class=\"cssClassWishItemChkbox\">"); wishListStringBld.Append("<input type=\"checkbox\" id=\"" + response.WishItemID + "\" class=\"cssClassWishItem\"/></td>"); wishListStringBld.Append("<td class=\"cssClassWishItemDetails\">"); wishListStringBld.Append("<div class=\"cssClassImage\">"); wishListStringBld.Append("<img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + response.AlternateText + "\" title=\"" + response.AlternateText + "\"/>"); wishListStringBld.Append("</div>"); wishListStringBld.Append("<a href=\"" + href + "\">" + response.ItemName + "</a></br>"); wishListStringBld.Append("<span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(response.Price) * rate, 2) + "</span></td>"); wishListStringBld.Append( "<td><input type=\"hidden\" name=\"hdnCostVariandValueIDS\" value=" + cosVaraint + "/>"); wishListStringBld.Append("<span>" + response.ItemCostVariantValue + "</span></td>"); wishListStringBld.Append("<td class=\"cssClassWishComment\">"); wishListStringBld.Append("<textarea maxlength=\"300\" onkeyup=\"" + "WishList.ismaxlength(this)" + "\" id=\"comment_" + response.WishItemID + "\" class=\"comment\">" + response.Comment + "</textarea></td>"); wishListStringBld.Append("<td class=\"cssClassWishDate\">" + WishDate + "</td>"); wishListStringBld.Append("<td class=\"cssClassWishToCart\">"); wishListStringBld.Append("<div class=\"sfButtonwrapper\">"); wishListStringBld.Append("<a href=\"" + cartUrl + "\" onclick=WishList.AddToCartToJS(" + response.ItemID + "," + response.Price + "," + itemSKU + "," + 1 + ");><span>" + getLocale("Add To Cart") + "</span></a></div></td>"); wishListStringBld.Append("<td class=\"cssClassDelete\">"); wishListStringBld.Append("<img onclick=\"WishList.DeleteWishListItem(" + response.WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); wishListStringBld.Append("</td></tr>"); } } else { wishListStringBld.Append("<tr class=\"sfEven\" id=\"tr_" + response.ItemID + "\">"); wishListStringBld.Append("<td class=\"cssClassWishItemChkbox\">"); wishListStringBld.Append("<input type=\"checkbox\" id=\"" + response.WishItemID + "\" class=\"cssClassWishItem\"/></td>"); wishListStringBld.Append("<td class=\"cssClassWishItemDetails\">"); wishListStringBld.Append("<div class=\"cssClassImage\">"); wishListStringBld.Append("<img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + response.AlternateText + "\" title=\"" + response.AlternateText + "\"/>"); wishListStringBld.Append("</div>>"); wishListStringBld.Append("<a href=\"" + href + "\">" + response.ItemName + "</a><br>"); wishListStringBld.Append("<span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(response.Price) * rate, 2) + "</span></td>"); wishListStringBld.Append("<td><input type=\"hidden\" name=\"hdnCostVariandValueIDS\" value=" + cosVaraint + "/>"); wishListStringBld.Append("<span>" + response.ItemCostVariantValue + "</span></td>"); wishListStringBld.Append("<td class=\"cssClassWishComment\">"); wishListStringBld.Append("<textarea maxlength=\"300\" onkeyup=\"" + "WishList.ismaxlength(this)" + "\" id=\"comment_" + response.WishItemID + "\" class=\"comment\">" + response.Comment + "</textarea></td>"); wishListStringBld.Append("<td class=\"cssClassWishDate\">" + WishDate + "</td>"); wishListStringBld.Append("<td class=\"cssClassWishToCart\">"); wishListStringBld.Append("<div class=\"sfButtonwrapper\">"); wishListStringBld.Append("<a href=" + cartUrl + " onclick=WishList.AddToCartToJS(" + response.ItemID + "," + response.Price + "," + itemSKU + "," + 1 + ");><span>" + getLocale("Add To Cart") + "</span></a></div></td>"); wishListStringBld.Append("<td class=\"cssClassDelete\">"); wishListStringBld.Append("<img onclick=\"WishList.DeleteWishListItem(" + response.WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); wishListStringBld.Append("</td></tr>"); } } else { if (AllowOutStockPurchase.ToLower() == "false") { if (response.IsOutOfStock != null && (bool)response.IsOutOfStock) { wishListStringBld.Append("<tr class=\"sfOdd\" id=\"tr_" + response.ItemID + "\">"); wishListStringBld.Append("<td class=\"cssClassWishItemChkbox\">"); wishListStringBld.Append("<input type=\"checkbox\" id=\"" + response.WishItemID + "\" class=\"cssClassWishItem\"/></td>"); wishListStringBld.Append("<td class=\"cssClassWishItemDetails\">"); wishListStringBld.Append("<div class=\"cssClassImage\">"); wishListStringBld.Append("<img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + response.AlternateText + "\" title=\"" + response.AlternateText + "\"/>"); wishListStringBld.Append("</div>"); wishListStringBld.Append("<a href=\"" + href + "\">" + response.ItemName + "</a></br>"); wishListStringBld.Append("<span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(response.Price) * rate, 2) + "</span></td>"); wishListStringBld.Append( "<td><input type=\"hidden\" name=\"hdnCostVariandValueIDS\" value=" + cosVaraint + "/>"); wishListStringBld.Append("<span>" + response.ItemCostVariantValue + "</span></td>"); wishListStringBld.Append("<td class=\"cssClassWishComment\">"); wishListStringBld.Append("<textarea maxlength=\"300\" onkeyup=\"" + "WishList.ismaxlength(this)" + "\" id=\"comment_" + response.WishItemID + "\" class=\"comment\">" + response.Comment + "</textarea></td>"); wishListStringBld.Append("<td class=\"cssClassWishDate\">" + WishDate + "</td>"); wishListStringBld.Append("<td class=\"cssClassWishToCart\">"); wishListStringBld.Append("<div class=\"sfButtonwrapper cssClassOutOfStock\">"); wishListStringBld.Append("<a href=\"#\"><span>" + getLocale("Out Of Stock") + "</span></a></div></td>"); wishListStringBld.Append("<td class=\"cssClassDelete\">"); wishListStringBld.Append("<img onclick=\"WishList.DeleteWishListItem(" + response.WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); wishListStringBld.Append("</td></tr>"); } else { wishListStringBld.Append("<tr class=\"sfOdd\" id=\"tr_" + response.ItemID + "\">"); wishListStringBld.Append("<td class=\"cssClassWishItemChkbox\">"); wishListStringBld.Append("<input type=\"checkbox\" id=\"" + response.WishItemID + "\" class=\"cssClassWishItem\"/></td>"); wishListStringBld.Append("<td class=\"cssClassWishItemDetails\">"); wishListStringBld.Append("<div class=\"cssClassImage\">"); wishListStringBld.Append("<img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + response.AlternateText + "\" title=\"" + response.AlternateText + "\"/>"); wishListStringBld.Append("</div>"); wishListStringBld.Append("<a href=\"" + href + "\">" + response.ItemName + "</a></br>"); wishListStringBld.Append("<span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(response.Price) * rate, 2) + "</span></td>"); wishListStringBld.Append( "<td><input type=\"hidden\" name=\"hdnCostVariandValueIDS\" value=" + cosVaraint + "/>"); wishListStringBld.Append("<span>" + response.ItemCostVariantValue + "</span></td>"); wishListStringBld.Append("<td class=\"cssClassWishComment\">"); wishListStringBld.Append("<textarea maxlength=\"300\" onkeyup=\"" + "WishList.ismaxlength(this)" + "\" id=\"comment_" + response.WishItemID + "\" class=\"comment\">" + response.Comment + "</textarea></td>"); wishListStringBld.Append("<td class=\"cssClassWishDate\">" + WishDate + "</td>"); wishListStringBld.Append("<td class=\"cssClassWishToCart\">"); wishListStringBld.Append("<div class=\"sfButtonwrapper\">"); wishListStringBld.Append("<a href=" + cartUrl + " onclick=WishList.AddToCartToJS(" + response.ItemID + "," + response.Price + "," + itemSKU + "," + 1 + ");><span>" + getLocale("Add To Cart") + "</span></a></div></td>"); wishListStringBld.Append("<td class=\"cssClassDelete\">"); wishListStringBld.Append("<img onclick=\"WishList.DeleteWishListItem(" + response.WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); wishListStringBld.Append("</td></tr>"); } } else { wishListStringBld.Append("<tr class=\"sfOdd\" id=\"tr_" + response.ItemID + "\">"); wishListStringBld.Append("<td class=\"cssClassWishItemChkbox\">"); wishListStringBld.Append("<input type=\"checkbox\" id=\"" + response.WishItemID + "\" class=\"cssClassWishItem\"/></td>"); wishListStringBld.Append("<td class=\"cssClassWishItemDetails\">"); wishListStringBld.Append("<div class=\"cssClassImage\">"); wishListStringBld.Append("<img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + response.AlternateText + "\" title=\"" + response.AlternateText + "\"/>"); wishListStringBld.Append("</div>"); wishListStringBld.Append("<a href=\"" + href + "\">" + response.ItemName + "</a></br>"); wishListStringBld.Append("<span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(response.Price) * rate, 2) + "</span></td>"); wishListStringBld.Append("<td><input type=\"hidden\" name=\"hdnCostVariandValueIDS\" value=" + cosVaraint + "/>"); wishListStringBld.Append("<span>" + response.ItemCostVariantValue + "</span></td>"); wishListStringBld.Append("<td class=\"cssClassWishComment\">"); wishListStringBld.Append("<textarea maxlength=\"300\" onkeyup=\"" + "WishList.ismaxlength(this)" + "\" id=\"comment_" + response.WishItemID + "\" class=\"comment\">" + response.Comment + "</textarea></td>"); wishListStringBld.Append("<td class=\"cssClassWishDate\">" + WishDate + "</td>"); wishListStringBld.Append("<td class=\"cssClassWishToCart\">"); wishListStringBld.Append("<div class=\"sfButtonwrapper\">"); wishListStringBld.Append("<a href=" + cartUrl + " onclick=WishList.AddToCartToJS(" + response.ItemID + "," + response.Price + "," + itemSKU + "," + 1 + ");><span>" + getLocale("Add To Cart") + "</span></a></div></td>"); wishListStringBld.Append("<td class=\"cssClassDelete\">"); wishListStringBld.Append("<img onclick=\"WishList.DeleteWishListItem(" + response.WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); wishListStringBld.Append("</td></tr>"); } } } wishListStringBld.Append("</tbody>"); wishListStringBld.Append(GetStringScript("$('.cssClassImage img[title]').tipsy({ gravity: 'n' });")); StringBuilder wishLstButtonBdl = new StringBuilder(); wishLstButtonBdl.Append("<button type=\"button\" id=\"shareWishList\">"); wishLstButtonBdl.Append("<span><span class=\"sfLocale\">Share Wishlist</span></span></button>"); wishLstButtonBdl.Append( "<button type=\"button\" id=\"updateWishList\" onclick=\"WishList.UpdateWishList();\">"); wishLstButtonBdl.Append("<span><span class=\"sfLocale\">Update Selected</span></span></button>"); wishLstButtonBdl.Append( "<button type=\"button\" id=\"clearWishList\" onclick=\"WishList.ClearWishList();\">"); wishLstButtonBdl.Append("<span><span class=\"sfLocale\">Clear WishList</span></span></button>"); wishLstButtonBdl.Append("<button type=\"button\" id=\"btnDeletedMultiple\">"); wishLstButtonBdl.Append(""); wishLstButtonBdl.Append("<span><span class=\"sfLocale\">Delete Selected</span></span></button>"); wishLstButtonBdl.Append("<button type=\"button\" id=\"continueInStore\">"); wishLstButtonBdl.Append("<span><span class=\"sfLocale\">Continue to Shopping</span></span></button >"); StringBuilder wishListPaginationBdl = new StringBuilder(); wishListPaginationBdl.Append("<span class=\"sfLocale\">View Per Page: </span><select id=\"ddlWishListPageSize\" class=\"sfListmenu\"><option value=\"\"></option></select>"); //StringBuilder wishListSortByBdl = new StringBuilder(); //wishListSortByBdl.Append("<span class=\"sfLocale\">Sort by:</span><select id=\"ddlWishListSortBy\" class=\"sfListmenu\"><option value=\"\"></option></select>"); //ltrWishListSortBy.Text = wishListSortByBdl.ToString(); ltrWishListButon.Text = wishLstButtonBdl.ToString(); ltrWishListPagination.Text = wishListPaginationBdl.ToString(); } else { wishListStringBld.Append("<tr><td class=\"cssClassNotFound\">" + getLocale("Your wishlist is empty!") + "</td></tr>"); } ltrWishList.Text = wishListStringBld.ToString(); }
public void BindMyWishList() { string flagShowAll = "0"; decimal rate = 1; AspxCommonInfo aspxCommonObj = new AspxCommonInfo(); aspxCommonObj.StoreID = StoreID; aspxCommonObj.PortalID = PortalID; aspxCommonObj.UserName = UserName; aspxCommonObj.CultureName = CultureName; StoreSettingConfig ssc = new StoreSettingConfig(); decimal additionalCCVR = decimal.Parse(ssc.GetStoreSettingsByKey(StoreSetting.AdditionalCVR, aspxCommonObj.StoreID, aspxCommonObj.PortalID, aspxCommonObj.CultureName)); string MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, aspxCommonObj.StoreID, aspxCommonObj.PortalID, aspxCommonObj.CultureName); if (HttpContext.Current.Session["CurrencyRate"] != null) { if (Session["CurrencyCode"].ToString() != MainCurrency) { decimal rate1 = decimal.Parse(Session["CurrencyRate"].ToString()); rate = Math.Round(rate1 + (rate1 * additionalCCVR / 100), 4); } else { rate = decimal.Parse(Session["CurrencyRate"].ToString()); } } string modulePath = this.AppRelativeTemplateSourceDirectory; string aspxTemplateFolderPath = ResolveUrl("~/") + "Templates/" + TemplateName; string aspxRootPath = ResolveUrl("~/"); hst = AppLocalized.getLocale(modulePath); string pageExtension = SageFrameSettingKeys.PageExtension; List <WishItemsInfo> lstWishItem = AspxWishItemController.GetRecentWishItemList(aspxCommonObj, flagShowAll, NoOfRecentAddedWishItems); StringBuilder recentWishList = new StringBuilder(); recentWishList.Append("<div class=\"cssClassCommonSideBoxTable wishItem\">"); if (lstWishItem != null && lstWishItem.Count > 0) { recentWishList.Append("<table class=\"cssClassMyWishItemTable\" id=\"tblWishItem\" width=\"100%\">"); //recentWishList.Append("<thead><tr><td>"); //recentWishList.Append("<h3><label ID=\"lblWishListTitle\" class=\"cssClassGowishlistHead\">"); //recentWishList.Append("<span>" + getLocale("Last Added Items") + "</span><label></h3>"); //recentWishList.Append("</td></tr></thead>"); string myWishListLink = ""; if (userFriendlyURL) { myWishListLink = WishListURL + pageExtension; } else { myWishListLink = WishListURL; } recentWishList.Append("<tbody>"); for (int i = 0; i < lstWishItem.Count; i++) { string imagePath = "Modules/AspxCommerce/AspxItemsManagement/uploads/" + lstWishItem[i].ImagePath; if (string.IsNullOrEmpty(lstWishItem[i].ImagePath)) { imagePath = NoImageWishItemPath; } if (lstWishItem[i].AlternateText == "") { lstWishItem[i].AlternateText = lstWishItem[i].ItemName; } var href = ""; if (lstWishItem[i].CostVariantValueIDs == "") { href = aspxRedirectPath + "item/" + lstWishItem[i].SKU + pageExtension; } else { href = aspxRedirectPath + "item/" + lstWishItem[i].SKU + pageExtension + "?varId=" + lstWishItem[i].CostVariantValueIDs; } if (i % 2 == 0) { recentWishList.Append("<tr class=\"sfEven\" id=\"trWishItem_" + lstWishItem[i].ItemID + "\"><td class=\"cssClassWishItemDetails\">"); if (ShowWishedItemImage.ToLower() == "true") { recentWishList.Append("<a href =\"" + href + "\">"); recentWishList.Append("<div class=\"cssClassImage\"><img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + lstWishItem[i].AlternateText + "\" title=\"" + lstWishItem[i].AlternateText + "\"/></div></a>"); } if (lstWishItem[i].ItemCostVariantValue != "") { recentWishList.Append("<a href=\"" + href + "\">" + lstWishItem[i].ItemName + "(" + lstWishItem[i].ItemCostVariantValue + ")" + "</a>"); recentWishList.Append("</br><span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(lstWishItem[i].Price) * rate, 2) + "</span></td>"); recentWishList.Append("<td class=\"cssClassDelete\">"); recentWishList.Append( "<img onclick=\"WishItems.DeleteWishListItem(" + lstWishItem[i].WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); recentWishList.Append("</td></tr>"); } else { recentWishList.Append("<a href=\"" + href + "\">" + lstWishItem[i].ItemName + "</a>"); recentWishList.Append("</br><span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(lstWishItem[i].Price) * rate, 2) + "</span></td>"); recentWishList.Append("<td class=\"cssClassDelete\">"); recentWishList.Append( "<img onclick=\"WishItems.DeleteWishListItem(" + lstWishItem[i].WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); recentWishList.Append("</td></tr>"); } } else { recentWishList.Append("<tr class=\"sfOdd\" id=\"trWishItem_" + lstWishItem[i].ItemID + "\"><td class=\"cssClassWishItemDetails\">"); if (ShowWishedItemImage.ToLower() == "true") { recentWishList.Append("<a href =\"" + href + "\">"); recentWishList.Append("<div class=\"cssClassImage\"><img src=\"" + aspxRootPath + imagePath.Replace("uploads", "uploads/Small") + "\" alt=\"" + lstWishItem[i].AlternateText + "\" title=\"" + lstWishItem[i].AlternateText + "\"/></div></a>"); } if (lstWishItem[i].ItemCostVariantValue != "") { recentWishList.Append("<a href=\"" + href + "\">" + lstWishItem[i].ItemName + "(" + lstWishItem[i].ItemCostVariantValue + ")" + "</a>"); recentWishList.Append("</br><span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(lstWishItem[i].Price) * rate, 2) + "</span></td>"); recentWishList.Append("<td class=\"cssClassDelete\">"); recentWishList.Append( "<img onclick=\"WishItems.DeleteWishListItem(" + lstWishItem[i].WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); recentWishList.Append("</td></tr>"); } else { recentWishList.Append("<a href=\"" + href + "\">" + lstWishItem[i].ItemName + "</a>"); recentWishList.Append("</br><span class=\"cssClassPrice cssClassFormatCurrency\">" + Math.Round(decimal.Parse(lstWishItem[i].Price) * rate, 2) + "</span></td>"); recentWishList.Append("<td class=\"cssClassDelete\">"); recentWishList.Append( "<img onclick=\"WishItems.DeleteWishListItem(" + lstWishItem[i].WishItemID + ")\" src=\"" + aspxTemplateFolderPath + "/images/admin/btndelete.png\"/>"); recentWishList.Append("</td></tr>"); } } } recentWishList.Append("</tbody>"); recentWishList.Append("</table>"); recentWishList.Append("<div class=\"cssClassWishLink\">"); recentWishList.Append("<a href=\"" + aspxRedirectPath + myWishListLink + "\" id=\"lnkGoToWishlist\">"); recentWishList.Append("<span class=\"gowishlist\">" + getLocale("Go to Wishlist") + "</span></a>"); recentWishList.Append("</div></div>"); } else { recentWishList.Append("<tbody>"); recentWishList.Append("<tr><td><span class=\"cssClassNotFound\">" + getLocale("Your Wishlist is empty!") + "</span></td></tr>"); recentWishList.Append("</tbody>"); recentWishList.Append("</table></div>"); } ltrWishItem.Text = recentWishList.ToString(); }