商店软件从插件配置中删除保存按钮



有没有办法从插件配置中删除save按钮,或者用我们自己的操作覆盖它?

仅为扩展删除按钮会更加困难。但是,您可以仅为扩展的域使用特定逻辑覆盖组件的点击处理程序,并为其他域调用原始处理程序:

const { Component } = Shopware;
Component.override('sw-extension-config', {
computed: {
domain() {
return this.$super('domain');
}
},
methods: {
onSave() {
if (this.domain === 'YourTechnicalPluginName.config') {
console.log('do what you want');
return;
}
this.$super('onSave');
}
}
});

最新更新