public ResponsiveConfirmation_GiftingProducts ( OrderVariables oVars, bool option = false, string template = "", bool isTableStripped = true ) : string | ||
oVars | OrderVariables | |
option | bool | |
template | string | |
isTableStripped | bool | |
리턴 | string |
public ActionResult Confirmation() { OrderVariables oVariables = new OrderVariables(); OrderProcess oProcess = new OrderProcess(); CommonModels oComm = new CommonModels(); string template = ""; string shipall = ""; string orderSummary = ""; string shipping_address = ""; string billing_address = ""; try { if (Session["NewOrderDetails"] != null) { oVariables = new OrderVariables(); oVariables = Session["NewOrderDetails"] as OrderVariables; if (oVariables != null) { ViewBag.fireFaceBookConfirmationPixel = (Session["fireFaceBookConfirmationPixel"] == null || (Session["fireFaceBookConfirmationPixel"] != null && Session["fireFaceBookConfirmationPixel"].ToString() == "true")) ? true : false; ViewBag.fireFaceBookUpsell2Pixel = (Session["fireFaceBookUpsell2Pixel"] != null && Session["fireFaceBookUpsell2Pixel"].ToString() == "true") ? true : false; ViewBag.fireFaceBookUpsell1Pixel = (Session["fireFaceBookUpsell1Pixel"] != null && Session["fireFaceBookUpsell1Pixel"].ToString() == "true") ? true : false; shipall = (string)Request.QueryString["shipall"] ?? "false"; ViewBag.product = oVariables.proj_desc; ViewBag.special_text = oVariables.special_text; ViewBag.order_id = oVariables.order_id.ToString(); ViewBag.amt = oVariables.total_amt.ToString(); ViewBag.Project = oVariables.project; string CCNumber = oVariables.CCVars[0] != null ? oVariables.CCVars[0].number : ""; ViewBag.CreditCardNumber = EncryptCreditCard(CCNumber); string ccExpiryDate = oVariables.CCVars[0] != null ? oVariables.CCVars[0].expdate : ""; ViewBag.CardExpiry = FormatCCExpiryDate(ccExpiryDate); shipping_address = oComm.Confirmation_ShippingAddress(oVariables); ViewBag.ShippingAddress = shipping_address; billing_address = oComm.Confirmation_BillingAddress(oVariables, template); ViewBag.BillingAddress = billing_address; orderSummary = oComm.ResponsiveConfirmation_GiftingProducts(oVariables); ViewBag.Cart = orderSummary; string email = oVariables.email.ToString(); ViewBag.email = email; if (!string.IsNullOrEmpty(email)) { //ProcessConfirmationEmail(oVariables, shipping_address, billing_address, shipall); //NewConfirmationEmailtoExpertSender(oVariables, shipping_address, billing_address, shipall); BuildDynamicPixel(oVariables); //internalPixel = "<img src='https://ping.earlymoments.com/conversion.ashx?o=" + oVariables.order_id + "&e=" + oVariables.email + "' width='1' height='1' border='0' /><iframe src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=ifr' height='1' width='1' frameborder='0'></iframe><br /><img src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=img' width='1' height='1' border='0' />"; //internalPixel = "<iframe src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=ifr' height='1' width='1' frameborder='0'></iframe><br /><img src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=img' width='1' height='1' border='0' />"; //Session["IsPostBack"] = true; //if (!oVariables.vendor_id.Contains("QIN") && !oVariables.vendor_id.Contains("FLT")) if (oVariables.hasOfferVid == 0) { FirePostBackPixel(oVariables); } } //string[] campaignId = ConfigurationManager.AppSettings["CampaignId"] != null ? ConfigurationManager.AppSettings["CampaignId"].ToString().Split(',') : null; //if (campaignId != null && campaignId.Contains(oVariables.campaign_id)) // ConfirmAddressDetails(oVariables.ShipVars, oVariables.order_id); } } return View(); } catch (Exception ex) { oComm.SendEmail("Page_Load() <br />Exception Raised from Confirmaiton Page in EM Landers. Exception: " + ex.Message.ToString() + ".<br />More Data (Offer URL): " + oVariables.referring_url + ". <br />More Data (Order Id):" + oVariables.order_id); return View(); } finally { Session["NewOrderDetails"] = null; Session["fireFaceBookUpsell2Pixel"] = null; Session["fireFaceBookConfirmationPixel"] = null; Session["fireFaceBookPixel"] = null; oVariables = null; oComm = null; oProcess = null; } }
public ActionResult Confirmation() { OrderVariables oVariables = new OrderVariables(); OrderProcess oProcess = new OrderProcess(); CommonModels oComm = new CommonModels(); string template = ""; string shipall = ""; string orderSummary = ""; string shipping_address = ""; string billing_address = ""; try { if (Session["NewOrderDetails"] != null) { oVariables = new OrderVariables(); oVariables = Session["NewOrderDetails"] as OrderVariables; if (oVariables != null) { shipall = ((string)Request.QueryString["shipall"] != null) ? (string)Request.QueryString["shipall"] : "false"; ViewBag.product = oVariables.proj_desc; ViewBag.special_text = oVariables.special_text; ViewBag.order_id = oVariables.order_id.ToString(); ViewBag.amt = oVariables.total_amt.ToString(); ViewBag.Project = oVariables.project; string CCNumber = oVariables.CCVars[0] != null ? oVariables.CCVars[0].number : ""; ViewBag.CreditCardNumber = EncryptCreditCard(CCNumber); string ccExpiryDate = oVariables.CCVars[0] != null ? oVariables.CCVars[0].expdate : ""; ViewBag.CardExpiry = FormatCCExpiryDate(ccExpiryDate); shipping_address = oComm.Confirmation_ShippingAddress(oVariables); ViewBag.ShippingAddress = shipping_address; billing_address = oComm.Confirmation_BillingAddress(oVariables, template); ViewBag.BillingAddress = billing_address; orderSummary = oComm.ResponsiveConfirmation_GiftingProducts(oVariables); ViewBag.Cart = orderSummary; string email = oVariables.email.ToString(); ViewBag.email = email; if (!string.IsNullOrEmpty(email)) { ProcessConfirmationEmail(oVariables, shipping_address, billing_address, shipall); BuildDynamicPixel(oVariables); //internalPixel = "<img src='https://ping.earlymoments.com/conversion.ashx?o=" + oVariables.order_id + "&e=" + oVariables.email + "' width='1' height='1' border='0' /><iframe src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=ifr' height='1' width='1' frameborder='0'></iframe><br /><img src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=img' width='1' height='1' border='0' />"; //internalPixel = "<iframe src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=ifr' height='1' width='1' frameborder='0'></iframe><br /><img src='https://services.earlymoments.com/ping/p.ashx?source=7630&brand=e&data=" + oVariables.order_id.ToString() + "&type=img' width='1' height='1' border='0' />"; //Session["IsPostBack"] = true; FirePostBackPixel(oVariables); } } } return View(); } catch (Exception ex) { oComm.SendEmail("Page_Load() <br />Exception Raised from Confirmaiton Page in EM Landers. Exception: " + ex.Message.ToString() + ".<br />More Data (Offer URL): " + oVariables.referring_url + ". <br />More Data (Order Id):" + oVariables.order_id); return View(); } finally { Session["NewOrderDetails"] = null; oVariables = null; oComm = null; oProcess = null; } }