Dynamicweb.eCommerce.Products Namespace > Product Class : StockStatus Property |
'Declaration
Public ReadOnly Property StockStatus( _ ByVal LanguageID As String _ ) As StockStatus
public StockStatus StockStatus( string LanguageID ) {get;}
class MyPage : System.Web.UI.Page { public void Notify(Product prod, string prodId, string variantId) { StockStatus OldStockStatus = prod.StockStatus; Product px = new Product(prodId, variantId); StockStatus NewStockStatus = px.StockStatus; if (NewStockStatus.ID != OldStockStatus.ID) { NotificationManager.Notify(Dynamicweb.Notifications.eCommerce.Stock.StatusChanged, new object[] { px, OldStockStatus, NewStockStatus }); } } }
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