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
danny jones said ...
Hi... I am inexperiance to build up ECommenrce type sites.I have a little bits knowladge ...
molakaj said ...
What a great approach to the subject, I was looking for. Thanks for these tips http://www ...
jane said ...
Thank you for this useful information.
furnace parts said ...
Congrats on V4.0.....It is so easy to use  
Travis said ...
I just bought DSC Suite V4.5 and it is more solid then ever. I hope I am #1 buyer of this ...