Dynamicweb 8 Documentation
LoadPricesOnProducts Method
Example 

The products.
Loads the prices on products.
Syntax
'Declaration
 
Public Shared Sub LoadPricesOnProducts( _ 
   ByVal Products As ProductCollection _ 
) 
public static void LoadPricesOnProducts( 
   ProductCollection Products 
)

Parameters

Products
The products.
Example
class MyPage : System.Web.UI.Page
{
    public void CachePrices()
    {
        Dynamicweb.eCommerce.Products.ProductCollection col = Product.getActiveProducts();
        //Cache prices from all the products
        Dynamicweb.eCommerce.Prices.Price.LoadPricesOnProducts(col);
    }
}
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

Price Class
Price Members

Send Feedback