using Dynamicweb; using Dynamicweb.Extensibility; using Dynamicweb.eCommerce; using Dynamicweb.eCommerce.Products; using Dynamicweb.Templatev2; [Subscribe(Dynamicweb.Notifications.eCommerce.ProductList.BeforePaging)] class NevotexProductListNotificationSubscriber : Dynamicweb.Extensibility.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args) { //TODO: Insert code logic here Dynamicweb.Notifications.eCommerce.ProductList.BeforePagingArgs fargs = (Dynamicweb.Notifications.eCommerce.ProductList.BeforePagingArgs)args; if (fargs.Products.Count>0) fargs.Products.RemoveAt(0); } }
Also, when I put a breakpoint inside the OnNotify override in an otherwise setup for debugging solution, it is never hit. (The circle icon of the breakpoint is whole though, it is not hollow as it is when the code it is put on is not loaded.)
What can be problem?