Dynamic Price based on Variant for Line Item factories #4595
kennyadsl
started this conversation in
New Features or Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment, our line item factory has a static value as the default for its price, which is
BigDecimal('10.00')
.This has some advantages, like give for granted the price and avoid making lot of resources traversing for complex cases but it also has cons, like forcing us to stub the line item price, when we need it to be something different from the default, as happening here.
We should understand if it's possible to make this price dynamic, based on the price of the variant associated with that line item. We should also deprecate the current line item factory, in order to allow backward compatibility for users that are relying on our core factories.
Beta Was this translation helpful? Give feedback.
All reactions