Example #1
0
        public override string GetTemplate(NBrightInfo cartInfo)
        {
            var info  = ProviderUtils.GetProviderSettings("manualpayment");
            var templ = ProviderUtils.GetTemplateData(info.GetXmlProperty("genxml/textbox/checkouttemplate"), info);

            return(templ);
        }
Example #2
0
        public override string GetTemplate(NBrightInfo cartInfo)
        {
            var templ        = "";
            var info         = ProviderUtils.GetProviderSettings("manualpayment");
            var templateName = info.GetXmlProperty("genxml/textbox/checkouttemplate");

            if (templateName.EndsWith(".html"))
            {
                templ = ProviderUtils.GetTemplateData(templateName, info);
            }
            else
            {
                templ = NBrightBuyUtils.RazorTemplRender(templateName, 0, "", info, "/DesktopModules/NBright/NBrightBuy/Providers/ManualPaymentProvider", "config", Utils.GetCurrentCulture(), StoreSettings.Current.Settings());
            }

            return(templ);
        }
Example #3
0
        override protected void OnInit(EventArgs e)
        {
            base.OnInit(e);

            try
            {
                _ctrlkey = "tax";
                _info    = ProviderUtils.GetProviderSettings(_ctrlkey);
                var rpDataHTempl = ProviderUtils.GetTemplateData("settings.html");
                rpDataH.ItemTemplate = NBrightBuyUtils.GetGenXmlTemplate(rpDataHTempl, StoreSettings.Current.Settings(), PortalSettings.HomeDirectory);
            }
            catch (Exception exc)
            {
                //display the error on the template (don;t want to log it here, prefer to deal with errors directly.)
                var l = new Literal();
                l.Text = exc.ToString();
                Controls.Add(l);
            }
        }