Dynamicweb.eCommerce.Discounts Namespace : Discounts Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public NotInheritable Class Discounts Inherits System.Collections.ObjectModel.Collection(Of Discount) Implements Dynamicweb.eCommerce.Prices.IWithPrice
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public sealed class Discounts : System.Collections.ObjectModel.Collection<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
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Discounts.Discounts
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