().First(c => c.Alias == "Gift Cards");
-
- #region product10GiftCard
-
- var product10GiftCard = new Product
- {
- ProductType = ProductType.SimpleProduct,
- VisibleIndividually = true,
- Name = "$10 Virtual Gift Card",
- IsEsd = true,
- ShortDescription = "$10 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
- FullDescription = "Gift Cards must be redeemed through our site Web site toward the purchase of eligible products. Purchases are deducted from the GiftCard balance. Any unused balance will be placed in the recipient's GiftCard account when redeemed. If an order exceeds the amount of the GiftCard, the balance must be paid with a credit card or other available payment method.
",
- Sku = "P-1000",
- ProductTemplateId = productTemplate.Id,
- AllowCustomerReviews = true,
- Published = true,
- MetaTitle = "$10 Virtual Gift Card",
- Price = 10M,
- IsGiftCard = true,
- ManageInventoryMethod = ManageInventoryMethod.DontManageStock,
- OrderMinimumQuantity = 1,
- OrderMaximumQuantity = 10000,
- StockQuantity = 10000,
- NotifyAdminForQuantityBelow = 1,
- AllowBackInStockSubscriptions = false,
- DisplayOrder = 1
- };
-
- AddProductPicture(product10GiftCard, "product_gift_card_10.png");
- product10GiftCard.ProductCategories.Add(new ProductCategory { Category = categoryGiftCards, DisplayOrder = 1 });
-
- #endregion product10GiftCard
-
- #region product25GiftCard
-
- var product25GiftCard = new Product
- {
- ProductType = ProductType.SimpleProduct,
- VisibleIndividually = true,
- Name = "$25 Virtual Gift Card",
- IsEsd = true,
- ShortDescription = "$25 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
- FullDescription = "Gift Cards must be redeemed through our site Web site toward the purchase of eligible products. Purchases are deducted from the GiftCard balance. Any unused balance will be placed in the recipient's GiftCard account when redeemed. If an order exceeds the amount of the GiftCard, the balance must be paid with a credit card or other available payment method.
",
- Sku = "P-1001",
- ProductTemplateId = productTemplate.Id,
- AllowCustomerReviews = true,
- Published = true,
- MetaTitle = "$25 Virtual Gift Card",
- Price = 25M,
- IsGiftCard = true,
- GiftCardType = GiftCardType.Virtual,
- ManageInventoryMethod = ManageInventoryMethod.DontManageStock,
- OrderMinimumQuantity = 1,
- OrderMaximumQuantity = 10000,
- StockQuantity = 10000,
- NotifyAdminForQuantityBelow = 1,
- AllowBackInStockSubscriptions = false,
- DisplayOrder = 2
- };
-
- AddProductPicture(product25GiftCard, "product_gift_card_25.png");
- product25GiftCard.ProductCategories.Add(new ProductCategory { Category = categoryGiftCards, DisplayOrder = 1 });
-
- #endregion product25GiftCard
-
- #region product50GiftCard
-
- var product50GiftCard = new Product
- {
- ProductType = ProductType.SimpleProduct,
- VisibleIndividually = true,
- Name = "$50 Virtual Gift Card",
- IsEsd = true,
- ShortDescription = "$50 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
- FullDescription = "Gift Cards must be redeemed through our site Web site toward the purchase of eligible products. Purchases are deducted from the GiftCard balance. Any unused balance will be placed in the recipient's GiftCard account when redeemed. If an order exceeds the amount of the GiftCard, the balance must be paid with a credit card or other available payment method.
",
- Sku = "P-1002",
- ProductTemplateId = productTemplate.Id,
- AllowCustomerReviews = true,
- Published = true,
- MetaTitle = "$50 Virtual Gift Card",
- Price = 50M,
- IsGiftCard = true,
- GiftCardType = GiftCardType.Virtual,
- ManageInventoryMethod = ManageInventoryMethod.DontManageStock,
- OrderMinimumQuantity = 1,
- OrderMaximumQuantity = 10000,
- StockQuantity = 10000,
- NotifyAdminForQuantityBelow = 1,
- AllowBackInStockSubscriptions = false,
- DisplayOrder = 3
- };
-
- AddProductPicture(product50GiftCard, "product_gift_card_50.png");
- product50GiftCard.ProductCategories.Add(new ProductCategory { Category = categoryGiftCards, DisplayOrder = 1 });
-
- #endregion product50GiftCard
-
- #region product100GiftCard
+ #region product10GiftCard
- var product100GiftCard = new Product
+ var product10GiftCard = new Product
{
ProductType = ProductType.SimpleProduct,
VisibleIndividually = true,
- Name = "$100 Virtual Gift Card",
+ Name = "$10 Virtual Gift Card",
IsEsd = true,
- ShortDescription = "$100 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
+ ShortDescription = "$10 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
FullDescription = "Gift Cards must be redeemed through our site Web site toward the purchase of eligible products. Purchases are deducted from the GiftCard balance. Any unused balance will be placed in the recipient's GiftCard account when redeemed. If an order exceeds the amount of the GiftCard, the balance must be paid with a credit card or other available payment method.
",
- Sku = "P-10033",
+ Sku = "P-1000",
ProductTemplateId = productTemplate.Id,
AllowCustomerReviews = true,
Published = true,
- MetaTitle = "$100 Virtual Gift Card",
- Price = 100M,
+ MetaTitle = "$10 Virtual Gift Card",
+ Price = 10M,
IsGiftCard = true,
- GiftCardType = GiftCardType.Virtual,
ManageInventoryMethod = ManageInventoryMethod.DontManageStock,
OrderMinimumQuantity = 1,
OrderMaximumQuantity = 10000,
StockQuantity = 10000,
NotifyAdminForQuantityBelow = 1,
AllowBackInStockSubscriptions = false,
- DisplayOrder = 4,
+ DisplayOrder = 1
};
- AddProductPicture(product100GiftCard, "product_gift_card_100.png");
- product100GiftCard.ProductCategories.Add(new ProductCategory { Category = categoryGiftCards, DisplayOrder = 1 });
+ AddProductPicture(product10GiftCard, "product_gift_card_10.png");
+ product10GiftCard.ProductCategories.Add(new ProductCategory { Category = categories["Gift Cards"], DisplayOrder = 1 });
- #endregion product100GiftCard
+ #endregion product10GiftCard
+
+ #region product25GiftCard
+
+ var product25GiftCard = new Product
+ {
+ ProductType = ProductType.SimpleProduct,
+ VisibleIndividually = true,
+ Name = "$25 Virtual Gift Card",
+ IsEsd = true,
+ ShortDescription = "$25 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
+ FullDescription = "Gift Cards must be redeemed through our site Web site toward the purchase of eligible products. Purchases are deducted from the GiftCard balance. Any unused balance will be placed in the recipient's GiftCard account when redeemed. If an order exceeds the amount of the GiftCard, the balance must be paid with a credit card or other available payment method.
",
+ Sku = "P-1001",
+ ProductTemplateId = productTemplate.Id,
+ AllowCustomerReviews = true,
+ Published = true,
+ MetaTitle = "$25 Virtual Gift Card",
+ Price = 25M,
+ IsGiftCard = true,
+ GiftCardType = GiftCardType.Virtual,
+ ManageInventoryMethod = ManageInventoryMethod.DontManageStock,
+ OrderMinimumQuantity = 1,
+ OrderMaximumQuantity = 10000,
+ StockQuantity = 10000,
+ NotifyAdminForQuantityBelow = 1,
+ AllowBackInStockSubscriptions = false,
+ DisplayOrder = 2
+ };
+
+ AddProductPicture(product25GiftCard, "product_gift_card_25.png");
+ product25GiftCard.ProductCategories.Add(new ProductCategory { Category = categories["Gift Cards"], DisplayOrder = 1 });
+
+ #endregion product25GiftCard
+
+ #region product50GiftCard
+
+ var product50GiftCard = new Product
+ {
+ ProductType = ProductType.SimpleProduct,
+ VisibleIndividually = true,
+ Name = "$50 Virtual Gift Card",
+ IsEsd = true,
+ ShortDescription = "$50 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
+ FullDescription = "Gift Cards must be redeemed through our site Web site toward the purchase of eligible products. Purchases are deducted from the GiftCard balance. Any unused balance will be placed in the recipient's GiftCard account when redeemed. If an order exceeds the amount of the GiftCard, the balance must be paid with a credit card or other available payment method.
",
+ Sku = "P-1002",
+ ProductTemplateId = productTemplate.Id,
+ AllowCustomerReviews = true,
+ Published = true,
+ MetaTitle = "$50 Virtual Gift Card",
+ Price = 50M,
+ IsGiftCard = true,
+ GiftCardType = GiftCardType.Virtual,
+ ManageInventoryMethod = ManageInventoryMethod.DontManageStock,
+ OrderMinimumQuantity = 1,
+ OrderMaximumQuantity = 10000,
+ StockQuantity = 10000,
+ NotifyAdminForQuantityBelow = 1,
+ AllowBackInStockSubscriptions = false,
+ DisplayOrder = 3
+ };
+
+ AddProductPicture(product50GiftCard, "product_gift_card_50.png");
+ product50GiftCard.ProductCategories.Add(new ProductCategory { Category = categories["Gift Cards"], DisplayOrder = 1 });
+
+ #endregion product50GiftCard
+
+ #region product100GiftCard
+
+ var product100GiftCard = new Product
+ {
+ ProductType = ProductType.SimpleProduct,
+ VisibleIndividually = true,
+ Name = "$100 Virtual Gift Card",
+ IsEsd = true,
+ ShortDescription = "$100 Gift Card. Gift Cards must be redeemed through our site Web site toward the purchase of eligible products.",
+ FullDescription = "Gift Cards must be redeemed through our site Web site toward the purchase of eligible products. Purchases are deducted from the GiftCard balance. Any unused balance will be placed in the recipient's GiftCard account when redeemed. If an order exceeds the amount of the GiftCard, the balance must be paid with a credit card or other available payment method.
",
+ Sku = "P-10033",
+ ProductTemplateId = productTemplate.Id,
+ AllowCustomerReviews = true,
+ Published = true,
+ MetaTitle = "$100 Virtual Gift Card",
+ Price = 100M,
+ IsGiftCard = true,
+ GiftCardType = GiftCardType.Virtual,
+ ManageInventoryMethod = ManageInventoryMethod.DontManageStock,
+ OrderMinimumQuantity = 1,
+ OrderMaximumQuantity = 10000,
+ StockQuantity = 10000,
+ NotifyAdminForQuantityBelow = 1,
+ AllowBackInStockSubscriptions = false,
+ DisplayOrder = 4,
+ };
+
+ AddProductPicture(product100GiftCard, "product_gift_card_100.png");
+ product100GiftCard.ProductCategories.Add(new ProductCategory { Category = categories["Gift Cards"], DisplayOrder = 1 });
+
+ #endregion product100GiftCard
#endregion category Gift Cards
#region category books
- var categorySpiegelBestseller = _ctx.Set().First(c => c.Alias == "SPIEGEL-Bestseller");
- var categoryCookAndEnjoy = _ctx.Set().First(c => c.Alias == "Cook and enjoy");
- var categoryBooks = _ctx.Set().First(c => c.Alias == "Books");
-
- #region productBooksUberMan
+ #region productBooksUberMan
- var productBooksUberMan = new Product
- {
- ProductType = ProductType.SimpleProduct,
- VisibleIndividually = true,
- Name = "Überman: The novel",
- ShortDescription = "(Hardcover)",
- FullDescription = "