{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}A new blog comment has been created for blog post \"%BlogComment.BlogPostTitle%\".{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%,{Environment.NewLine}
{Environment.NewLine}Product %BackInStockSubscription.ProductName% is in stock.{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%!{Environment.NewLine}
{Environment.NewLine}To validate your new email address click here.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}You have received a new private message.{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}A new post has been created in the topic \"%Forums.TopicName%\" at \"%Forums.ForumName%\" forum.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Click here for more info.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Post author: %Forums.PostAuthor%{Environment.NewLine}
{Environment.NewLine}Post body: %Forums.PostBody%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}A new topic \"%Forums.TopicName%\" has been created at \"%Forums.ForumName%\" forum.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Click here for more info.{Environment.NewLine}
{Environment.NewLine}You have received a gift card for %Store.Name%{Environment.NewLine}
{Environment.NewLine}{Environment.NewLine}Dear %GiftCard.RecipientName%,{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%GiftCard.SenderName% (%GiftCard.SenderEmail%) has sent you a %GiftCard.Amount% gift card for %Store.Name%{Environment.NewLine}
{Environment.NewLine}Your gift card code is %GiftCard.CouponCode%{Environment.NewLine}
{Environment.NewLine}{Environment.NewLine}%GiftCard.Message%{Environment.NewLine}
{Environment.NewLine}", IsActive = true, EmailAccountId = eaGeneral.Id }, new() { Name = MessageTemplateSystemNames.CUSTOMER_REGISTERED_STORE_OWNER_NOTIFICATION, Subject = "%Store.Name%. New customer registration", Body = $"{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}A new customer registered with your store. Below are the customer's details:{Environment.NewLine}
{Environment.NewLine}Full name: %Customer.FullName%{Environment.NewLine}
{Environment.NewLine}Email: %Customer.Email%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Customer.FullName% has just submitted a new return request. Details are below:{Environment.NewLine}
{Environment.NewLine}Request ID: %ReturnRequest.CustomNumber%{Environment.NewLine}
{Environment.NewLine}Product: %ReturnRequest.Product.Quantity% x Product: %ReturnRequest.Product.Name%{Environment.NewLine}
{Environment.NewLine}Reason for return: %ReturnRequest.Reason%{Environment.NewLine}
{Environment.NewLine}Requested action: %ReturnRequest.RequestedAction%{Environment.NewLine}
{Environment.NewLine}Customer comments:{Environment.NewLine}
{Environment.NewLine}%ReturnRequest.CustomerComment%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%!{Environment.NewLine}
{Environment.NewLine}You have just submitted a new return request. Details are below:{Environment.NewLine}
{Environment.NewLine}Request ID: %ReturnRequest.CustomNumber%{Environment.NewLine}
{Environment.NewLine}Product: %ReturnRequest.Product.Quantity% x Product: %ReturnRequest.Product.Name%{Environment.NewLine}
{Environment.NewLine}Reason for return: %ReturnRequest.Reason%{Environment.NewLine}
{Environment.NewLine}Requested action: %ReturnRequest.RequestedAction%{Environment.NewLine}
{Environment.NewLine}Customer comments:{Environment.NewLine}
{Environment.NewLine}%ReturnRequest.CustomerComment%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}A new news comment has been created for news \"%NewsComment.NewsTitle%\".{Environment.NewLine}
{Environment.NewLine}Click here to confirm your subscription to our list.{Environment.NewLine}
{Environment.NewLine}{Environment.NewLine}If you received this email by mistake, simply delete it.{Environment.NewLine}
{Environment.NewLine}", IsActive = true, EmailAccountId = eaGeneral.Id }, new() { Name = MessageTemplateSystemNames.NEWSLETTER_SUBSCRIPTION_DEACTIVATION_MESSAGE, Subject = "%Store.Name%. Subscription deactivation message.", Body = $"{Environment.NewLine}Click here to unsubscribe from our newsletter.{Environment.NewLine}
{Environment.NewLine}{Environment.NewLine}If you received this email by mistake, simply delete it.{Environment.NewLine}
{Environment.NewLine}", IsActive = true, EmailAccountId = eaGeneral.Id }, new() { Name = MessageTemplateSystemNames.NEW_VAT_SUBMITTED_STORE_OWNER_NOTIFICATION, Subject = "%Store.Name%. New VAT number is submitted.", Body = $"{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Customer.FullName% (%Customer.Email%) has just submitted a new VAT number. Details are below:{Environment.NewLine}
{Environment.NewLine}VAT number: %Customer.VatNumber%{Environment.NewLine}
{Environment.NewLine}VAT number status: %Customer.VatNumberStatus%{Environment.NewLine}
{Environment.NewLine}Received name: %VatValidationResult.Name%{Environment.NewLine}
{Environment.NewLine}Received address: %VatValidationResult.Address%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%,{Environment.NewLine}
{Environment.NewLine}Your order has been cancelled. Below is the summary of the order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% %Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%,{Environment.NewLine}
{Environment.NewLine}Your order is processing. Below is the summary of the order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% %Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%,{Environment.NewLine}
{Environment.NewLine}Your order has been completed. Below is the summary of the order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% %Order.Product(s)%{Environment.NewLine}
{Environment.NewLine} %Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%,{Environment.NewLine}
{Environment.NewLine}Good news! Your order has been %if (!%Order.IsCompletelyDelivered%) partially endif%delivered.{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% Delivered Products:{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Shipment.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%,{Environment.NewLine}
{Environment.NewLine}Thanks for buying from %Store.Name%. Below is the summary of the order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% %Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Order.CustomerFullName% (%Order.CustomerEmail%) has just placed an order from your store. Below is the summary of the order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% %Order.Product(s)%{Environment.NewLine}
{Environment.NewLine} %Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%!,{Environment.NewLine}
{Environment.NewLine}Good news! Your order has been %if (!%Order.IsCompletelyShipped%) partially endif%shipped.{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% Shipped Products:{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Shipment.Product(s)%{Environment.NewLine}
{Environment.NewLine} %Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%!,{Environment.NewLine}
{Environment.NewLine}Good news! Your order has been %if (!%Order.IsCompletelyReadyForPickup%) partially endif%ready for pickup.{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% Products ready for pickup:{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Shipment.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}A new product review has been written for product \"%ProductReview.ProductName%\".{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%,{Environment.NewLine}
{Environment.NewLine}You received a reply from the store administration to your review for product \"%ProductReview.ProductName%\".{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Product.Name% (ID: %Product.ID%) low quantity.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Quantity: %Product.StockQuantity%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Product.Name% (ID: %Product.ID%) low quantity.{Environment.NewLine}
{Environment.NewLine}%AttributeCombination.Formatted%{Environment.NewLine}
{Environment.NewLine}Quantity: %AttributeCombination.StockQuantity%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%,{Environment.NewLine}
{Environment.NewLine}Your return request #%ReturnRequest.CustomNumber% status has been changed.{Environment.NewLine}
{Environment.NewLine} %Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%EmailAFriend.Email% was shopping on %Store.Name% and wanted to share the following item with you.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Product.Name%{Environment.NewLine}
{Environment.NewLine}%Product.ShortDescription%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}For more info click here{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%EmailAFriend.PersonalMessage%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine} %Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Wishlist.Email% was shopping on %Store.Name% and wanted to share a wishlist with you.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}For more info click here{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Wishlist.PersonalMessage%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%,{Environment.NewLine}
{Environment.NewLine}New order note has been added to your account:{Environment.NewLine}
{Environment.NewLine}\"%Order.NewNoteText%\".{Environment.NewLine}
{Environment.NewLine}%Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%RecurringPayment.CancelAfterFailedPayment%) The last payment for the recurring payment ID=%RecurringPayment.ID% failed, so it was cancelled. endif% %if (!%RecurringPayment.CancelAfterFailedPayment%) %Customer.FullName% (%Customer.Email%) has just cancelled a recurring payment ID=%RecurringPayment.ID%. endif%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%,{Environment.NewLine}
{Environment.NewLine}%if (%RecurringPayment.CancelAfterFailedPayment%) It appears your credit card didn't go through for this recurring payment (%Order.OrderURLForCustomer%){Environment.NewLine}
{Environment.NewLine}So your subscription has been cancelled. endif% %if (!%RecurringPayment.CancelAfterFailedPayment%) The recurring payment ID=%RecurringPayment.ID% was cancelled. endif%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Customer.FullName%,{Environment.NewLine}
{Environment.NewLine}It appears your credit card didn't go through for this recurring payment (%Order.OrderURLForCustomer%){Environment.NewLine}
%if (%RecurringPayment.RecurringPaymentType% == \"Manual\") {Environment.NewLine}You can recharge balance and manually retry payment or cancel it on the order history page. endif% %if (%RecurringPayment.RecurringPaymentType% == \"Automatic\") {Environment.NewLine}You can recharge balance and wait, we will try to make the payment again, or you can cancel it on the order history page. endif%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Customer.FullName% (%Customer.Email%) has just placed an order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Customer.FullName% (%Customer.Email%) has just placed an order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%,{Environment.NewLine}
{Environment.NewLine}Thanks for buying from %Store.Name%. Order #%Order.OrderNumber% has been has been refunded. Please allow 7-14 days for the refund to be reflected in your account.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Amount refunded: %Order.AmountRefunded%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Below is the summary of the order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% %Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order #%Order.OrderNumber% has been just refunded{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Amount refunded: %Order.AmountRefunded%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order #%Order.OrderNumber% has been just paid{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Hello %Order.CustomerFullName%,{Environment.NewLine}
{Environment.NewLine}Thanks for buying from %Store.Name%. Order #%Order.OrderNumber% has been just paid. Below is the summary of the order.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Order Details: %Order.OrderURLForCustomer%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Billing Address{Environment.NewLine}
{Environment.NewLine}%Order.BillingFirstName% %Order.BillingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.BillingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.BillingCity% %Order.BillingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.BillingStateProvince% %Order.BillingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%if (%Order.Shippable%) Shipping Address{Environment.NewLine}
{Environment.NewLine}%Order.ShippingFirstName% %Order.ShippingLastName%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress1%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingAddress2%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingCity% %Order.ShippingZipPostalCode%{Environment.NewLine}
{Environment.NewLine}%Order.ShippingStateProvince% %Order.ShippingCountry%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Shipping Method: %Order.ShippingMethod%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine} endif% %Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order #%Order.OrderNumber% has been just paid.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order #%Order.OrderNumber% has been just paid.{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Order Number: %Order.OrderNumber%{Environment.NewLine}
{Environment.NewLine}Date Ordered: %Order.CreatedOn%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Order.Product(s)%{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}%Customer.FullName% (%Customer.Email%) has just submitted for a vendor account. Details are below:{Environment.NewLine}
{Environment.NewLine}Vendor name: %Vendor.Name%{Environment.NewLine}
{Environment.NewLine}Vendor email: %Vendor.Email%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}You can activate it in admin area.{Environment.NewLine}
{Environment.NewLine}%Store.Name%{Environment.NewLine}
{Environment.NewLine}
{Environment.NewLine}Vendor %Vendor.Name% (%Vendor.Email%) has just changed information about itself.{Environment.NewLine}
{Environment.NewLine}%ContactUs.Body%{Environment.NewLine}
{Environment.NewLine}", IsActive = true, EmailAccountId = eaGeneral.Id }, new() { Name = MessageTemplateSystemNames.CONTACT_VENDOR_MESSAGE, Subject = "%Store.Name%. Contact us", Body = $"{Environment.NewLine}%ContactUs.Body%{Environment.NewLine}
{Environment.NewLine}", IsActive = true, EmailAccountId = eaGeneral.Id } }; await InsertInstallationDataAsync(messageTemplates); } ///Put your "About Us" information here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "CheckoutAsGuestOrRegister", IncludeInSitemap = false, IsPasswordProtected = false, DisplayOrder = 1, Published = true, Title = string.Empty, Body = "Register and save time!
Register with us for future convenience:
Put your conditions of use information here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "ContactUs", IncludeInSitemap = false, IsPasswordProtected = false, DisplayOrder = 1, Published = true, Title = string.Empty, Body = "Put your contact information here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "ForumWelcomeMessage", IncludeInSitemap = false, IsPasswordProtected = false, DisplayOrder = 1, Published = true, Title = "Forums", Body = "Put your welcome message here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "HomepageText", IncludeInSitemap = false, IsPasswordProtected = false, DisplayOrder = 1, Published = true, Title = "Welcome to our store", Body = "Online shopping is the process consumers go through to purchase products or services over the Internet. You can edit this in the admin site.
If you have questions, see the Documentation, or post in the Forums at nopCommerce.com
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "LoginRegistrationInfo", IncludeInSitemap = false, IsPasswordProtected = false, DisplayOrder = 1, Published = true, Title = "About login / registration", Body = "Put your login / registration information here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "PrivacyInfo", IncludeInSitemap = false, IsPasswordProtected = false, IncludeInFooterColumn1 = true, DisplayOrder = 10, Published = true, Title = "Privacy notice", Body = "Put your privacy policy information here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "PageNotFound", IncludeInSitemap = false, IsPasswordProtected = false, DisplayOrder = 1, Published = true, Title = string.Empty, Body = "The page you requested was not found, and we have a fine guess why.
Put your shipping & returns information here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "ApplyVendor", IncludeInSitemap = false, IsPasswordProtected = false, DisplayOrder = 1, Published = true, Title = string.Empty, Body = "Put your apply vendor instructions here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id }, new() { SystemName = "VendorTermsOfService", IncludeInSitemap = false, IsPasswordProtected = false, IncludeInFooterColumn1 = false, DisplayOrder = 1, Published = true, Title = "Terms of services for vendors", Body = "Put your terms of service information here. You can edit this in the admin site.
", TopicTemplateId = defaultTopicTemplate.Id } }; await InsertInstallationDataAsync(topics); //search engine names foreach (var topic in topics) { await InsertInstallationDataAsync(new UrlRecord { EntityId = topic.Id, EntityName = nameof(Topic), LanguageId = 0, IsActive = true, Slug = await ValidateSeNameAsync(topic, !string.IsNullOrEmpty(topic.Title) ? topic.Title : topic.SystemName) }); } } ///Fight back against cluttered workspaces with the stylish IBM zBC12 All-in-One desktop PC, featuring powerful computing resources and a stunning 20.1-inch widescreen display with stunning XBRITE-HiColor LCD technology. The black IBM zBC12 has a built-in microphone and MOTION EYE camera with face-tracking technology that allows for easy communication with friends and family. And it has a built-in DVD burner and Sony's Movie Store software so you can create a digital entertainment library for personal viewing at your convenience. Easy to setup and even easier to use, this JS-series All-in-One includes an elegantly designed keyboard and a USB mouse.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "build-your-own-computer", AllowCustomerReviews = true, Price = 1200M, IsShipEnabled = true, IsFreeShipping = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, ShowOnHomepage = true, MarkAsNew = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productBuildComputer); await InsertInstallationDataAsync(productBuildComputer); await InsertInstallationDataAsync(new ProductCategory { ProductId = productBuildComputer.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Desktops").Id, DisplayOrder = 1 }); var picProductDesktops1 = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_Desktops_1.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productBuildComputer.Name)); var picProductDesktops2 = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_Desktops_2.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productBuildComputer.Name)); await InsertInstallationDataAsync( new ProductPicture { ProductId = productBuildComputer.Id, PictureId = picProductDesktops1.Id, DisplayOrder = 1 }, new ProductPicture { ProductId = productBuildComputer.Id, PictureId = picProductDesktops2.Id, DisplayOrder = 2 }); var pamProcessor = await InsertInstallationDataAsync(new ProductAttributeMapping { ProductId = productBuildComputer.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Processor").Id, AttributeControlType = AttributeControlType.DropdownList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamProcessor.Id, AttributeValueType = AttributeValueType.Simple, Name = "2.2 GHz Intel Pentium Dual-Core E2200", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamProcessor.Id, AttributeValueType = AttributeValueType.Simple, Name = "2.5 GHz Intel Pentium Dual-Core E2200", IsPreSelected = true, PriceAdjustment = 15, DisplayOrder = 2 }); var pamRam = await InsertInstallationDataAsync(new ProductAttributeMapping { ProductId = productBuildComputer.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "RAM").Id, AttributeControlType = AttributeControlType.DropdownList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamRam.Id, AttributeValueType = AttributeValueType.Simple, Name = "2 GB", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamRam.Id, AttributeValueType = AttributeValueType.Simple, Name = "4GB", PriceAdjustment = 20, DisplayOrder = 2 }, new ProductAttributeValue { ProductAttributeMappingId = pamRam.Id, AttributeValueType = AttributeValueType.Simple, Name = "8GB", PriceAdjustment = 60, DisplayOrder = 3 }); var pamHdd = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productBuildComputer.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "HDD").Id, AttributeControlType = AttributeControlType.RadioList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamHdd.Id, AttributeValueType = AttributeValueType.Simple, Name = "320 GB", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamHdd.Id, AttributeValueType = AttributeValueType.Simple, Name = "400 GB", PriceAdjustment = 100, DisplayOrder = 2 }); var pamOs = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productBuildComputer.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "OS").Id, AttributeControlType = AttributeControlType.RadioList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamOs.Id, AttributeValueType = AttributeValueType.Simple, Name = "Vista Home", PriceAdjustment = 50, IsPreSelected = true, DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamOs.Id, AttributeValueType = AttributeValueType.Simple, Name = "Vista Premium", PriceAdjustment = 60, DisplayOrder = 2 }); var pamSoftware = await InsertInstallationDataAsync(new ProductAttributeMapping { ProductId = productBuildComputer.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Software").Id, AttributeControlType = AttributeControlType.Checkboxes }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamSoftware.Id, AttributeValueType = AttributeValueType.Simple, Name = "Microsoft Office", PriceAdjustment = 50, IsPreSelected = true, DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamSoftware.Id, AttributeValueType = AttributeValueType.Simple, Name = "Acrobat Reader", PriceAdjustment = 10, DisplayOrder = 2 }, new ProductAttributeValue { ProductAttributeMappingId = pamSoftware.Id, AttributeValueType = AttributeValueType.Simple, Name = "Total Commander", PriceAdjustment = 5, DisplayOrder = 2 }); await AddProductTagAsync(productBuildComputer, "awesome"); await AddProductTagAsync(productBuildComputer, "computer"); var productDigitalStorm = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Digital Storm VANQUISH Custom Performance PC", Sku = "DS_VA3_PC", ShortDescription = "Digital Storm Vanquish 3 Desktop PC", FullDescription = "Blow the doors off today’s most demanding games with maximum detail, speed, and power for an immersive gaming experience without breaking the bank.
Stay ahead of the competition, VANQUISH 3 is fully equipped to easily handle future upgrades, keeping your system on the cutting edge for years to come.
Each system is put through an extensive stress test, ensuring you experience zero bottlenecks and get the maximum performance from your hardware.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "compaq-presario-sr1519x-pentium-4-desktop-pc-with-cdrw", AllowCustomerReviews = true, Price = 1259M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productDigitalStorm); await InsertInstallationDataAsync(productDigitalStorm); await InsertInstallationDataAsync(new ProductCategory { ProductId = productDigitalStorm.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Desktops").Id, DisplayOrder = 1 }); var picProductDigitalStorm = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_DigitalStorm.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productDigitalStorm.Name)); await InsertInstallationDataAsync(new ProductPicture { ProductId = productDigitalStorm.Id, PictureId = picProductDigitalStorm.Id, DisplayOrder = 1 }); await AddProductTagAsync(productDigitalStorm, "cool"); await AddProductTagAsync(productDigitalStorm, "computer"); var productLenovoIdeaCentre = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Lenovo IdeaCentre", Sku = "LE_IC_600", ShortDescription = string.Empty, FullDescription = "The A600 features a 21.5in screen, DVD or optional Blu-Ray drive, support for the full beans 1920 x 1080 HD, Dolby Home Cinema certification and an optional hybrid analogue/digital TV tuner.
Connectivity is handled by 802.11a/b/g - 802.11n is optional - and an ethernet port. You also get four USB ports, a Firewire slot, a six-in-one card reader and a 1.3- or two-megapixel webcam.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "hp-iq506-touchsmart-desktop-pc", AllowCustomerReviews = true, Price = 500M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productLenovoIdeaCentre); await InsertInstallationDataAsync(productLenovoIdeaCentre); await InsertInstallationDataAsync(new ProductCategory { ProductId = productLenovoIdeaCentre.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Desktops").Id, DisplayOrder = 1 }); var picProductLenovoIdeaCentre = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_LenovoIdeaCentre.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productLenovoIdeaCentre.Name)); await InsertInstallationDataAsync(new ProductPicture { ProductId = productLenovoIdeaCentre.Id, PictureId = picProductLenovoIdeaCentre.Id, DisplayOrder = 1 }); await AddProductTagAsync(productLenovoIdeaCentre, "awesome"); await AddProductTagAsync(productLenovoIdeaCentre, "computer"); var productAppleMacBookPro = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Apple MacBook Pro", Sku = "AP_MBP_13", ShortDescription = "A groundbreaking Retina display. A new force-sensing trackpad. All-flash architecture. Powerful dual-core and quad-core Intel processors. Together, these features take the notebook to a new level of performance. And they will do the same for you in everything you create.", FullDescription = "With fifth-generation Intel Core processors, the latest graphics, and faster flash storage, the incredibly advanced MacBook Pro with Retina display moves even further ahead in performance and battery life.* *Compared with the previous generation.
Retina display with 2560-by-1600 resolution
Fifth-generation dual-core Intel Core i5 processor
Intel Iris Graphics
Up to 9 hours of battery life1
Faster flash storage2
802.11ac Wi-Fi
Two Thunderbolt 2 ports for connecting high-performance devices and transferring data at lightning speed
Two USB 3 ports (compatible with USB 2 devices) and HDMI
FaceTime HD camera
Pages, Numbers, Keynote, iPhoto, iMovie, GarageBand included
OS X, the world's most advanced desktop operating system
", ProductTemplateId = productTemplateSimple.Id, //SeName = "asus-eee-pc-1000ha-10-inch-netbook", AllowCustomerReviews = true, Price = 1800M, IsShipEnabled = true, IsFreeShipping = true, Weight = 3, Length = 3, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 2, OrderMaximumQuantity = 10000, Published = true, ShowOnHomepage = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productAppleMacBookPro); await InsertInstallationDataAsync(productAppleMacBookPro); await InsertInstallationDataAsync(new ProductCategory { ProductId = productAppleMacBookPro.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Notebooks").Id, DisplayOrder = 1 }); await InsertInstallationDataAsync(new ProductManufacturer { ProductId = productAppleMacBookPro.Id, ManufacturerId = _manufacturerRepository.Table.Single(c => c.Name == "Apple").Id, DisplayOrder = 2 }); var picProductMacBook1 = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_macbook_1.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productAppleMacBookPro.Name)); var picProductMacBook2 = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_macbook_2.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productAppleMacBookPro.Name)); await InsertInstallationDataAsync(new ProductPicture { ProductId = productAppleMacBookPro.Id, PictureId = picProductMacBook1.Id, DisplayOrder = 1 }, new ProductPicture { ProductId = productAppleMacBookPro.Id, PictureId = picProductMacBook2.Id, DisplayOrder = 2 }); await InsertInstallationDataAsync( new ProductSpecificationAttribute { ProductId = productAppleMacBookPro.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Screensize", "13.0''") }, new ProductSpecificationAttribute { ProductId = productAppleMacBookPro.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 2, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("CPU Type", "Intel Core i5") }, new ProductSpecificationAttribute { ProductId = productAppleMacBookPro.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 3, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Memory", "4 GB") }); await AddProductTagAsync(productAppleMacBookPro, "compact"); await AddProductTagAsync(productAppleMacBookPro, "awesome"); await AddProductTagAsync(productAppleMacBookPro, "computer"); var productAsusN551JK = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Asus Laptop", Sku = "AS_551_LP", ShortDescription = "Laptop Asus N551JK Intel Core i7-4710HQ 2.5 GHz, RAM 16GB, HDD 1TB, Video NVidia GTX 850M 4GB, BluRay, 15.6, Full HD, Win 8.1", FullDescription = "The ASUS N550JX combines cutting-edge audio and visual technology to deliver an unsurpassed multimedia experience. A full HD wide-view IPS panel is tailor-made for watching movies and the intuitive touchscreen makes for easy, seamless navigation. ASUS has paired the N550JX’s impressive display with SonicMaster Premium, co-developed with Bang & Olufsen ICEpower® audio experts, for true surround sound. A quad-speaker array and external subwoofer combine for distinct vocals and a low bass that you can feel.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "asus-eee-pc-900ha-89-inch-netbook-black", AllowCustomerReviews = true, Price = 1500M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productAsusN551JK); await InsertInstallationDataAsync(productAsusN551JK); await InsertInstallationDataAsync(new ProductCategory { ProductId = productAsusN551JK.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Notebooks").Id, DisplayOrder = 1 }); var picProductAsuspcN551Jk = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_asuspc_N551JK.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productAsusN551JK.Name)); await InsertInstallationDataAsync(new ProductPicture { ProductId = productAsusN551JK.Id, PictureId = picProductAsuspcN551Jk.Id, DisplayOrder = 1 }); await InsertInstallationDataAsync( new ProductSpecificationAttribute { ProductId = productAsusN551JK.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Screensize", "15.6''") }, new ProductSpecificationAttribute { ProductId = productAsusN551JK.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 2, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("CPU Type", "Intel Core i7") }, new ProductSpecificationAttribute { ProductId = productAsusN551JK.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 3, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Memory", "16 GB") }, new ProductSpecificationAttribute { ProductId = productAsusN551JK.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 4, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Hard drive", "1 TB") }); await AddProductTagAsync(productAsusN551JK, "compact"); await AddProductTagAsync(productAsusN551JK, "awesome"); await AddProductTagAsync(productAsusN551JK, "computer"); var productSamsungSeries = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Samsung Premium Ultrabook", Sku = "SM_900_PU", ShortDescription = "Samsung Series 9 NP900X4C-A06US 15-Inch Ultrabook (1.70 GHz Intel Core i5-3317U Processor, 8GB DDR3, 128GB SSD, Windows 8) Ash Black", FullDescription = "Designed with mobility in mind, Samsung's durable, ultra premium, lightweight Series 9 laptop (model NP900X4C-A01US) offers mobile professionals and power users a sophisticated laptop equally suited for work and entertainment. Featuring a minimalist look that is both simple and sophisticated, its polished aluminum uni-body design offers an iconic look and feel that pushes the envelope with an edge just 0.58 inches thin. This Series 9 laptop also includes a brilliant 15-inch SuperBright Plus display with HD+ technology, 128 GB Solid State Drive (SSD), 8 GB of system memory, and up to 10 hours of battery life.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "hp-pavilion-artist-edition-dv2890nr-141-inch-laptop", AllowCustomerReviews = true, Price = 1590M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, //ShowOnHomepage = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productSamsungSeries); await InsertInstallationDataAsync(productSamsungSeries); await InsertInstallationDataAsync(new ProductCategory { ProductId = productSamsungSeries.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Notebooks").Id, DisplayOrder = 1 }); var picProductSamsungNp900X4C = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_SamsungNP900X4C.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productSamsungSeries.Name)); await InsertInstallationDataAsync(new ProductPicture { ProductId = productSamsungSeries.Id, PictureId = picProductSamsungNp900X4C.Id, DisplayOrder = 1 }); await InsertInstallationDataAsync( new ProductSpecificationAttribute { ProductId = productSamsungSeries.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Screensize", "15.0''") }, new ProductSpecificationAttribute { ProductId = productSamsungSeries.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 2, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("CPU Type", "Intel Core i5") }, new ProductSpecificationAttribute { ProductId = productSamsungSeries.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 3, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Memory", "8 GB") }, new ProductSpecificationAttribute { ProductId = productSamsungSeries.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 4, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Hard drive", "128 GB") }); await AddProductTagAsync(productSamsungSeries, "nice"); await AddProductTagAsync(productSamsungSeries, "computer"); await AddProductTagAsync(productSamsungSeries, "compact"); var productHpSpectre = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "HP Spectre XT Pro UltraBook", Sku = "HP_SPX_UB", ShortDescription = "HP Spectre XT Pro UltraBook / Intel Core i5-2467M / 13.3 / 4GB / 128GB / Windows 7 Professional / Laptop", FullDescription = "Introducing HP ENVY Spectre XT, the Ultrabook designed for those who want style without sacrificing substance. It's sleek. It's thin. And with Intel. Corer i5 processor and premium materials, it's designed to go anywhere from the bistro to the boardroom, it's unlike anything you've ever seen from HP.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "hp-pavilion-elite-m9150f-desktop-pc", AllowCustomerReviews = true, Price = 1350M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productHpSpectre); await InsertInstallationDataAsync(productHpSpectre); await InsertInstallationDataAsync(new ProductCategory { ProductId = productHpSpectre.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Notebooks").Id, DisplayOrder = 1 }); await InsertInstallationDataAsync(new ProductManufacturer { ProductId = productHpSpectre.Id, ManufacturerId = _manufacturerRepository.Table.Single(c => c.Name == "HP").Id, DisplayOrder = 3 }); var picProductHpSpectreXt1 = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_HPSpectreXT_1.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productHpSpectre.Name)); var picProductHpSpectreXt2 = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_HPSpectreXT_2.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productHpSpectre.Name)); await InsertInstallationDataAsync(new ProductPicture { ProductId = productHpSpectre.Id, PictureId = picProductHpSpectreXt1.Id, DisplayOrder = 1 }, new ProductPicture { ProductId = productHpSpectre.Id, PictureId = picProductHpSpectreXt2.Id, DisplayOrder = 2 }); await InsertInstallationDataAsync( new ProductSpecificationAttribute { ProductId = productHpSpectre.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Screensize", "13.3''") }, new ProductSpecificationAttribute { ProductId = productHpSpectre.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 2, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("CPU Type", "Intel Core i5") }, new ProductSpecificationAttribute { ProductId = productHpSpectre.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 3, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Memory", "4 GB") }, new ProductSpecificationAttribute { ProductId = productHpSpectre.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 4, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Hard drive", "128 GB") }); await AddProductTagAsync(productHpSpectre, "nice"); await AddProductTagAsync(productHpSpectre, "computer"); var productHpEnvy = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "HP Envy 15.6-Inch Sleekbook", Sku = "HP_ESB_15", ShortDescription = "HP ENVY 6-1202ea Ultrabook Beats Audio, 3rd generation Intel® CoreTM i7-3517U processor, 8GB RAM, 500GB HDD, Microsoft Windows 8, AMD Radeon HD 8750M (2 GB DDR3 dedicated)", FullDescription = "The UltrabookTM that's up for anything. Thin and light, the HP ENVY is the large screen UltrabookTM with Beats AudioTM. With a soft-touch base that makes it easy to grab and go, it's a laptop that's up for anything.The X1 Carbon brings a new level of quality to the ThinkPad legacy of high standards and innovation. It starts with the durable, carbon fiber-reinforced roll cage, making for the best Ultrabook construction available, and adds a host of other new features on top of the old favorites. Because for 20 years, we haven't stopped innovating. And you shouldn't stop benefiting from that.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "toshiba-satellite-a305-s6908-154-inch-laptop", AllowCustomerReviews = true, Price = 1360M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productLenovoThinkpad); await InsertInstallationDataAsync(productLenovoThinkpad); await InsertInstallationDataAsync(new ProductCategory { ProductId = productLenovoThinkpad.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Notebooks").Id, DisplayOrder = 1 }); var picProductLenovoThinkpad = await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "product_LenovoThinkpad.jpeg")), MimeTypes.ImageJpeg, await pictureService.GetPictureSeNameAsync(productLenovoThinkpad.Name)); await InsertInstallationDataAsync(new ProductPicture { ProductId = productLenovoThinkpad.Id, PictureId = picProductLenovoThinkpad.Id, DisplayOrder = 1 }); await InsertInstallationDataAsync( new ProductSpecificationAttribute { ProductId = productLenovoThinkpad.Id, AllowFiltering = false, ShowOnProductPage = true, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Screensize", "14.0''") }, new ProductSpecificationAttribute { ProductId = productLenovoThinkpad.Id, AllowFiltering = true, ShowOnProductPage = true, DisplayOrder = 2, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("CPU Type", "Intel Core i7") }); await AddProductTagAsync(productLenovoThinkpad, "awesome"); await AddProductTagAsync(productLenovoThinkpad, "computer"); await AddProductTagAsync(productLenovoThinkpad, "compact"); var productAdobePhotoshop = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Adobe Photoshop", Sku = "AD_CS4_PH", ShortDescription = "Easily find and view all your photos", FullDescription = "Adobe Photoshop CS4 software combines power and simplicity so you can make ordinary photos extraordinary; tell engaging stories in beautiful, personalized creations for print and web; and easily find and view all your photos. New Photoshop.com membership* works with Photoshop CS4 so you can protect your photos with automatic online backup and 2 GB of storage; view your photos anywhere you are; and share your photos in fun, interactive ways with invitation-only Online Albums.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "adobe-photoshop-elements-7", AllowCustomerReviews = true, Price = 75M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 3, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productAdobePhotoshop); await InsertInstallationDataAsync(productAdobePhotoshop); await InsertInstallationDataAsync(new ProductCategory { ProductId = productAdobePhotoshop.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Software").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productAdobePhotoshop, "product_AdobePhotoshop.jpeg"); await AddProductTagAsync(productAdobePhotoshop, "computer"); await AddProductTagAsync(productAdobePhotoshop, "awesome"); var productWindows8Pro = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Microsoft Windows OS", Sku = "MS_WIN_8P", ShortDescription = "Windows 8 is a Microsoft operating system that was released in 2012 as part of the company's Windows NT OS family. ", FullDescription = "Windows 8 Pro is comparable to Windows 7 Professional and Ultimate and is targeted towards enthusiasts and business users; it includes all the features of Windows 8. Additional features include the ability to receive Remote Desktop connections, the ability to participate in a Windows Server domain, Encrypting File System, Hyper-V, and Virtual Hard Disk Booting, Group Policy as well as BitLocker and BitLocker To Go. Windows Media Center functionality is available only for Windows 8 Pro as a separate software package.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "corel-paint-shop-pro-photo-x2", AllowCustomerReviews = true, Price = 65M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 3, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productWindows8Pro); await InsertInstallationDataAsync(productWindows8Pro); await InsertInstallationDataAsync(new ProductCategory { ProductId = productWindows8Pro.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Software").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productWindows8Pro, "product_Windows.jpeg"); await AddProductTagAsync(productWindows8Pro, "awesome"); await AddProductTagAsync(productWindows8Pro, "computer"); var productSoundForge = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Sound Forge Pro (recurring)", Sku = "SF_PRO_11", ShortDescription = "Advanced audio waveform editor.", FullDescription = "Sound Forge™ Pro is the application of choice for a generation of creative and prolific artists, producers, and editors. Record audio quickly on a rock-solid platform, address sophisticated audio processing tasks with surgical precision, and render top-notch master files with ease. New features include one-touch recording, metering for the new critical standards, more repair and restoration tools, and exclusive round-trip interoperability with SpectraLayers Pro. Taken together, these enhancements make this edition of Sound Forge Pro the deepest and most advanced audio editing platform available.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "major-league-baseball-2k9", IsRecurring = true, RecurringCycleLength = 30, RecurringCyclePeriod = RecurringProductCyclePeriod.Months, RecurringTotalCycles = 12, AllowCustomerReviews = true, Price = 54.99M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productSoundForge); await InsertInstallationDataAsync(productSoundForge); await InsertInstallationDataAsync(new ProductCategory { ProductId = productSoundForge.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Software").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productSoundForge, "product_SoundForge.jpeg"); await AddProductTagAsync(productSoundForge, "game"); await AddProductTagAsync(productSoundForge, "computer"); await AddProductTagAsync(productSoundForge, "cool"); relatedProducts.AddRange(new[] { new RelatedProduct { ProductId1 = productLenovoIdeaCentre.Id, ProductId2 = productDigitalStorm.Id }, new RelatedProduct { ProductId1 = productDigitalStorm.Id, ProductId2 = productBuildComputer.Id }, new RelatedProduct { ProductId1 = productDigitalStorm.Id, ProductId2 = productLenovoIdeaCentre.Id }, new RelatedProduct { ProductId1 = productDigitalStorm.Id, ProductId2 = productLenovoThinkpad.Id }, new RelatedProduct { ProductId1 = productDigitalStorm.Id, ProductId2 = productAppleMacBookPro.Id }, new RelatedProduct { ProductId1 = productLenovoIdeaCentre.Id, ProductId2 = productBuildComputer.Id }, new RelatedProduct { ProductId1 = productAsusN551JK.Id, ProductId2 = productLenovoThinkpad.Id }, new RelatedProduct { ProductId1 = productAsusN551JK.Id, ProductId2 = productAppleMacBookPro.Id }, new RelatedProduct { ProductId1 = productAsusN551JK.Id, ProductId2 = productSamsungSeries.Id }, new RelatedProduct { ProductId1 = productAsusN551JK.Id, ProductId2 = productHpSpectre.Id }, new RelatedProduct { ProductId1 = productLenovoThinkpad.Id, ProductId2 = productAsusN551JK.Id }, new RelatedProduct { ProductId1 = productLenovoThinkpad.Id, ProductId2 = productAppleMacBookPro.Id }, new RelatedProduct { ProductId1 = productLenovoThinkpad.Id, ProductId2 = productSamsungSeries.Id }, new RelatedProduct { ProductId1 = productLenovoThinkpad.Id, ProductId2 = productHpEnvy.Id }, new RelatedProduct { ProductId1 = productAppleMacBookPro.Id, ProductId2 = productLenovoThinkpad.Id }, new RelatedProduct { ProductId1 = productAppleMacBookPro.Id, ProductId2 = productSamsungSeries.Id }, new RelatedProduct { ProductId1 = productAppleMacBookPro.Id, ProductId2 = productAsusN551JK.Id }, new RelatedProduct { ProductId1 = productAppleMacBookPro.Id, ProductId2 = productHpSpectre.Id }, new RelatedProduct { ProductId1 = productHpSpectre.Id, ProductId2 = productLenovoThinkpad.Id }, new RelatedProduct { ProductId1 = productHpSpectre.Id, ProductId2 = productSamsungSeries.Id }, new RelatedProduct { ProductId1 = productHpSpectre.Id, ProductId2 = productAsusN551JK.Id }, new RelatedProduct { ProductId1 = productHpSpectre.Id, ProductId2 = productHpEnvy.Id }, new RelatedProduct { ProductId1 = productHpEnvy.Id, ProductId2 = productAsusN551JK.Id }, new RelatedProduct { ProductId1 = productHpEnvy.Id, ProductId2 = productAppleMacBookPro.Id }, new RelatedProduct { ProductId1 = productHpEnvy.Id, ProductId2 = productHpSpectre.Id }, new RelatedProduct { ProductId1 = productHpEnvy.Id, ProductId2 = productSamsungSeries.Id }, new RelatedProduct { ProductId1 = productSamsungSeries.Id, ProductId2 = productAsusN551JK.Id }, new RelatedProduct { ProductId1 = productSamsungSeries.Id, ProductId2 = productAppleMacBookPro.Id }, new RelatedProduct { ProductId1 = productSamsungSeries.Id, ProductId2 = productHpEnvy.Id }, new RelatedProduct { ProductId1 = productSamsungSeries.Id, ProductId2 = productHpSpectre.Id }, new RelatedProduct { ProductId1 = productLenovoIdeaCentre.Id, ProductId2 = productLenovoThinkpad.Id }, new RelatedProduct { ProductId1 = productLenovoIdeaCentre.Id, ProductId2 = productAppleMacBookPro.Id } }); } ///The new Leica T offers a minimalist design that's crafted from a single block of aluminum. Made in Germany and assembled by hand, this 16.3 effective mega pixel camera is easy to use. With a massive 3.7 TFT LCD intuitive touch screen control, the user is able to configure and save their own menu system. The Leica T has outstanding image quality and also has 16GB of built in memory. This is Leica's first system camera to use Wi-Fi. Add the T-App to your portable iOS device and be able to transfer and share your images (free download from the Apple App Store)
", ProductTemplateId = productTemplateSimple.Id, //SeName = "canon-vixia-hf100-camcorder", AllowCustomerReviews = true, Price = 530M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productLeica); await InsertInstallationDataAsync(productLeica); await InsertInstallationDataAsync(new ProductCategory { ProductId = productLeica.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Camera & photo").Id, DisplayOrder = 3 }); await InsertProductPictureAsync(productLeica, "product_LeicaT.jpeg"); await AddProductTagAsync(productLeica, "camera"); await AddProductTagAsync(productLeica, "cool"); var productAppleICam = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Apple iCam", Sku = "APPLE_CAM", ShortDescription = "Photography becomes smart", FullDescription = "A few months ago we featured the amazing WVIL camera, by many considered the future of digital photography. This is another very good looking concept, iCam is the vision of Italian designer Antonio DeRosa, the idea is to have a device that attaches to the iPhone 5, which then allows the user to have a camera with interchangeable lenses. The device would also feature a front-touch screen and a projector. Would be great if apple picked up on this and made it reality.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "panasonic-hdc-sdt750k-high-definition-3d-camcorder", AllowCustomerReviews = true, Price = 1300M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productAppleICam); await InsertInstallationDataAsync(productAppleICam); await InsertInstallationDataAsync(new ProductCategory { ProductId = productAppleICam.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Camera & photo").Id, DisplayOrder = 2 }); await InsertInstallationDataAsync(new ProductManufacturer { ProductId = productAppleICam.Id, ManufacturerId = _manufacturerRepository.Table.Single(c => c.Name == "Apple").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productAppleICam, "product_iCam.jpeg"); var productHtcOne = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "HTC smartphone", Sku = "M8_HTC_5L", ShortDescription = "HTC - One (M8) 4G LTE Cell Phone with 32GB Memory - Gunmetal (Sprint)", FullDescription = "HTC One (M8) Cell Phone for Sprint: With its brushed-metal design and wrap-around unibody frame, the HTC One (M8) is designed to fit beautifully in your hand. It's fun to use with amped up sound and a large Full HD touch screen, and intuitive gesture controls make it seem like your phone almost knows what you need before you do.
Sprint Easy Pay option available in store.
HTC One mini smartphone with 4.30-inch 720x1280 display powered by 1.4GHz processor alongside 1GB RAM and 4-Ultrapixel rear camera.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "samsung-rugby-a837-phone-black-att", AllowCustomerReviews = true, Price = 100M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, MarkAsNew = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productHtcOneMini); await InsertInstallationDataAsync(productHtcOneMini); await InsertInstallationDataAsync(new ProductCategory { ProductId = productHtcOneMini.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Cell phones").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productHtcOneMini, "product_HTC_One_Mini_1.jpeg"); await InsertProductPictureAsync(productHtcOneMini, "product_HTC_One_Mini_2.jpeg", 2); await AddProductTagAsync(productHtcOneMini, "awesome"); await AddProductTagAsync(productHtcOneMini, "compact"); await AddProductTagAsync(productHtcOneMini, "cell"); var productNokiaLumia = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Nokia Lumia 1020", Sku = "N_1020_LU", ShortDescription = "Nokia Lumia 1020 4G Cell Phone (Unlocked)", FullDescription = "Capture special moments for friends and family with this Nokia Lumia 1020 32GB WHITE cell phone that features an easy-to-use 41.0MP rear-facing camera and a 1.2MP front-facing camera. The AMOLED touch screen offers 768 x 1280 resolution for crisp visuals.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "sony-dcr-sr85-1mp-60gb-hard-drive-handycam-camcorder", AllowCustomerReviews = true, Price = 349M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productNokiaLumia); await InsertInstallationDataAsync(productNokiaLumia); await InsertInstallationDataAsync(new ProductCategory { ProductId = productNokiaLumia.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Cell phones").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productNokiaLumia, "product_Lumia1020.jpeg"); await AddProductTagAsync(productNokiaLumia, "awesome"); await AddProductTagAsync(productNokiaLumia, "cool"); await AddProductTagAsync(productNokiaLumia, "camera"); var productBeatsPill = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Beats Pill Wireless Speaker", Sku = "BP_20_WSP", ShortDescription = "Pill 2.0 Portable Bluetooth Speaker (1-Piece): Watch your favorite movies and listen to music with striking sound quality. This lightweight, portable speaker is easy to take with you as you travel to any destination, keeping you entertained wherever you are. ", FullDescription = "Made of durable polyurethane, our Universal Cover is slim, lightweight, and strong, with protective corners that stretch to hold most 7 and 8-inch tablets securely. This tough case helps protects your tablet from bumps, scuffs, and dings.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "apc-back-ups-rs-800va-ups-800-va-ups-battery-lead-acid-br800blk", AllowCustomerReviews = true, Price = 39M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 3, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productUniversalTabletCover); await InsertInstallationDataAsync(productUniversalTabletCover); await InsertInstallationDataAsync(new ProductCategory { ProductId = productUniversalTabletCover.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Others").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productUniversalTabletCover, "product_TabletCover.jpeg"); await AddProductTagAsync(productUniversalTabletCover, "computer"); await AddProductTagAsync(productUniversalTabletCover, "cool"); var productPortableSoundSpeakers = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Portable Sound Speakers", Sku = "PT_SPK_SN", ShortDescription = "Universall portable sound speakers", FullDescription = "Your phone cut the cord, now it's time for you to set your music free and buy a Bluetooth speaker. Thankfully, there's one suited for everyone out there.
Some Bluetooth speakers excel at packing in as much functionality as the unit can handle while keeping the price down. Other speakers shuck excess functionality in favor of premium build materials instead. Whatever path you choose to go down, you'll be greeted with many options to suit your personal tastes.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "microsoft-bluetooth-notebook-mouse-5000-macwindows", AllowCustomerReviews = true, Price = 37M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Electronics & Software").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productPortableSoundSpeakers); await InsertInstallationDataAsync(productPortableSoundSpeakers); await InsertInstallationDataAsync(new ProductCategory { ProductId = productPortableSoundSpeakers.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Others").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productPortableSoundSpeakers, "product_Speakers.jpeg"); relatedProducts.AddRange(new[] { new RelatedProduct { ProductId1 = productLeica.Id, ProductId2 = productHtcOneMini.Id }, new RelatedProduct { ProductId1 = productLeica.Id, ProductId2 = productNikonD5500DSLR.Id }, new RelatedProduct { ProductId1 = productLeica.Id, ProductId2 = productAppleICam.Id }, new RelatedProduct { ProductId1 = productLeica.Id, ProductId2 = productNokiaLumia.Id }, new RelatedProduct { ProductId1 = productHtcOne.Id, ProductId2 = productHtcOneMini.Id }, new RelatedProduct { ProductId1 = productHtcOne.Id, ProductId2 = productNokiaLumia.Id }, new RelatedProduct { ProductId1 = productHtcOne.Id, ProductId2 = productBeatsPill.Id }, new RelatedProduct { ProductId1 = productHtcOne.Id, ProductId2 = productPortableSoundSpeakers.Id }, new RelatedProduct { ProductId1 = productHtcOneMini.Id, ProductId2 = productHtcOne.Id }, new RelatedProduct { ProductId1 = productHtcOneMini.Id, ProductId2 = productNokiaLumia.Id }, new RelatedProduct { ProductId1 = productHtcOneMini.Id, ProductId2 = productBeatsPill.Id }, new RelatedProduct { ProductId1 = productHtcOneMini.Id, ProductId2 = productPortableSoundSpeakers.Id }, new RelatedProduct { ProductId1 = productNokiaLumia.Id, ProductId2 = productHtcOne.Id }, new RelatedProduct { ProductId1 = productNokiaLumia.Id, ProductId2 = productHtcOneMini.Id }, new RelatedProduct { ProductId1 = productNokiaLumia.Id, ProductId2 = productBeatsPill.Id }, new RelatedProduct { ProductId1 = productNokiaLumia.Id, ProductId2 = productPortableSoundSpeakers.Id } }); } ///Each Rosh Run is personalized and exclusive, handmade in our workshop Custom. Run Your Rosh creations born from the hand of an artist specialized in sneakers, more than 10 years of experience.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "adidas-womens-supernova-csh-7-running-shoe", AllowCustomerReviews = true, Price = 40M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productNikeFloral); await InsertInstallationDataAsync(productNikeFloral); await InsertInstallationDataAsync(new ProductCategory { ProductId = productNikeFloral.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Shoes").Id, DisplayOrder = 1 }); await InsertInstallationDataAsync(new ProductManufacturer { ProductId = productNikeFloral.Id, ManufacturerId = _manufacturerRepository.Table.Single(c => c.Name == "Nike").Id, DisplayOrder = 2 }); var picProductNikeFloralShoe1Id = await InsertProductPictureAsync(productNikeFloral, "product_NikeFloralShoe_1.jpg"); var picProductNikeFloralShoe2Id = await InsertProductPictureAsync(productNikeFloral, "product_NikeFloralShoe_2.jpg", 2); await InsertInstallationDataAsync(new ProductSpecificationAttribute { ProductId = productNikeFloral.Id, AllowFiltering = true, ShowOnProductPage = false, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Color", "Grey") }); var pamSize = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productNikeFloral.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Size").Id, AttributeControlType = AttributeControlType.DropdownList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "8", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "9", DisplayOrder = 2 }, new ProductAttributeValue { ProductAttributeMappingId = pamSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "10", DisplayOrder = 3 }, new ProductAttributeValue { ProductAttributeMappingId = pamSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "11", DisplayOrder = 4 }); var pamColor = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productNikeFloral.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Color").Id, AttributeControlType = AttributeControlType.DropdownList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamColor.Id, AttributeValueType = AttributeValueType.Simple, Name = "White/Blue", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamColor.Id, AttributeValueType = AttributeValueType.Simple, Name = "White/Black", DisplayOrder = 2 }); var pamPrint = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productNikeFloral.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Print").Id, AttributeControlType = AttributeControlType.ImageSquares, IsRequired = true }); var pavNatural = await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamPrint.Id, AttributeValueType = AttributeValueType.Simple, Name = "Natural", DisplayOrder = 1, ImageSquaresPictureId = (await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "p_attribute_print_2.jpg")), MimeTypes.ImagePJpeg, await pictureService.GetPictureSeNameAsync("Natural Print"))).Id }); await InsertInstallationDataAsync(new ProductAttributeValuePicture { PictureId = picProductNikeFloralShoe1Id, ProductAttributeValueId = pavNatural.Id }); var pavFresh = await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamPrint.Id, AttributeValueType = AttributeValueType.Simple, Name = "Fresh", DisplayOrder = 2, ImageSquaresPictureId = (await pictureService.InsertPictureAsync(await _fileProvider.ReadAllBytesAsync(_fileProvider.Combine(sampleImagesPath, "p_attribute_print_1.jpg")), MimeTypes.ImagePJpeg, await pictureService.GetPictureSeNameAsync("Fresh Print"))).Id }); await InsertInstallationDataAsync( new ProductAttributeValuePicture { PictureId = picProductNikeFloralShoe2Id, ProductAttributeValueId = pavFresh.Id }); await AddProductTagAsync(productNikeFloral, "cool"); await AddProductTagAsync(productNikeFloral, "shoes"); await AddProductTagAsync(productNikeFloral, "apparel"); await UpdateInstallationDataAsync(productNikeFloral); var productAdidas = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "adidas Consortium Campus 80s Running Shoes", Sku = "AD_C80_RS", ShortDescription = "adidas Consortium Campus 80s Primeknit Light Maroon/Running Shoes", FullDescription = "One of three colorways of the adidas Consortium Campus 80s Primeknit set to drop alongside each other. This pair comes in light maroon and running white. Featuring a maroon-based primeknit upper with white accents. A limited release, look out for these at select adidas Consortium accounts worldwide.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "etnies-mens-digit-sneaker", AllowCustomerReviews = true, Price = 27.56M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, //ShowOnHomepage = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productAdidas); await InsertInstallationDataAsync(productAdidas); await InsertInstallationDataAsync(new ProductCategory { ProductId = productAdidas.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Shoes").Id, DisplayOrder = 1 }); var picProductAdidasId = await InsertProductPictureAsync(productAdidas, "product_adidas.jpg"); var picProductAdidas2Id = await InsertProductPictureAsync(productAdidas, "product_adidas_2.jpg", 2); var picProductAdidas3Id = await InsertProductPictureAsync(productAdidas, "product_adidas_3.jpg", 3); await InsertInstallationDataAsync( new ProductSpecificationAttribute { ProductId = productAdidas.Id, AllowFiltering = true, ShowOnProductPage = false, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Color", "Grey") }, new ProductSpecificationAttribute { ProductId = productAdidas.Id, AllowFiltering = true, ShowOnProductPage = false, DisplayOrder = 2, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Color", "Red") }, new ProductSpecificationAttribute { ProductId = productAdidas.Id, AllowFiltering = true, ShowOnProductPage = false, DisplayOrder = 3, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Color", "Blue") }); var pamAdidasSize = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productAdidas.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Size").Id, AttributeControlType = AttributeControlType.DropdownList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamAdidasSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "8", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamAdidasSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "9", DisplayOrder = 2 }, new ProductAttributeValue { ProductAttributeMappingId = pamAdidasSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "10", DisplayOrder = 3 }, new ProductAttributeValue { ProductAttributeMappingId = pamAdidasSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "11", DisplayOrder = 4 }); var pamAdidasColor = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productAdidas.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Color").Id, AttributeControlType = AttributeControlType.ColorSquares, IsRequired = true }); var pavRed = await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamAdidasColor.Id, AttributeValueType = AttributeValueType.Simple, Name = "Red", IsPreSelected = true, ColorSquaresRgb = "#663030", DisplayOrder = 1 }); await InsertInstallationDataAsync( new ProductAttributeValuePicture { PictureId = picProductAdidasId, ProductAttributeValueId = pavRed.Id }); var pavBlue = await InsertInstallationDataAsync(new ProductAttributeValue { ProductAttributeMappingId = pamAdidasColor.Id, AttributeValueType = AttributeValueType.Simple, Name = "Blue", ColorSquaresRgb = "#363656", DisplayOrder = 2 }); await InsertInstallationDataAsync( new ProductAttributeValuePicture { PictureId = picProductAdidas2Id, ProductAttributeValueId = pavBlue.Id }); var pavSilver = await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamAdidasColor.Id, AttributeValueType = AttributeValueType.Simple, Name = "Silver", ColorSquaresRgb = "#c5c5d5", DisplayOrder = 3 }); await InsertInstallationDataAsync( new ProductAttributeValuePicture { PictureId = picProductAdidas3Id, ProductAttributeValueId = pavSilver.Id }); await AddProductTagAsync(productAdidas, "cool"); await AddProductTagAsync(productAdidas, "shoes"); await AddProductTagAsync(productAdidas, "apparel"); await UpdateInstallationDataAsync(productAdidas); var productNikeZoom = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Nike SB Zoom Stefan Janoski \"Medium Mint\"", Sku = "NK_ZSJ_MM", ShortDescription = "Nike SB Zoom Stefan Janoski Dark Grey Medium Mint Teal ...", FullDescription = "The newly Nike SB Zoom Stefan Janoski gets hit with a \"Medium Mint\" accents that sits atop a Dark Grey suede. Expected to drop in October.", ProductTemplateId = productTemplateSimple.Id, //SeName = "v-blue-juniors-cuffed-denim-short-with-rhinestones", AllowCustomerReviews = true, Price = 30M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productNikeZoom); await InsertInstallationDataAsync(productNikeZoom); await InsertInstallationDataAsync(new ProductCategory { ProductId = productNikeZoom.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Shoes").Id, DisplayOrder = 1 }); await InsertInstallationDataAsync(new ProductManufacturer { ProductId = productNikeZoom.Id, ManufacturerId = _manufacturerRepository.Table.Single(c => c.Name == "Nike").Id, DisplayOrder = 2 }); await InsertProductPictureAsync(productNikeZoom, "product_NikeZoom.jpg"); await InsertInstallationDataAsync(new ProductSpecificationAttribute { ProductId = productNikeZoom.Id, AllowFiltering = true, ShowOnProductPage = false, DisplayOrder = 1, SpecificationAttributeOptionId = await GetSpecificationAttributeOptionIdAsync("Color", "Grey") }); await AddProductTagAsync(productNikeZoom, "jeans"); await AddProductTagAsync(productNikeZoom, "cool"); await AddProductTagAsync(productNikeZoom, "apparel"); var productNikeTailwind = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Nike Tailwind Loose Short-Sleeve Running Shirt", Sku = "NK_TLS_RS", ShortDescription = string.Empty, FullDescription = "Boost your adrenaline with the Nike® Women's Tailwind Running Shirt. The lightweight, slouchy fit is great for layering, and moisture-wicking fabrics keep you feeling at your best. This tee has a notched hem for an enhanced range of motion, while flat seams with reinforcement tape lessen discomfort and irritation over longer distances. Put your keys and card in the side zip pocket and take off in your Nike® running t-shirt.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "50s-rockabilly-polka-dot-top-jr-plus-size", AllowCustomerReviews = true, Published = true, Price = 15M, IsShipEnabled = true, Weight = 1, Length = 2, Width = 3, Height = 3, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productNikeTailwind); await InsertInstallationDataAsync(productNikeTailwind); await InsertInstallationDataAsync(new ProductCategory { ProductId = productNikeTailwind.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Clothing").Id, DisplayOrder = 1 }); await InsertInstallationDataAsync(new ProductManufacturer { ProductId = productNikeTailwind.Id, ManufacturerId = _manufacturerRepository.Table.Single(c => c.Name == "Nike").Id, DisplayOrder = 2 }); await InsertProductPictureAsync(productNikeTailwind, "product_NikeShirt.jpg"); var pamNikeSize = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productNikeTailwind.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Size").Id, AttributeControlType = AttributeControlType.DropdownList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamNikeSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "Small", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamNikeSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "1X", DisplayOrder = 2 }, new ProductAttributeValue { ProductAttributeMappingId = pamNikeSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "2X", DisplayOrder = 3 }, new ProductAttributeValue { ProductAttributeMappingId = pamNikeSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "3X", DisplayOrder = 4 }, new ProductAttributeValue { ProductAttributeMappingId = pamNikeSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "4X", DisplayOrder = 5 }, new ProductAttributeValue { ProductAttributeMappingId = pamNikeSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "5X", DisplayOrder = 6 }); await AddProductTagAsync(productNikeTailwind, "cool"); await AddProductTagAsync(productNikeTailwind, "apparel"); await AddProductTagAsync(productNikeTailwind, "shirt"); var productOversizedWomenTShirt = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Oversized Women T-Shirt", Sku = "WM_OVR_TS", ShortDescription = string.Empty, FullDescription = "This oversized women t-Shirt needs minimum ironing. It is a great product at a great value!
", ProductTemplateId = productTemplateSimple.Id, //SeName = "arrow-mens-wrinkle-free-pinpoint-solid-long-sleeve", AllowCustomerReviews = true, Price = 24M, IsShipEnabled = true, Weight = 4, Length = 3, Width = 3, Height = 3, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow, HasTierPrices = true }; allProducts.Add(productOversizedWomenTShirt); await InsertInstallationDataAsync(productOversizedWomenTShirt); await InsertInstallationDataAsync(new ProductCategory { ProductId = productOversizedWomenTShirt.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Clothing").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productOversizedWomenTShirt, "product_WomenTShirt.jpg"); await InsertInstallationDataAsync(new ListComfort comes in all shapes and forms, yet this tee out does it all. Rising above the rest, our classic cotton crew provides the simple practicality you need to make it through the day. Tag-free, relaxed fit wears well under dress shirts or stands alone in laid-back style. Reinforced collar and lightweight feel give way to long-lasting shape and breathability. One less thing to worry about, rely on this tee to provide comfort and ease with every wear.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "custom-t-shirt", AllowCustomerReviews = true, Price = 15M, IsShipEnabled = true, Weight = 4, Length = 3, Width = 3, Height = 3, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productCustomTShirt); await InsertInstallationDataAsync(productCustomTShirt); await InsertInstallationDataAsync(new ProductCategory { ProductId = productCustomTShirt.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Clothing").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productCustomTShirt, "product_CustomTShirt.jpeg"); await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productCustomTShirt.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Custom Text").Id, TextPrompt = "Enter your text:", AttributeControlType = AttributeControlType.TextBox, IsRequired = true }); await AddProductTagAsync(productCustomTShirt, "cool"); await AddProductTagAsync(productCustomTShirt, "shirt"); await AddProductTagAsync(productCustomTShirt, "apparel"); var productLeviJeans = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Levi's 511 Jeans", Sku = "LV_511_JN", ShortDescription = "Levi's Faded Black 511 Jeans ", FullDescription = "Between a skinny and straight fit, our 511™ slim fit jeans are cut close without being too restricting. Slim throughout the thigh and leg opening for a long and lean look.
Printed poplin 5 panel camp hat with debossed leather patch and web closure
", ProductTemplateId = productTemplateSimple.Id, //SeName = "indiana-jones-shapeable-wool-hat", AllowCustomerReviews = true, Price = 30M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productObeyHat); await InsertInstallationDataAsync(productObeyHat); await InsertInstallationDataAsync(new ProductCategory { ProductId = productObeyHat.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Accessories").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productObeyHat, "product_hat.jpg"); var pamObeyHatSize = await InsertInstallationDataAsync( new ProductAttributeMapping { ProductId = productObeyHat.Id, ProductAttributeId = _productAttributeRepository.Table.Single(x => x.Name == "Size").Id, AttributeControlType = AttributeControlType.DropdownList, IsRequired = true }); await InsertInstallationDataAsync( new ProductAttributeValue { ProductAttributeMappingId = pamObeyHatSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "Small", DisplayOrder = 1 }, new ProductAttributeValue { ProductAttributeMappingId = pamObeyHatSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "Medium", DisplayOrder = 2 }, new ProductAttributeValue { ProductAttributeMappingId = pamObeyHatSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "Large", DisplayOrder = 3 }, new ProductAttributeValue { ProductAttributeMappingId = pamObeyHatSize.Id, AttributeValueType = AttributeValueType.Simple, Name = "X-Large", DisplayOrder = 4 }); await AddProductTagAsync(productObeyHat, "apparel"); await AddProductTagAsync(productObeyHat, "cool"); var productBelt = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Reversible Horseferry Check Belt", Sku = "RH_CHK_BL", ShortDescription = "Reversible belt in Horseferry check with smooth leather trim", FullDescription = "Reversible belt in Horseferry check with smooth leather trim
Leather lining, polished metal buckle
", ProductTemplateId = productTemplateSimple.Id, //SeName = "nike-golf-casual-belt", AllowCustomerReviews = true, Price = 45M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, ProductAvailabilityRangeId = productAvailabilityRange.Id, StockQuantity = 0, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productBelt); await InsertInstallationDataAsync(productBelt); await InsertInstallationDataAsync(new ProductCategory { ProductId = productBelt.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Accessories").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productBelt, "product_Belt.jpeg"); var productSunglasses = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Ray Ban Aviator Sunglasses", Sku = "RB_AVR_SG", ShortDescription = "Aviator sunglasses are one of the first widely popularized styles of modern day sunwear.", FullDescription = "Since 1937, Ray-Ban can genuinely claim the title as the world's leading sunglasses and optical eyewear brand. Combining the best of fashion and sports performance, the Ray-Ban line of Sunglasses delivers a truly classic style that will have you looking great today and for years to come.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "ray-ban-aviator-sunglasses-rb-3025", AllowCustomerReviews = true, Price = 25M, IsShipEnabled = true, Weight = 7, Length = 7, Width = 7, Height = 7, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Apparel").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productSunglasses); await InsertInstallationDataAsync(productSunglasses); await InsertInstallationDataAsync(new ProductCategory { ProductId = productSunglasses.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Accessories").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productSunglasses, "product_Sunglasses.jpg"); await AddProductTagAsync(productSunglasses, "apparel"); await AddProductTagAsync(productSunglasses, "cool"); relatedProducts.AddRange(new[] { new RelatedProduct { ProductId1 = productAdidas.Id, ProductId2 = productLeviJeans.Id }, new RelatedProduct { ProductId1 = productAdidas.Id, ProductId2 = productNikeFloral.Id }, new RelatedProduct { ProductId1 = productAdidas.Id, ProductId2 = productNikeZoom.Id }, new RelatedProduct { ProductId1 = productAdidas.Id, ProductId2 = productNikeTailwind.Id }, new RelatedProduct { ProductId1 = productLeviJeans.Id, ProductId2 = productAdidas.Id }, new RelatedProduct { ProductId1 = productLeviJeans.Id, ProductId2 = productNikeFloral.Id }, new RelatedProduct { ProductId1 = productLeviJeans.Id, ProductId2 = productNikeZoom.Id }, new RelatedProduct { ProductId1 = productLeviJeans.Id, ProductId2 = productNikeTailwind.Id }, new RelatedProduct { ProductId1 = productCustomTShirt.Id, ProductId2 = productLeviJeans.Id }, new RelatedProduct { ProductId1 = productCustomTShirt.Id, ProductId2 = productNikeTailwind.Id }, new RelatedProduct { ProductId1 = productCustomTShirt.Id, ProductId2 = productOversizedWomenTShirt.Id }, new RelatedProduct { ProductId1 = productCustomTShirt.Id, ProductId2 = productObeyHat.Id } }); } ///Original Release Date: September 4, 2012
Release Date: September 4, 2012
Genre - Alternative rock, indie rock, electronic rock
Label - Interscope/KIDinaKORNER
Copyright: (C) 2011 Interscope Records
", ProductTemplateId = productTemplateSimple.Id, //SeName = "poker-face", AllowCustomerReviews = true, Price = 2.8M, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Downloadable Products").Id, ManageInventoryMethod = ManageInventoryMethod.DontManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, IsDownload = true, DownloadId = downloadNightVision1.Id, DownloadActivationType = DownloadActivationType.WhenOrderIsPaid, UnlimitedDownloads = true, HasUserAgreement = false, HasSampleDownload = true, SampleDownloadId = downloadNightVision2.Id, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productNightVision); await InsertInstallationDataAsync(productNightVision); await InsertInstallationDataAsync(new ProductCategory { ProductId = productNightVision.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Digital downloads").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productNightVision, "product_NightVisions.jpeg"); await AddProductTagAsync(productNightVision, "awesome"); await AddProductTagAsync(productNightVision, "digital"); var downloadIfYouWait1 = new Download { DownloadGuid = Guid.NewGuid(), ContentType = MimeTypes.ApplicationXZipCo, DownloadBinary = await _fileProvider.ReadAllBytesAsync(sampleDownloadsPath + "product_IfYouWait_1.zip"), Extension = ".zip", Filename = "If_You_Wait_1", IsNew = true }; await downloadService.InsertDownloadAsync(downloadIfYouWait1); var downloadIfYouWait2 = new Download { DownloadGuid = Guid.NewGuid(), ContentType = MimeTypes.TextPlain, DownloadBinary = await _fileProvider.ReadAllBytesAsync(sampleDownloadsPath + "product_IfYouWait_2.txt"), Extension = ".txt", Filename = "If_You_Wait_1", IsNew = true }; await downloadService.InsertDownloadAsync(downloadIfYouWait2); var productIfYouWait = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "If You Wait (donation)", Sku = "IF_YOU_WT", ShortDescription = "If You Wait is the debut studio album by English indie pop band London Grammar", FullDescription = "Original Release Date: September 6, 2013
Genre - Electronica, dream pop downtempo, pop
Label - Metal & Dust/Ministry of Sound
Producer - Tim Bran, Roy Kerr London, Grammar
Length - 43:22
", ProductTemplateId = productTemplateSimple.Id, //SeName = "single-ladies-put-a-ring-on-it", CustomerEntersPrice = true, MinimumCustomerEnteredPrice = 0.5M, MaximumCustomerEnteredPrice = 100M, AllowCustomerReviews = true, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Downloadable Products").Id, ManageInventoryMethod = ManageInventoryMethod.DontManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, IsDownload = true, DownloadId = downloadIfYouWait1.Id, DownloadActivationType = DownloadActivationType.WhenOrderIsPaid, UnlimitedDownloads = true, HasUserAgreement = false, HasSampleDownload = true, SampleDownloadId = downloadIfYouWait2.Id, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productIfYouWait); await InsertInstallationDataAsync(productIfYouWait); await InsertInstallationDataAsync(new ProductCategory { ProductId = productIfYouWait.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Digital downloads").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productIfYouWait, "product_IfYouWait.jpeg"); await AddProductTagAsync(productIfYouWait, "digital"); await AddProductTagAsync(productIfYouWait, "awesome"); var downloadScienceAndFaith = new Download { DownloadGuid = Guid.NewGuid(), ContentType = MimeTypes.ApplicationXZipCo, DownloadBinary = await _fileProvider.ReadAllBytesAsync(sampleDownloadsPath + "product_ScienceAndFaith_1.zip"), Extension = ".zip", Filename = "Science_And_Faith", IsNew = true }; await downloadService.InsertDownloadAsync(downloadScienceAndFaith); var productScienceAndFaith = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Science & Faith", Sku = "SCI_FAITH", ShortDescription = "Science & Faith is the second studio album by Irish pop rock band The Script.", FullDescription = "# Original Release Date: September 10, 2010
# Label: RCA, Epic/Phonogenic(America)
# Copyright: 2010 RCA Records.
The novel presents a future American society where books are outlawed and firemen burn any that are found. The title refers to the temperature that Bradbury understood to be the autoignition point of paper.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "best-grilling-recipes", AllowCustomerReviews = true, Price = 27M, OldPrice = 30M, IsShipEnabled = true, IsFreeShipping = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Books").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productFahrenheit); await InsertInstallationDataAsync(productFahrenheit); await InsertInstallationDataAsync(new ProductCategory { ProductId = productFahrenheit.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Books").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productFahrenheit, "product_Fahrenheit451.jpeg"); await AddProductTagAsync(productFahrenheit, "awesome"); await AddProductTagAsync(productFahrenheit, "book"); await AddProductTagAsync(productFahrenheit, "nice"); var productFirstPrizePies = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "First Prize Pies", Sku = "FIRST_PRP", ShortDescription = "Allison Kave made pies as a hobby, until one day her boyfriend convinced her to enter a Brooklyn pie-making contest. She won. In fact, her pies were such a hit that she turned pro.", FullDescription = "First Prize Pies, a boutique, made-to-order pie business that originated on New York's Lower East Side, has become synonymous with tempting and unusual confections. For the home baker who is passionate about seasonal ingredients and loves a creative approach to recipes, First Prize Pies serves up 52 weeks of seasonal and eclectic pastries in an interesting pie-a-week format. Clear instructions, technical tips and creative encouragement guide novice bakers as well as pie mavens. With its nostalgia-evoking photos of homemade pies fresh out of the oven, First Prize Pies will be as giftable as it is practical.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "eatingwell-in-season", AllowCustomerReviews = true, Price = 51M, OldPrice = 67M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Books").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productFirstPrizePies); await InsertInstallationDataAsync(productFirstPrizePies); await InsertInstallationDataAsync(new ProductCategory { ProductId = productFirstPrizePies.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Books").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productFirstPrizePies, "product_FirstPrizePies.jpeg"); await AddProductTagAsync(productFirstPrizePies, "book"); var productPrideAndPrejudice = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Pride and Prejudice", Sku = "PRIDE_PRJ", ShortDescription = "Pride and Prejudice is a novel of manners by Jane Austen, first published in 1813.", FullDescription = "Set in England in the early 19th century, Pride and Prejudice tells the story of Mr and Mrs Bennet's five unmarried daughters after the rich and eligible Mr Bingley and his status-conscious friend, Mr Darcy, have moved into their neighbourhood. While Bingley takes an immediate liking to the eldest Bennet daughter, Jane, Darcy has difficulty adapting to local society and repeatedly clashes with the second-eldest Bennet daughter, Elizabeth.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "the-best-skillet-recipes", AllowCustomerReviews = true, Price = 24M, OldPrice = 35M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Books").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productPrideAndPrejudice); await InsertInstallationDataAsync(productPrideAndPrejudice); await InsertInstallationDataAsync(new ProductCategory { ProductId = productPrideAndPrejudice.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Books").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productPrideAndPrejudice, "product_PrideAndPrejudice.jpeg"); await AddProductTagAsync(productPrideAndPrejudice, "book"); relatedProducts.AddRange(new[] { new RelatedProduct { ProductId1 = productPrideAndPrejudice.Id, ProductId2 = productFirstPrizePies.Id }, new RelatedProduct { ProductId1 = productPrideAndPrejudice.Id, ProductId2 = productFahrenheit.Id }, new RelatedProduct { ProductId1 = productFirstPrizePies.Id, ProductId2 = productPrideAndPrejudice.Id }, new RelatedProduct { ProductId1 = productFirstPrizePies.Id, ProductId2 = productFahrenheit.Id }, new RelatedProduct { ProductId1 = productFahrenheit.Id, ProductId2 = productFirstPrizePies.Id }, new RelatedProduct { ProductId1 = productFahrenheit.Id, ProductId2 = productPrideAndPrejudice.Id } }); } ///For those who like jewelry, creating their ownelegant jewelry from gemstone beads provides an economical way to incorporate genuine gemstones into your jewelry wardrobe. Manufacturers create beads from all kinds of precious gemstones and semi-precious gemstones, which are available in bead shops, craft stores, and online marketplaces.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "diamond-pave-earrings", AllowCustomerReviews = true, IsRental = true, RentalPriceLength = 1, RentalPricePeriod = RentalPricePeriod.Days, Price = 30M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Jewelry").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, MarkAsNew = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productElegantGemstoneNecklace); await InsertInstallationDataAsync(productElegantGemstoneNecklace); await InsertInstallationDataAsync(new ProductCategory { ProductId = productElegantGemstoneNecklace.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Jewelry").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productElegantGemstoneNecklace, "product_GemstoneNecklaces.jpg"); await AddProductTagAsync(productElegantGemstoneNecklace, "jewelry"); await AddProductTagAsync(productElegantGemstoneNecklace, "awesome"); var productFlowerGirlBracelet = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Flower Girl Bracelet", Sku = "FL_GIRL_B", ShortDescription = "Personalised Flower Braceled", FullDescription = "This is a great gift for your flower girl to wear on your wedding day. A delicate bracelet that is made with silver plated soldered cable chain, gives this bracelet a dainty look for young wrist. A Swarovski heart, shown in Rose, hangs off a silver plated flower. Hanging alongside the heart is a silver plated heart charm with Flower Girl engraved on both sides. This is a great style for the younger flower girl.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "diamond-tennis-bracelet", AllowCustomerReviews = true, Price = 360M, IsShipEnabled = true, IsFreeShipping = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Jewelry").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productFlowerGirlBracelet); await InsertInstallationDataAsync(productFlowerGirlBracelet); await InsertInstallationDataAsync(new ProductCategory { ProductId = productFlowerGirlBracelet.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Jewelry").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productFlowerGirlBracelet, "product_FlowerBracelet.jpg"); await AddProductTagAsync(productFlowerGirlBracelet, "awesome"); await AddProductTagAsync(productFlowerGirlBracelet, "jewelry"); var productEngagementRing = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "Vintage Style Engagement Ring", Sku = "VS_ENG_RN", ShortDescription = "1.24 Carat (ctw) in 14K White Gold (Certified)", FullDescription = "Dazzle her with this gleaming 14 karat white gold vintage proposal. A ravishing collection of 11 decadent diamonds come together to invigorate a superbly ornate gold shank. Total diamond weight on this antique style engagement ring equals 1 1/4 carat (ctw). Item includes diamond certificate.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "vintage-style-three-stone-diamond-engagement-ring", AllowCustomerReviews = true, Price = 2100M, IsShipEnabled = true, Weight = 2, Length = 2, Width = 2, Height = 2, TaxCategoryId = _taxCategoryRepository.Table.Single(tc => tc.Name == "Jewelry").Id, ManageInventoryMethod = ManageInventoryMethod.ManageStock, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, DisplayStockAvailability = true, LowStockActivity = LowStockActivity.DisableBuyButton, BackorderMode = BackorderMode.NoBackorders, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(productEngagementRing); await InsertInstallationDataAsync(productEngagementRing); await InsertInstallationDataAsync(new ProductCategory { ProductId = productEngagementRing.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Jewelry").Id, DisplayOrder = 1 }); await InsertProductPictureAsync(productEngagementRing, "product_EngagementRing_1.jpg"); await AddProductTagAsync(productEngagementRing, "jewelry"); await AddProductTagAsync(productEngagementRing, "awesome"); relatedProducts.AddRange(new[] { new RelatedProduct { ProductId1 = productFlowerGirlBracelet.Id, ProductId2 = productEngagementRing.Id }, new RelatedProduct { ProductId1 = productFlowerGirlBracelet.Id, ProductId2 = productElegantGemstoneNecklace.Id }, new RelatedProduct { ProductId1 = productEngagementRing.Id, ProductId2 = productFlowerGirlBracelet.Id }, new RelatedProduct { ProductId1 = productEngagementRing.Id, ProductId2 = productElegantGemstoneNecklace.Id }, new RelatedProduct { ProductId1 = productElegantGemstoneNecklace.Id, ProductId2 = productFlowerGirlBracelet.Id }, new RelatedProduct { ProductId1 = productElegantGemstoneNecklace.Id, ProductId2 = productEngagementRing.Id } }); } ///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.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "25-virtual-gift-card", AllowCustomerReviews = true, Price = 25M, IsGiftCard = true, GiftCardType = GiftCardType.Virtual, ManageInventoryMethod = ManageInventoryMethod.DontManageStock, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, Published = true, ShowOnHomepage = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(product25GiftCard); await InsertInstallationDataAsync(product25GiftCard); await InsertInstallationDataAsync(new ProductCategory { ProductId = product25GiftCard.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Gift Cards").Id, DisplayOrder = 2 }); await InsertProductPictureAsync(product25GiftCard, "product_25giftcart.jpeg"); await AddProductTagAsync(product25GiftCard, "nice"); await AddProductTagAsync(product25GiftCard, "gift"); var product50GiftCard = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "$50 Physical Gift Card", Sku = "PG_CR_050", 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.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "50-physical-gift-card", AllowCustomerReviews = true, Price = 50M, IsGiftCard = true, GiftCardType = GiftCardType.Physical, IsShipEnabled = true, IsFreeShipping = true, DeliveryDateId = deliveryDate.Id, Weight = 1, Length = 1, Width = 1, Height = 1, ManageInventoryMethod = ManageInventoryMethod.DontManageStock, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, Published = true, MarkAsNew = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(product50GiftCard); await InsertInstallationDataAsync(product50GiftCard); await InsertInstallationDataAsync(new ProductCategory { ProductId = product50GiftCard.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Gift Cards").Id, DisplayOrder = 3 }); await InsertProductPictureAsync(product50GiftCard, "product_50giftcart.jpeg"); var product100GiftCard = new Product { ProductType = ProductType.SimpleProduct, VisibleIndividually = true, Name = "$100 Physical Gift Card", Sku = "PG_CR_100", 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.
", ProductTemplateId = productTemplateSimple.Id, //SeName = "100-physical-gift-card", AllowCustomerReviews = true, Price = 100M, IsGiftCard = true, GiftCardType = GiftCardType.Physical, IsShipEnabled = true, DeliveryDateId = deliveryDate.Id, Weight = 1, Length = 1, Width = 1, Height = 1, ManageInventoryMethod = ManageInventoryMethod.DontManageStock, OrderMinimumQuantity = 1, OrderMaximumQuantity = 10000, StockQuantity = 10000, NotifyAdminForQuantityBelow = 1, AllowBackInStockSubscriptions = false, Published = true, CreatedOnUtc = DateTime.UtcNow, UpdatedOnUtc = DateTime.UtcNow }; allProducts.Add(product100GiftCard); await InsertInstallationDataAsync(product100GiftCard); await InsertInstallationDataAsync(new ProductCategory { ProductId = product100GiftCard.Id, CategoryId = _categoryRepository.Table.Single(c => c.Name == "Gift Cards").Id, DisplayOrder = 4 }); await InsertProductPictureAsync(product100GiftCard, "product_100giftcart.jpeg"); } ///When you start an online business, your main aim is to sell the products, right? As a business owner, you want to showcase your store to more audience. So, you decide to go on social media, why? Because everyone is doing it, then why shouldn’t you? It is tempting as everyone is aware of the hype that it is the best way to market your brand.
Do you know having a blog for your online store can be very helpful? Many businesses do not understand the importance of having a blog because they don’t have time to post quality content.
Today, we will talk about how a blog can play an important role for the growth of your e-Commerce business. Later, we will also discuss some tips that will be helpful to you for writing business related blog posts.
", Body = "When you start an online business, your main aim is to sell the products, right? As a business owner, you want to showcase your store to more audience. So, you decide to go on social media, why? Because everyone is doing it, then why shouldn’t you? It is tempting as everyone is aware of the hype that it is the best way to market your brand.
Do you know having a blog for your online store can be very helpful? Many businesses do not understand the importance of having a blog because they don’t have time to post quality content.
Today, we will talk about how a blog can play an important role for the growth of your e-Commerce business. Later, we will also discuss some tips that will be helpful to you for writing business related blog posts.
Blogging is one of the best way by which you can educate your customers about your products/services that you offer. This helps you as a business owner to bring more value to your brand. When you provide useful information to the customers about your products, they are more likely to buy products from you. You can use your blog for providing tutorials in regard to the use of your products.
For example: If you have an online store that offers computer parts. You can write tutorials about how to build a computer or how to make your computer’s performance better. While talking about these things, you can mention products in the tutorials and provide link to your products within the blog post from your website. Your potential customers might get different ideas of using your product and will likely to buy products from your online store.
Blog posts create more internal links to your website which helps a lot in SEO. Blog is a great way to have quality content on your website related to your products/services which is indexed by all major search engines like Google, Bing and Yahoo. The more original content you write in your blog post, the better ranking you will get in search engines. SEO is an on-going process and posting blog posts regularly keeps your site active all the time which is beneficial when it comes to search engine optimization.
For example: Let’s say you sell “Sony Television Model XYZ” and you regularly publish blog posts about your product. Now, whenever someone searches for “Sony Television Model XYZ”, Google will crawl on your website knowing that you have something to do with this particular product. Hence, your website will show up on the search result page whenever this item is being searched.
If you own an online business, there are so many ways you can share different stories with your audience in regard your products/services that you offer. Talk about how you started your business, share stories that educate your audience about what’s new in your industry, share stories about how your product/service was beneficial to someone or share anything that you think your audience might find interesting (it does not have to be related to your product). This kind of blogging shows that you are an expert in your industry and interested in educating your audience. It sets you apart in the competitive market. This gives you an opportunity to showcase your expertise by educating the visitors and it can turn your audience into buyers.
Fun Fact: Did you know that 92% of companies who decided to blog acquired customers through their blog?
nopCommerce is great e-Commerce solution that also offers a variety of CMS features including blog. A store owner has full access for managing the blog posts and related comments.
", Tags = "e-commerce, blog, moey", CreatedOnUtc = DateTime.UtcNow }, new() { AllowComments = true, LanguageId = defaultLanguage.Id, Title = "Why your online store needs a wish list", BodyOverview = "What comes to your mind, when you hear the term” wish list”? The application of this feature is exactly how it sounds like: a list of things that you wish to get. As an online store owner, would you like your customers to be able to save products in a wish list so that they review or buy them later? Would you like your customers to be able to share their wish list with friends and family for gift giving?
Offering your customers a feature of wish list as part of shopping cart is a great way to build loyalty to your store site. Having the feature of wish list on a store site allows online businesses to engage with their customers in a smart way as it allows the shoppers to create a list of what they desire and their preferences for future purchase.
", Body = "What comes to your mind, when you hear the term” wish list”? The application of this feature is exactly how it sounds like: a list of things that you wish to get. As an online store owner, would you like your customers to be able to save products in a wish list so that they review or buy them later? Would you like your customers to be able to share their wish list with friends and family for gift giving?
Offering your customers a feature of wish list as part of shopping cart is a great way to build loyalty to your store site. Having the feature of wish list on a store site allows online businesses to engage with their customers in a smart way as it allows the shoppers to create a list of what they desire and their preferences for future purchase.
Does every e-Commerce store needs a wish list? The answer to this question in most cases is yes, because of the following reasons:
Understanding the needs of your customers - A wish list is a great way to know what is in your customer’s mind. Try to think the purchase history as a small portion of the customer’s preferences. But, the wish list is like a wide open door that can give any online business a lot of valuable information about their customer and what they like or desire.
Shoppers like to share their wish list with friends and family - Providing your customers a way to email their wish list to their friends and family is a pleasant way to make online shopping enjoyable for the shoppers. It is always a good idea to make the wish list sharable by a unique link so that it can be easily shared though different channels like email or on social media sites.
Wish list can be a great marketing tool – Another way to look at wish list is a great marketing tool because it is extremely targeted and the recipients are always motivated to use it. For example: when your younger brother tells you that his wish list is on a certain e-Commerce store. What is the first thing you are going to do? You are most likely to visit the e-Commerce store, check out the wish list and end up buying something for your younger brother.
So, how a wish list is a marketing tool? The reason is quite simple, it introduce your online store to new customers just how it is explained in the above example.
Encourage customers to return to the store site – Having a feature of wish list on the store site can increase the return traffic because it encourages customers to come back and buy later. Allowing the customers to save the wish list to their online accounts gives them a reason return to the store site and login to the account at any time to view or edit the wish list items.
Wish list can be used for gifts for different occasions like weddings or birthdays. So, what kind of benefits a gift-giver gets from a wish list?
Wish list is a great feature to have on a store site – So, what kind of benefits a business owner gets from a wish list
nopCommerce offers the feature of wish list that allows customers to create a list of products that they desire or planning to buy in future.
", Tags = "e-commerce, nopCommerce, sample tag, money", CreatedOnUtc = DateTime.UtcNow.AddSeconds(1) } }; await InsertInstallationDataAsync(blogPosts); //search engine names foreach (var blogPost in blogPosts) await InsertInstallationDataAsync(new UrlRecord { EntityId = blogPost.Id, EntityName = nameof(BlogPost), LanguageId = blogPost.LanguageId, IsActive = true, Slug = await ValidateSeNameAsync(blogPost, blogPost.Title) }); //comments var defaultCustomer = _customerRepository.Table.FirstOrDefault(x => x.Email == defaultUserEmail) ?? throw new Exception("Cannot load default customer"); //default store var defaultStore = _storeRepository.Table.FirstOrDefault() ?? throw new Exception("No default store could be loaded"); foreach (var blogPost in blogPosts) await blogService.InsertBlogCommentAsync(new BlogComment { BlogPostId = blogPost.Id, CustomerId = defaultCustomer.Id, CommentText = "This is a sample comment for this blog post", IsApproved = true, StoreId = defaultStore.Id, CreatedOnUtc = DateTime.UtcNow }); await UpdateInstallationDataAsync(blogPosts); } ///For full feature list go to nopCommerce.com
Providing outstanding custom search engine optimization, web development services and e-commerce development solutions to our clients at a fair price in a professional manner.
", Published = true, CreatedOnUtc = DateTime.UtcNow }, new() { AllowComments = true, LanguageId = defaultLanguage.Id, Title = "nopCommerce new release!", Short = "nopCommerce includes everything you need to begin your e-commerce online store. We have thought of everything and it's all included! nopCommerce is a fully customizable shopping cart", Full = "nopCommerce includes everything you need to begin your e-commerce online store. We have thought of everything and it's all included!
", Published = true, CreatedOnUtc = DateTime.UtcNow.AddSeconds(1) }, new() { AllowComments = true, LanguageId = defaultLanguage.Id, Title = "New online store is open!", Short = "The new nopCommerce store is open now! We are very excited to offer our new range of products. We will be constantly adding to our range so please register on our site.", Full = "Our online store is officially up and running. Stock up for the holiday season! We have a great selection of items. We will be constantly adding to our range so please register on our site, this will enable you to keep up to date with any new products.
All shipping is worldwide and will leave the same day an order is placed! Happy Shopping and spread the word!!
", Published = true, CreatedOnUtc = DateTime.UtcNow.AddSeconds(2) } }; await InsertInstallationDataAsync(news); //search engine names foreach (var newsItem in news) await InsertInstallationDataAsync(new UrlRecord { EntityId = newsItem.Id, EntityName = nameof(NewsItem), LanguageId = newsItem.LanguageId, IsActive = true, Slug = await ValidateSeNameAsync(newsItem, newsItem.Title) }); //comments var defaultCustomer = _customerRepository.Table.FirstOrDefault(x => x.Email == defaultUserEmail) ?? throw new Exception("Cannot load default customer"); //default store var defaultStore = _storeRepository.Table.FirstOrDefault() ?? throw new Exception("No default store could be loaded"); foreach (var newsItem in news) await newsService.InsertNewsCommentAsync(new NewsComment { NewsItemId = newsItem.Id, CustomerId = defaultCustomer.Id, CommentTitle = "Sample comment title", CommentText = "This is a sample comment...", IsApproved = true, StoreId = defaultStore.Id, CreatedOnUtc = DateTime.UtcNow }); await UpdateInstallationDataAsync(news); } ///