Skip to content

Channel-aware custom fields #490

@chladog

Description

@chladog

Is your feature request related to a problem? Please describe.
Make option for channel-specific custom fields. Currently change I make on channel1 applies to channel2 and other way around, however I need it to behave same as price on ProductVariant. (channel1 price and currency is independent of channel2 price and currency).
I need this independency only for some CFs, most of them are supposed to be in-sync between channels

Describe the solution you'd like
Add new configuration property to custom field channelAware?: boolean (defaults to false). If set to true then CF would be saved in separate table holding its values for each channel (analogous to current price implementation).
When switching channels in admin UI these values would get switched as well.

Describe alternatives you've considered
As I see in DB prices are saved in separate table with channel mapping. Actually I need this for additional price fields as well (used to define price for bulks). Therefore what I would basically need is "customPriceField". However I believe option for channel-specific custom fields would be handy for any other data type as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📅 Planned

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions