Posted on 26/06/2026 12:14:29
On the calculated price
For the calculated price on a product, quantity is always 1 in a feed. Quantity only varies in a cart context.
On the Prices loop (quantity prices)
This loop is different. It holds the prices that could apply in the cart right now — i.e. the prices that would come into effect if you changed only the quantity or unit (as happens when adding the product to the cart). It's essentially the set of currently-applicable price tiers.
We can add the ValidFrom / ValidTo dates to the view model, but it's worth being clear that they behave differently from the other properties (Quantity and UnitId):
- Quantity and UnitId describe variations you can still reach — change the quantity or pick a different unit, and that tier's price applies.
- The dates would not work that way. The loop only ever contains prices whose date range includes today, because the prices are resolved at calculation time (now). A price that was valid in the past, or only becomes valid in the future, can never be triggered by adding the product to the cart today — so it isn't in the list at all.
In other words: adding the date fields lets you display the validity window of the currently-active prices, but it does not let you browse past or future prices. Only prices valid as of today are ever included.
If your goal is to list past or future prices, we need to do something else - because that would be a behavior we cannot change without compatibility issues.