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
Product entity - add new field RecommendedProduct
KrzysztofPajak76cb408543dd
diff --git a/src/Core/Grand.Domain/Catalog/Product.cs b/src/Core/Grand.Domain/Catalog/Product.csindex 6939763be..79bc67aa4 100644--- a/src/Core/Grand.Domain/Catalog/Product.cs+++ b/src/Core/Grand.Domain/Catalog/Product.cs@@ -23,6 +23,7 @@ namespace Grand.Domain.Catalogprivate ICollection<string> _appliedDiscounts;private ICollection<ProductWarehouseInventory> _productWarehouseInventory;private ICollection<string> _crossSellProduct;+ private ICollection<string> _recommendedProduct;private ICollection<RelatedProduct> _relatedProduct;private ICollection<SimilarProduct> _similarProduct;private ICollection<BundleProduct> _bundleProduct;@@ -670,6 +671,12 @@ namespace Grand.Domain.Catalogprotected set { _crossSellProduct = value; }}+ public virtual ICollection<string> RecommendedProduct+ {+ get { return _recommendedProduct ??= new List<string>(); }+ protected set { _recommendedProduct = value; }+ }+public virtual ICollection<RelatedProduct> RelatedProducts{get { return _relatedProduct ??= new List<RelatedProduct>(); }