The purpose of this article is to demonstrate how to set up a price override button.
If you want to create a button that allows a cashier to override the current price of a product you can do that by using the "SetSelectedLineItemSoldPriceCommand". When the cashier uses this they will see a form similar to this:
But.. what if you want the user to provide a comment relating to WHY they are overriding the price, or what if you want to set one for them automatically? What if you want to control which of the three buttons highlighted in purple above you want them to have access to?
Well, you can do that!
One of the parameters you can pass to the SetSelectedLineItemSoldPriceCommand is comment, you can also set a true/false value for which of the buttons you want to appear. The three parameters for the buttons are: HasDiscountPriceChange, HasBasePriceChange and HasDiscountReset.
Here's an example of a button that one customer setup for Amazon price matches: