- Issue created by @nicxvan
- πΊπΈUnited States rszrama
As discussed in Slack, this is simply not possible. Unit price setting happens in the context of processes that would be subverted and / or potentially recursive should the mere use of the function result in a price change. Additionally, the calling context typically has its own logic for determining how to represent the price change via an adjustment. (See, for example, the manipulation of a unit price by our tax type plugins coordinated with the preparation of adjustments basedon the type of tax or the similar code in our various promotion offer plugins.)
Ultimately, the function exists because a function must exist for the operation, but its intended use is for the developer to make use of it in conjunction with related systems in Commerce.
- πΊπΈUnited States freelock Seattle
As discussed in #ECA slack, I think we could implement a PriceResolver service with a high priority, that would return the desired price. This could then be set through an ECA plugin.