Dynamicweb 8 Documentation
PreparePrices(ProductCollection) Method
Example 

The products.
Prepares the prices.
Syntax
'Declaration
 
Public Overloads Shared Sub PreparePrices( _ 
   ByVal Products As ProductCollection _ 
) 
public static void PreparePrices( 
   ProductCollection Products 
)

Parameters

Products
The products.
Example
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
    }
}
Requirements

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

See Also

Reference

PriceManager Class
PriceManager Members
Overload List

Send Feedback