protected override void ApplyPackageContentConventions(EPiServer.Find.ClientConventions.TypeConventionBuilder <PackageContent> conventionBuilder) { base.ApplyPackageContentConventions(conventionBuilder); conventionBuilder.ExcludeField(x => IPricingExtensions.DefaultPrice(x)); conventionBuilder.IncludeField(x => Foundation.Commerce.Extensions.EntryContentBaseExtensions.DefaultPrice(x)) .IncludeField(x => x.Outline()) .IncludeField(x => x.SortOrder()); }
protected override void ApplyBundleContentConventions(EPiServer.Find.ClientConventions.TypeConventionBuilder <BundleContent> conventionBuilder) { base.ApplyBundleContentConventions(conventionBuilder); conventionBuilder.IncludeField(x => x.DefaultPrice()) .IncludeField(x => x.Prices()) .IncludeField(x => x.Inventories()) .IncludeField(x => x.Outline()) .IncludeField(x => x.SortOrder()); }