I had to rewrite some price providers due to obsolete methods.
I had to use the FindPrice with the PriceContext parameter.
But when I debug and get into the FindPrice method the value of Customer within the price context is NULL even when there is a current user logged in ...
I would have expected the price context current user to be the currently loggedin user, or is that a misinterpretation and do I have to do something to get it filled?
I now added a line and worked with that: var customer = context?.Customer ?? User.GetCurrentUser(PagePermissionLevels.Frontend);
Additional, within this method I need the product number to do my magic. In the obsolete method I have the product and all its properties.
In this new method for each call I have to first get the product by id and variantid to get its number ... doesn't feel right ...