Hi
I'm trying to create a new cart in backend and applying this cart to the current context. I have created the logic in an MVC Controller inheriting from ApiController to use this as an API method in the frontend. My logic fails in the method Dynamicweb.Ecommerce.Orders.ShippingCalculator.CheckShop(Fee fee) propably due to the fact that PageView.Current() would be null in a situation like this.
This is how I have implemented the code marked with the line where the exception is thrown:
Any ideas how to overcome this. The exception is also thrown, if I try to save the order/cart further down, so order service seems to rely on something that is not present in this context. Normal add to cart works fine on this solution.
Hope to find some good ideas here.
BR Chris