Custom Properties on UC Entities #456
philipdanielhayton
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.
-
Hi guys,
It's sometimes useful to have custom data associated with UC Entities such as Payment Methods, Shipping Methods, etc.
I was wondering whether it would be possible to add a simple Properties dictionary to the core Store Entities, like we have on Orders & Order Lines, which we can then wire up to the entity edit screens using a config file, like we do for the Order Editor?
As a prime example; on a recent project I needed to implement a shipping adjustment that reduced the shipping cost by the sub total of the order, down to a specific minimum amount, so I needed somewhere to store the minimum amount.
In the past I have implemented this kind of thing by mirroring the UC Entities within the Content section, but it's a bit fiddly to implement as a Dev, and it feels wrong having config in two places.
One 'gotcha' is how this would work in a multi-culture setup. It's probably not the ideal solution for fields that require different values per culture, but for universal settings like cost, it would be a nice addition.
PS sorry for spamming all these at once, I'm just clearing out my UC Wish List 😅
Beta Was this translation helpful? Give feedback.
All reactions