Robert Foster
Robert Foster
At the moment, you can't - I do have plans to make this configurable, however.
Hey @akeilox it's unlikely, given that Umbraco 7 is all but unsupported - we'll more likely be targeting Umbraco 8 and the latest LTS and STS versions when we do....
yes they can - take a look at the source (angular) and you should be able to work it out
We've gotten around this issue in the front end using the following code: ```csharp OrderReadOnly? order = null; commerceApi.Uow.Execute(uow => { var writableOrder = commerceApi.GetCurrentOrder(store.Id)?.AsWritable(uow); if (writableOrder is not null)...
@mattbrailsford yes - I get that, but what we're observing is that when the order is written back, the read-only order does not reflect the update.
i.e., we always use the following to retrieve the Read-only order: ``` var order = commerceApi.GetOrCreateCurrentOrder(store.Id) ``` However it's state does not change after subsequent writes and then reads using...
Certainly :) In the CartController: ```csharp [HttpPost] public IActionResult AddToCart(AddToCartDto postModel) { commerceApi.Uow.Execute(uow => { var store = CurrentPage.GetStore(); var order = commerceApi.GetOrCreateCurrentOrder(store.Id); var writableOrder = order.AsWritable(uow); // order.OrderLines.Count() ==...
Yes - I can also prove that by restarting the website, and the Read-only Cart has the latest changes. I also inspected the order when adding new items (AddToCart method)...
I wondered if there's something in our code that somehow is caching the cart, but don't see how...
nope, this is happening on local dev as well as Umbraco Cloud. Local dev is MacOS.