Link the Store to the PricePropertyValue (in the PropertyValueConverter?) #634
JasonElkin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To get a price from a
PricePropertyValue
we need to supply a Currency ID that's configured in the store.So to get a "default" price for a product we're using some extension methods that look something like this:
It strikes me though that at the point that the price was saved in the Backoffice, the property editor knew which Store the price was related to and the currency came from.
To cut down on boilerplate like this could the store itself be made available on the
PricePropertyValue
?i.e.
PricePropertyValue.Store
It would then be trivial to add extension methods to do things like get a "default price" for the base currency etc.
Beta Was this translation helpful? Give feedback.
All reactions