Null Price Validator

Ensures all line items in the cart have a non-zero price.

Overview

The Null Price Validator checks that all line items in the cart have a PlacedPrice greater than zero. Line items with a price of zero typically indicate missing price data, which should be resolved before the cart can become an order.

Identifier

PropertyValue
Connector IDnullPriceValidator
Validation TypePrice

Behavior

  1. Finds all line items where PlacedPrice equals zero
  2. If no zero-priced items exist, validation passes
  3. Returns one validation error per line item with a zero price, including the SKU code in the message

Error messages

ConditionTranslation Key
Line item has zero priceNullPriceValidationError

Configuration

No additional properties required.

{
  "name": "nullPriceValidator",
  "implementations": ["IValidator"],
  "disableStandardErrorPolicy": false
}

On this page