Dynamicweb.eCommerce.Products Namespace > Product Class : UpdatePriceCount Method |
'Declaration
Public Shared Function UpdatePriceCount( _ ByVal product As Product, _ ByVal priceCount As Integer _ ) As Integer
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); } } }
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