You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoidable. The admin specifies which product is required. It would therefore be a check to see if the admin has made a mistake in his configuration.
AddRequiredProductsAsync should not check anything, but only realize the configuration of the admin. Checks must only take place in the ShoppingCartValidator.
Too much new validation code would have to be written for this. What should happen if, for one of the many possible reasons, the required product cannot be added? Then simply ignore the required product? Probably not... then, consequently, the original product should not be added to the shopping cart page either. An unsatisfactory situation that makes little sense. For the buyer, there is no way forward and it is unclear what the admin is trying to achieve. My suggestion: When specifying required products, a warning box is displayed that explains that required products must not be restricted in terms of availability and access.
ShoppingCartService > AddRequiredProductsAsync
The text was updated successfully, but these errors were encountered: