string GetHtml()
    {
        string fullUserName = user.FirstName + " " + user.SecondName;

        if (string.IsNullOrEmpty(fullUserName))
        {
            fullUserName = user.Name;
        }

        string htmlFromFile = File.ReadAllText(HttpContext.Current.Request.MapPath(templateLocation));
        string htmlString   = htmlFromFile
                              .Replace("[SITE_LOGO]", AppSettings.Site.LogoImageURL)
                              .Replace("[SHOW_SITE_NAME]", AppSettings.Site.ShowSiteName ? "inline" : "none")
                              .Replace("[SITE_NAME]", AppSettings.Site.Name)
                              .Replace("[NAME_ADDRESS]", AppSettings.Payments.YourInvoiceName)
                              .Replace("[SITE_URL]", AppSettings.Site.Url)
                              .Replace("[RESX_INVOICE]", TitanFeatures.isAri ? U6005.INVOICE : U6005.RECEIPT)
                              .Replace("[RESX_DATE]", L1.DATE)
                              .Replace("[ITEM_DATE]", item.DateAdded.ToShortDateString())
                              .Replace("[ITEM_ID]", item.Id.ToString())
                              .Replace("[RESX_CUSTOMERID]", U6005.CUSTOMERID)
                              .Replace("[USER_ID]", user.Id.ToString())
                              .Replace("[RESX_BILLTO]", U6005.BILLTO)
                              .Replace("[USER_FULLNAME]", fullUserName)
                              .Replace("[USER_EMAIL]", user.Email)
                              .Replace("[USER_MEMBERSHIP]", user.MembershipName)
                              .Replace("[USER_COUNTRY]", user.Country)
                              .Replace("[RESX_DESCRIPTION]", L1.DESCRIPTION)
                              .Replace("[RESX_QUANTITY]", U6005.QUANTITY)
                              .Replace("[RESX_UNITPRICE]", U5006.UNITPRICE)
                              .Replace("[RESX_TAX]", U6005.TAX)
                              .Replace("[RESX_TOTAL]", U5001.TOTAL)
                              .Replace("[ITEM_DESCRIPTION]", item.Description)
                              .Replace("[ITEM_QUANTITY]", item.Quantity.ToString())
                              .Replace("[ITEM_UNITPRICE]", item.UnitPrice.ToString())
                              .Replace("[ITEM_TAX]", item.Tax.ToString())
                              .Replace("[ITEM_TOTALVALUE]", item.GetTotalValue().ToString())
                              .Replace("[ADMIN_EMAIL]", AppSettings.Email.Forward);

        return(htmlString);
    }