Try our conversational search powered by Generative AI!

Do not show warning when validating placed price for first time

Fixed in

EPiServer.Commerce 11.5.1

(Or a related package)

Created

Nov 20, 2017

Updated

Dec 12, 2017

Area

Core

State

Closed, Fixed and tested


Description

With the new abstraction APIs, a lineitem is created without a placed price. The price is set upon calling UpdatePlacedPriceOrRemoveLineItems. However, that adds an error when the price is set. We do not want to throw an error if a price was previously null.

Reported from https://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2017/11/on-first-add-to-basket-validation-returns-placedpricedchanged-commerce-11-2-6/