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