an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Blog > OpenSource Edition
OpenSource Edition
OpenSource Edition V2 is released.

Download from here. Check out the V2 new features.

How do category counters get updated automatically?

In Global.asax, the following code starts the orderpipeline when application starts.

    void Application_Start(object sender, EventArgs e) {
        OrderPipelineController.Start();
    }

It would load DataRefresh task defined in your web.config.

 

    <taskConfiguration defaultProvider="">

        <providers>

            <add name="DataRefresh" type="DotShoppingCart.OpenSource.OrderPipeline.DataRefreshTaskProvider, DotShoppingCart.OpenSource.OrderPipeline" />

        </providers>

    </taskConfiguration>

 

 

DataRefresh would update your category  counter every 2 hours.

 

    protected override void RunTask(string host, IConfigurationSource cfgSrc) {

        Category.UpdateProductCount(host);

    }

 

Recent Comments
lukezy said ...
Did you do #1 first to allow restrictedChars first?
Dissertations said ...
the ampersand in the latter will generate a “400 Bad Request” response with the def ...
Gus said ...
Need the multiple store I think its really important to be able to do that.   need as wel ...
Bahram said ...
 This feature is fancy and less actual use. Instead you must put your effort to efficiency ...
lukezy said ...
Please check our roadmap.