Dynamicweb.eCommerce.Prices Namespace > PriceManager Class > PreparePrices Method : PreparePrices(ProductCollection) Method |
'Declaration
Public Overloads Shared Sub PreparePrices( _ ByVal Products As ProductCollection _ )
public static void PreparePrices( ProductCollection Products )
class MyPage : System.Web.UI.Page { public void RenderProducts(ProductCollection products) { //Prepare prices foreach (Product prod in products) { if (!prod.IsPriceCached()) { Dynamicweb.eCommerce.Prices.PriceManager.PreparePrices(products); break; } } Render(products); } private void Render(ProductCollection products) { //TODO: insert your code here } }
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