Skip to content

Instantly share code, notes, and snippets.

@mauro-vieira
Last active April 5, 2020 22:06
Show Gist options
  • Save mauro-vieira/20e599372f3e8972330c86081dd59830 to your computer and use it in GitHub Desktop.
Save mauro-vieira/20e599372f3e8972330c86081dd59830 to your computer and use it in GitHub Desktop.
using EPiServer.Commerce.Catalog.ContentTypes;
using EPiServer.Find.ClientConventions;
using EPiServer.Find.Commerce;
public class CustomCatalogContentClientConventions : CatalogContentClientConventions
{
protected override void ApplyPricingConventions(TypeConventionBuilder<IPricing> conventionBuilder)
{
conventionBuilder
.ExcludeField(x => x.PriceReference);
}
protected override void ApplyIStockPlacementConventions(TypeConventionBuilder<IStockPlacement> conventionBuilder)
{
conventionBuilder
.ExcludeField(x => x.InventoryReference);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment