There was an
old blog entry talking about adding custom ASP.Net user control to DotShoppingCart. From DotShoppingCart V2.5 the page editor has been rewritten by using JQuery. As the result the way to integrate the custom ASP.NET user control is simplified.
1) Create a Standard ASP.NET stardard User Control and derive it from BlockUserControl
Check "Web/View/Blocks/TagCloud.ascx.cs" for the example.
using DotShoppingCart.Commercial.Core;
public partial class View_Blocks_TagCloud : BlockUserControl {
2) Hook up the new block type in DB
a) 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')
b) Insert a new entry to dbo.DSC_Block_Type_Group_Block_Type_Map
e.g. INSERT INTO DSC_Block_Type_Group_Block_Type_Map (BlockTypeGroupId, BlockTypeId, SortOrder) VALUES (3, <id that is created in step a>, 10)
To add your custom user control to page, just enable page edior and click "+" sign. Find the custom block in the proper group (which you add in the step b above).