NickFrederiksen
02/10/2025, 2:54 PMNotificationEventHandlerBase<OrderProductAddingNotification>PropertiesIReadOnlyDictionaryPropertiesOrderProductAddingNotificationnullOrderProductAddedNotificationOrderLineAddingNotificationSander L
02/10/2025, 3:05 PMvar order = _commerceApi.GetOrCreateCurrentOrder(store.Id)
                    .AsWritable(uow);
                foreach (var orderLine in order.OrderLines)
                {
                    order.WithOrderLine(orderLine.Id).SetQuantity(2).SetProperties(new Dictionary<string, string>
                    {
                        { "key1", "value1" },
                    });
                }NickFrederiksen
02/11/2025, 7:37 AMNickFrederiksen
02/11/2025, 7:37 AMOrderProductAddingNotificationMike Chambers
02/11/2025, 6:01 PM"In the Commerce API, everything is read-only for performance so you need to make it writable to add the product."Sander L
02/12/2025, 5:39 AMMike Chambers
02/12/2025, 8:57 AMNickFrederiksen
02/12/2025, 8:59 AMOrderLineAddingNotificationIFactoryNickFrederiksen
02/12/2025, 9:55 AMOrderLineAddingNotificationMike Chambers
02/12/2025, 10:20 AMnotification.CancelOperation()NickFrederiksen
02/12/2025, 10:47 AMOrderLineAddingNotificationOrderLineChangingNotificationMike Chambers
02/12/2025, 11:06 AMMike Chambers
02/12/2025, 11:15 AMOrderLineChangingNotificationNickFrederiksen
02/12/2025, 11:19 AMMike Chambers
02/12/2025, 11:21 AMNickFrederiksen
02/12/2025, 12:09 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by