Close

Profile: ehubcap

Avatar

User posts

7 years ago

Hi Mladen, I had to take some time off due to a emergency situation.
Back to the custom tab, Is there any development paid service that you or some other developer at NopTemplates want to offer to help me with this?
I need this done to have my traction website fully operational, I feel that I'm trailblazing on this specific category so any help will be beneficial for the improvement of NopTemplatse themes.
advise on how much it will cost  and i will be providing the funds right away
Thank you
Jose Plunkett

8 years ago

Hi Mladen thank you for responding
I would like to have more explicit follow thru, a concise example will help a lot, could you do that for me and others?
I tried but quick tab documentation isn't helping much
Thank you again
Jose Plunkett
ehubcap

Hi support, I would like to place a quick tab widget on my home page at https://www.ehubcap.net similar to the one in this site seen here
http://www.carid.com/
The issue is twofold because I would also like to include the "Search by Part # (SKU)" as well.
I know that the Instant search plugin have it included by default, however I want to strip the code in the InstantSearch.cshtml view to just display the Search by Part # (SKU) text
Can this customization be accomplished?
Any head up will be appreciated
Thank you
ehubcap.com

8 years ago

Hi support, I would like to place a quick tab widget on my home page at https://www.ehubcap.net similar to the one in this site seen here
http://www.carid.com/
The issue is twofold because I would also like to include the "Search by Part # (SKU)" as well.
I know that the Instant search plugin have it included by default, however I want to strip the code in the InstantSearch.cshtml view to just display the Search by Part # (SKU) text
Can this customization be accomplished?
Any head up will be appreciated
Thank you
ehubcap.com

8 years ago

Hi Boyko,thank you for you help, I'm still checking things out and ironing a few detail before I can post my experiences with NopCommerce-NopTemplates plugins integration with Azure web apps to serve my static and dynamic web files securely (HTTPS) from the edge endpoints... 

8 years ago

Hi Support, I have my static content served from Azureedge endpoints, staging site is running fine however when I try to upload images it didn't execute as expected
So far I tried to upload:
 A PDF log image out PDF  setting => not working
 A company logo from Traction Theme setting => not working
 A product image for a new created product => not working
My whole site is running on https protocol https://staging.ehubcap.net/
Can I get help figuring out what the issue is?
Thank you
ehubcap

Hi Iliyan, it seem to work, however a couple issues arise:
1)-The admin page break complete (styling and scripts)
20- The versioning query string doesn't seem work either, I get from page source


<link href="https://myCDN.windows.net/bundles/styles/pmet69fxn8uqvfct5jtzzbz-8thdegvuklyiwhwxqz81" rel="stylesheet"/>

not versioning query string as you see 

The site is being developed locally in debug mode so the bundling only apply to the release thru a config transform (flag <compilation xdt:Transform="RemoveAttributes(debug)" />)
when publishing to Azure 
The public class BundleConfig was an attempt to register the bundles in Globalasax.cs that I later deleted
I was trying to check all the possible options with this 


        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("favicon.ico");
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            
            //register custom routes (plugins, etc)
            var routePublisher = EngineContext.Current.Resolve<IRoutePublisher>();
            routePublisher.RegisterRoutes(routes);
            
            routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                new[] { "Nop.Web.Controllers" }
            );
        }
        //public class BundleConfig
        //{
        //    public static void RegisterBundles(BundleCollection bundles)
        //    {
        //        BundleTable.EnableOptimizations = true;
        //        bundles.UseCdn = true;
        //    }
        //}




        protected void Application_Start()
        {
            //disable "X-AspNetMvc-Version" header name
            MvcHandler.DisableMvcResponseHeader = true;




            //initialize engine context
            EngineContext.Initialize(false);


            bool databaseInstalled = DataSettingsHelper.DatabaseIsInstalled();
            if (databaseInstalled)
            {
                //remove all view engines
                ViewEngines.Engines.Clear();
                //except the themeable razor view engine we use
                ViewEngines.Engines.Add(new ThemeableRazorViewEngine());
            }




            //Add some functionality on top of the default ModelMetadataProvider
            ModelMetadataProviders.Current = new NopMetadataProvider();




            //Registering some regular mvc stuff
            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);
            //BundleConfig.RegisterBundles(BundleTable.Bundles);

This override code doesn't work either


                  string bundleVirtualPath = GetBundleVirtualPath("~/bundles/styles/", ".css", partsToBundle);
                    //create bundle
                    lock (s_lock)
                    {                   
                        var bundleFor = BundleTable.Bundles.GetBundleFor(bundleVirtualPath);
                        //var bundleCdnPath = "//cdn4-st1.azureedge.net/bundles/styles/";
                        if (bundleFor == null)
                        {
                            var bundle = new StyleBundle(bundleVirtualPath, "https//cdn4-st1.azureedge.net");
                            //bundle.Transforms.Clear();




                            //"As is" ordering
                            bundle.Orderer = new AsIsBundleOrderer();
                            //disable file extension replacements. renders scripts which were specified by a developer
                            bundle.EnableFileExtensionReplacements = false;
                            foreach (var ptb in partsToBundle)
                            {
                                bundle.Include(ptb, GetCssTranform());
                            }
                            BundleTable.Bundles.Add(bundle);
                            BundleTable.Bundles.UseCdn = true;
                        }
                    }


                    //parts to bundle
                    result.AppendLine(Styles.Render("bundleVirtualPath", "https//cdn4-st1.azureedge.net").ToString());
                }


                return result.ToString();
            }


Question: Which is the correct override way to configure ASP.Net MVC bundleConfig class to bundles from Azure CDN?