RequiredProdInfo
Use the RequiredProdInfo pipeline component to delete items that were flagged for deletion by a previous Product Info stage component.
Intended use: Order Processing pipeline, Product Info stage.
The RequiredProdInfo pipeline component reads the following values from the indicated dictionaries.
|
Key |
Dictionary |
Description |
|---|---|---|
|
item.delete |
Order |
A flag on an item in the items collection of the Order dictionary. This key is created and set by another pipeline component. |
|
MessageManager.pur_badsku |
Context |
The error message text (optional). |
The RequiredProdInfo pipeline component checks all items in the items collection in the Order dictionary and deletes any items with a delete key set to 1 (one). The QueryCatalogInfo pipeline component sets this key.
If the RequiredProdInfo pipeline component deletes any items from the items collection, it uses the pur_badsku constant to retrieve error message text from the MessageManager object and stores this message in the _Basket_Errors collection of the Order dictionary so that the application can report the problem with the item to the user.