Product Adapters
Converting product sources into understandable products for Umbraco Commerce.
Example Product Adapter
public class MyCustomProductAdapter : ProductAdapterBase
{
public override Task<IProductSnapshot> GetProductSnapshotAsync(string productReference, string productVariantReference, string languageIsoCode)
{
// Lookup a product by productVariantReference and convert to IProductSnapshot
}
public override Task<Attempt<(string ProductReference, string ProductVariantReference)>> TryGetProductReferenceAsync(Guid storeId, string sku)
{
// Try lookup a product / variant reference by store + sku
}
}
Support editable carts
Registering a Product Adapter
Last updated
Was this helpful?