Remove fee from cart

Hi,

I want to remove a specific fee from the cart, but I can’t find any way to actually remove the fee.
I can use the method AddOrUpdateFeeAsync, but the fee will never be removed, even if I set the fee cost to 0.

Am I missing some method?

Litium version: 8.3.1

Hi,

I suppose that it is a bug. Can you please create a bug about it at docs.litium.com.

1 Like

I created the bug here: Login

I solved it by using CartContextSessionService:

await _cartContextSessionService.UpdateAsync(cartContext.Cart.SystemId, (session) =>
{
    // Order row removal code here, by accessing session.Cart.Order
    return Task.FromResult(true);
});

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.