在 Shopware 6 中使用子商店的插件配置

Raj*_*ami 2 shopware6 shopware6-app

如何获取销售渠道的配置值?

我正在这样做:

$this->systemConfigService->get('pluginName.config.enable')
Run Code Online (Sandbox Code Playgroud)

但此调用仅返回所有销售渠道配置值。

如何获取特定销售渠道的配置值?

dne*_*adt 6

该方法的第二个参数get采用实体idsales_channel

public function get(string $key, ?string $salesChannelId = null)
Run Code Online (Sandbox Code Playgroud)