Dynamicweb.eCommerce.Discounts Namespace : Discount Class |
'Declaration
<SerializableAttribute()> Public NotInheritable Class Discount Implements Dynamicweb.eCommerce.Prices.IWithPrice
[SerializableAttribute()] public sealed class Discount : Dynamicweb.eCommerce.Prices.IWithPrice
class MyPage : System.Web.UI.Page { public void RenderDicountLoop(Dynamicweb.Rendering.Template template, Product product) { if (template.LoopExists("ProductDiscounts")) { Dynamicweb.Rendering.Template discountTemplate = template.GetLoop("ProductDiscounts"); foreach (Dynamicweb.eCommerce.Discounts.Discount d in product.Discounts) { Dynamicweb.eCommerce.Discounts.Discount discount = d; Dynamicweb.eCommerce.Discounts.Discount.RenderDiscount(ref discount, ref discountTemplate); discountTemplate.CommitLoop(); } } } }
System.Object
Dynamicweb.eCommerce.Discounts.Discount
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2