When is it supposed to be called? I assumed it is called each time a product list is generated when a user want to show it. (I created a page, added a paragraph, added the module 'Product Catalog (eCom)'.)
The listing show up alright, except my code is never called.
[Dynamicweb.Extensibility.Subscribe(eCommerce.ProductList.BeforeSort)] class ProductListingModifier : ProductListTemplateExtender { public override void ExtendTemplate(Dynamicweb.Templatev2.Template template) { // Tag is not defined upon page load! template.SetTag("HMAM", "Rules"); } }
Thank's for any help!