Bjarne Fyrstenborg
03/15/2024, 1:22 PMIUmbracoBuilder
extension, but strange enhough it doesn't seem to hit the event handlers or pipeline task, when updating order lines in cart.
Anything obvious I am missing?
public static IUmbracoBuilder AddMyStore(this IUmbracoBuilder umbracoBuilder)
{
umbracoBuilder.AddUmbracoCommerce(v =>
{
// Enable SQLite support
//v.AddSQLite();
// Replace the umbraco product name extractor with one that supports child variants
//v.Services.AddUnique<IUmbracoProductNameExtractor, CompositeProductNameExtractor>();
// Register event handlers
v.WithNotificationEvent<OrderProductAddingNotification>()
.RegisterHandler<OrderProductAddingHandler>();
v.WithNotificationEvent<OrderLineChangingNotification>()
.RegisterHandler<OrderLineChangingHandler>();
v.WithNotificationEvent<OrderLineRemovingNotification>()
.RegisterHandler<OrderLineRemovingHandler>();
v.WithNotificationEvent<OrderPaymentCountryRegionChangingNotification>()
.RegisterHandler<OrderPaymentCountryRegionChangingHandler>();
v.WithNotificationEvent<OrderShippingCountryRegionChangingNotification>()
.RegisterHandler<OrderShippingCountryRegionChangingHandler>();
v.WithNotificationEvent<OrderShippingMethodChangingNotification>()
.RegisterHandler<OrderShippingMethodChangingHandler>();
v.WithCalculateOrderPipeline()
.Add<ShoppingBagOrderCalculationPipelineTask>();
//.InsertAfter<CalculateOrderSubtotalPriceWithoutAdjustmentsTask, ShoppingBagOrderCalculationPipelineTask>();
});
return umbracoBuilder;
}
`
Bjarne Fyrstenborg
03/18/2024, 9:33 AMUmbracoCommerceComposer
otherwise it won't work 🤦♂️🙈
https://github.com/umbraco/Umbraco.Commerce.Issues/issues/475A hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by