Dynamicweb 8 Documentation
StockStatus Property
Example 

Gets the stock status.
Syntax
'Declaration
 
Public ReadOnly Property StockStatus( _ 
   ByVal LanguageID As String _ 
) As StockStatus
public StockStatus StockStatus( 
   string LanguageID 
) {get;}

Parameters

LanguageID
Example
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
                });
       }
   }
}
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