Shipping Range/Rate Providers
Dynamic shipping rate providers in Umbraco Commerce.
Shipping Rate Range Provider
System Shipping Rate Ranger Providers
Custom Shipping Rate Range Providers
[ShippingRateRangeProvider("myunit", "My Unit",
editorView: "/App_Plugins/UmbracoCommerceExt/backoffice/views/myunit.html",
sortOrder: 30)]
public class MyShippingRateRangeProvider : ShippingRateRangeProvider<decimal?>
{
public override Attempt<int> TryFindRangeIndex(ShippingRateRangeCalculationContext<decimal?> ctx)
{
// Use the ctx.Ranges property to find the index that that ctx.Order falls within
// return Attempt.Succeed(index);
}
}Registering your custom Shipping Rate Range Provider
Shipping Rate Provider
System Shipping Rate Providers
Custom Shipping Rate Providers
Registering your custom Shipping Rate Provider
Last updated
Was this helpful?