You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Shopware 6的App脚本中访问主题配置?

Shopware App脚本访问主题配置的问题
  • 目前App脚本里确实只能通过SystemConfigFacade访问商店配置和config.xml的配置,没法直接获取主题配置。
  • 想用RepositoryFacade通过主题仓库来实现访问是不可行的:
    • Shopware的App脚本沙箱对RepositoryFacade的权限限制很严,主题相关的实体不在允许访问的范围内。
    • 就算调用主题仓库的查询方法,也会因为权限校验不通过被拦截,拿不到有效数据。

内容的提问来源于stack exchange,提问作者lucamario

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 09:25:33