Skip Navigation LinksHome > DotShoppingCart Blog
DotShoppingCart Blog
New features in V2.2

In the new version 2.2 we added new features such as page group, SEO improvement, multi select product attribute, digital downloads, user referrers and two new server blocks: download button and content group list.

Forums module is ready

Forums module has been created on top of DotShoppingCart CMS platform. Our DotShoppingCart Forums have also been migrated to the new Forums module.

Add a custom ASP.NET UserControl into the DotShoppingCart page

DotShoppingCart CMS page is comprised by the server blocks, which are the pre-built server side controls. The out of box software comes with a handful of common blocks. The article is going to talk about creating your own server block.

1) Create the Standard ASP.NET stardard User Control and derive it from DotShoppingCart.OpenSource.Core.BlockUserControl

In the Page_Load method add the following code.

 public partial class YourCustomControls : BlockUserControl {
    protected void Page_Load(object sender, EventArgs e) {
        EnableViewState = WebUtils.IsPageEditorEnable();
        editor.BlockUserControl = this;
        if (ShowEditor) {
            pnlBlockContent.CssClass = "BlockEditPanel";
            editor.BlockTitle = string.Format("Your Custom Control {0}", BlockId);
        }
    }
}

In the ascx file add the following code.

 <%@ Register tagprefix="dsc" tagname="BlockEditor" src="/Controls/Blocks/BlockEditor.ascx" %>

 <dsc:BlockEditor id="editor" runat="server" />
<asp:Panel id="pnlBlockContent" runat="server">
    <%-- Place your control content here --%>
</asp:Panel>

A simple example is to check web\controls\blocks\Search.ascx and Search.ascx.cx files.

2) Hook up the new block in DB

Insert a new entry to dbo.DSC_Block_Type_lkp table e.g. INSERT INTO DSC_Block_Type_lkp (type, virtualPath) VALUES ('My Block', '/Controls/Blocks/MyBlock.ascx')

Insert a new entry to dbo.DSC_Block_Type_Group_Block_Type_Map

OpenSource Edition V2 is released.

Download from here. Check out the V2 new features.

Customize Checkout Page

I had many people asking how to add return policy or other information to the checkout page. Here is the video shows how to do it.

Page Editor Demo Video

Page editor is the new feature to V2. It enables you to customize the look and feel of every single page of your site. View Demo

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);

    }

 

We have added "Add an Article" demo video

Click to see how easy you can create a post via our CMS implementation.

Customize Category List Block
Default Category List Block The default implementation of category list block is giving your store shopper the smart product navigation. When shopper selects a category, the category opens up its sub categories and usefully links like narrow by price ranges or narrow by manufacturers etc. The remaining top level categories move to the bottom.

In this article I show you one way of customizing your own category list block. One of our customers wanted to show the top level categories initially. When shopper clicks one top level category, its sub categories expand. Click the same category again to collapse the sub categories. Here is the code archiving this.

You can download the full code from here.

DotShoppingCart Install Guide Video

An install guide video has been uploaded to our server. Watch to see how easy it can be set up.

Page 1 of 3 (26 records) << First < Prev 1 2 3 Next > Last >>