If the price of a cart item is 0, it will be removed by the CartValidate workflow. Is there some way to prevent this?
I don't want to exclude ValidateLineItemsActivity entirely, since there's so many other things going on in that validation step.
Running EPi commerce 9.18.
You can always get the Workflow project and
- Either update ValidateLineItemsActivity to skip removing items with price = 0
- Or update OrderGroupActivityBase.GetItemPrice to not return null for item with price = 0
then build it and replace the default one.
If you don't want to customize the workflow, then perhaps make your item a gift item.
The sane way to customize a workflow would be to override some method - but that's not an option since neither ValidateItems nor GetItemPrice are overridable. What do you mean by "get the Workflow project"?
The workflow project is open source and available for download at: http://world.episerver.com/download/Items/Episerver-Commerce/episerver-commerce-9-tools-and-code-samples/