Beispiel #1
0
 /// <summary>
 /// Updates the inventory mode of this product
 /// </summary>
 public void UpdateInventoryMode()
 {
     if (this.InventoryMode == InventoryMode.Variant)
     {
         ProductVariantManager vm = new ProductVariantManager(this.ProductId);
         if (vm.Count == 0)
         {
             ProductDataSource.UpdateInventoryMode(this.ProductId, InventoryMode.None);
             _InventoryModeId = (byte)InventoryMode.None;
         }
     }
 }