Dynamicweb 8 Documentation
UpdatePriceCount Method
Example 

The product.
The price counter.
Updates the price counter.
Syntax
'Declaration
 
Public Shared Function UpdatePriceCount( _ 
   ByVal product As Product, _ 
   ByVal priceCount As Integer _ 
) As Integer
public static int UpdatePriceCount( 
   Product product,
   int priceCount 
)

Parameters

product
The product.
priceCount
The price counter.
Example
class MyPage : System.Web.UI.Page
{
   public void StockForUnits(Product prod)
   {
       if (Request["saveUnit"] == "1")
       {
           Dynamicweb.eCommerce.Prices.PriceCollection price = Dynamicweb.eCommerce.Prices.Price.getPrices(prod.ID);
           Product.UpdatePriceCount(prod, price.Count);
       }
   }
}
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

Product Class
Product Members

Send Feedback