Skip to content

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.

API - ignore field RecommendedProduct

KrzysztofPajak0a52938f0967
diff --git a/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs b/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs
index 600449e3a..11ac73336 100644
--- a/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs
+++ b/src/API/Grand.Api/Infrastructure/Mapper/Profiles/ProductProfile.cs
@@ -20,6 +20,7 @@ namespace Grand.Api.Infrastructure.Mapper
.ForMember(dest => dest.TierPrices, mo => mo.Ignore())
.ForMember(dest => dest.ProductWarehouseInventory, mo => mo.Ignore())
.ForMember(dest => dest.CrossSellProduct, mo => mo.Ignore())
+ .ForMember(dest => dest.RecommendedProduct, mo => mo.Ignore())
.ForMember(dest => dest.RelatedProducts, mo => mo.Ignore())
.ForMember(dest => dest.BundleProducts, mo => mo.Ignore())
.ForMember(dest => dest.ProductTags, mo => mo.Ignore())