简体   繁体   English

Inheritance 用于 Shopware 6 中的自定义字段

[英]Inheritance for custom fields in Shopware 6

Is there a way to create inheritance for custom fields?有没有办法为自定义字段创建 inheritance? Something like:就像是:

(new CustomFields())->addFlag(new Inherited());

In my case if I create a custom field for a product then its variants should get inherited values if there is nothing specific assigned to it.在我的情况下,如果我为产品创建自定义字段,那么如果没有特定分配给它,它的变体应该得到继承的值。 But it does not seem to work in the current 6.2.2 version.但在当前的6.2.2版本中似乎不起作用。

Currently this is not supported as of Shopware 6.2.3.目前,从 Shopware 6.2.3 开始不支持此功能。 Maybe it will be in a future version.也许它会在未来的版本中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM