Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Export/import product - add new field/displayordercategory/displayorderbrand/displayordercollection/onsale
KrzysztofPajakd6c1ba0a45ba
diff --git a/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.cs b/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.csindex bd12e58df..99ddd3d84 100644--- a/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.cs+++ b/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.cs@@ -244,6 +244,11 @@ namespace Grand.Business.System.Services.ExportImportnew PropertyByName<Product>("Length", p => p.Length),new PropertyByName<Product>("Width", p => p.Width),new PropertyByName<Product>("Height", p => p.Height),+ new PropertyByName<Product>("DisplayOrder", p => p.DisplayOrder),+ new PropertyByName<Product>("DisplayOrderCategory", p => p.DisplayOrderCategory),+ new PropertyByName<Product>("DisplayOrderBrand", p => p.DisplayOrderBrand),+ new PropertyByName<Product>("DisplayOrderCollection", p => p.DisplayOrderCollection),+ new PropertyByName<Product>("OnSale", p => p.OnSale),new PropertyByName<Product>("CategoryIds", p => string.Join(";", p.ProductCategories.Select(n => n.CategoryId).ToArray())),new PropertyByName<Product>("CollectionIds", p=> string.Join(";", p.ProductCollections.Select(n => n.CollectionId).ToArray())),new PropertyByName<Product>("Picture1", p => GetPictures(p).Result[0]),diff --git a/src/Business/Grand.Business.System/Services/ExportImport/ImportManager.cs b/src/Business/Grand.Business.System/Services/ExportImport/ImportManager.csindex 5b7516dc2..fb36f4eab 100644--- a/src/Business/Grand.Business.System/Services/ExportImport/ImportManager.cs+++ b/src/Business/Grand.Business.System/Services/ExportImport/ImportManager.cs@@ -464,6 +464,21 @@ namespace Grand.Business.System.Services.ExportImportcase "height":product.Height = property.DecimalValue;break;+ case "displayorder":+ product.DisplayOrder = property.IntValue;+ break;+ case "displayordercategory":+ product.DisplayOrderCategory = property.IntValue;+ break;+ case "displayorderbrand":+ product.DisplayOrderBrand = property.IntValue;+ break;+ case "displayordercollection":+ product.DisplayOrderCollection = property.IntValue;+ break;+ case "onsale":+ product.OnSale = property.IntValue;+ break;}}}