Did you save your cart after running validation? Because
should remove line items with variant deleted, however it does not save the cart
Ok, that might be it! And you only have to save it if there are any validation issues I guess?
That was it! In one place I did a validation without saving the cart, thanks Quan!
If I place a variant in my shopping cart and the delete the variant from the catalog the variant is still loaded into the cart. Even if I restart everything the variant is still loaded.
This code gives me the deleted variant:
These validations are run:
I get all information about the variant even though it is deleted, but I can't get an url to the item which I guess is how it is supposed to be.
Is this Episerver standard or maybe I'm missing something here?