I'm making a product list, where I would like to add some extra elements, depending on the values of the product. For example, if a product is discounted or new to the stock, a teaserbox should display to grab the attention of the user. We have some custom checkbox fields, that return a boolean for these cases.
Now, this works exactly as expected, as long as I have a DwTemplateTags on the page. If I remove that, the if statements are skipped!
I figured it might have something to do with the custom fields, so I tried using the standard price tags and compared those (e.g.
Any ideas?
<!--@LoopStart(Products)--> <div>This div and all tags inside it show perfectly</div> <!--@If(Ecom:Product:Field.IsNew.Value=True)--> <div>New!</div> <!--@EndIf--> <!--@DwTemplateTags--> <!--@LoopEnd(Products)-->