英文:
Shopware 6 admin api: User and Shop information
问题
我正在开发一个适用于Shopware版本5和6的应用程序,但这个问题主要是针对版本6。
有没有办法确定哪个用户从云市场安装了应用程序,或者直接上传到自托管的Shopware?
我的安装目前通过使用注册和确认端点运行良好,我在确认请求中获取了一些标识(商店网址和商店ID)。但我还需要关于商店名称和安装应用程序的用户的信息。
在安装应用程序后,我们需要在我们的软件中完成注册,对我们来说标准的方式是向触发注册的用户发送电子邮件(该电子邮件还应包含有关商店的信息,如名称)。
(对于Shopware版本5的同一主题也将赞赏至少有商店端点资源,这可能是可以接受的。)
英文:
I'm developing an app for Shopware version 5 and 6, but this issue will be addressing mostly version 6.
Is there a way to determine which user installed an app from a cloud marketplace or directly uploaded to self-hosted Shopware?
My installation currently works by using register and confirm endpoints just fine and I get some identification (shop url and shop id) in the confirmation request. But I also need information about the shop name and user which installed the app.
After installation of the app, we need to finish the registration in our software and the standard way for us is to send an email to the user which triggered the registration (which should also contain information about the shop, like name).
(also some clues for shopware version 5 on the same topic will be appreciated, at least it has shops endpoint resource which may be OK)
答案1
得分: 1
以下是翻译好的内容:
- There is no such thing as a single shop name.(没有单一的商店名称。)
- There might be multiple sales channels with different names and apps are not bound to sales channels.(可能有多个具有不同名称的销售渠道,应用程序与销售渠道无关。)
- Furthermore the information which user installed any given app or plugin is not tracked.(而且,并未跟踪安装了哪个特定的应用程序或插件的用户信息。)
- What you can do is read the system config via the API and get the name and email from the basic information settings.(您可以做的是通过 API 读取系统配置,并从基本信息设置中获取名称和电子邮件。)
- By omitting the sales channel id in the request you will get the fallback value used for all sales channels which is the closest to a default name and email for the system you can get.(通过在请求中省略销售渠道 ID,您将获得用于所有销售渠道的备用值,这是最接近系统默认名称和电子邮件的值。)
- The domain for the basic information settings is
core.basicInformation
.(基本信息设置的域名为core.basicInformation
。) - Shopware 5 is a completely different system and doesn't feature a registration-based app system geared to cloud-hosting like Shopware 6 has.(Shopware 5 是完全不同的系统,不具备像 Shopware 6 那样面向云托管的基于注册的应用程序系统。)
英文:
There is no such thing as a single shop name. There might be multiple sales channels with different names and apps are not bound to sales channels. Furthermore the information which user installed any given app or plugin is not tracked. What you can do is read the system config via the API and get the name and email from the basic information settings. By omitting the sales channel id in the request you will get the fallback value used for all sales channels which is the closest to a default name and email for the system you can get. The domain for the basic information settings is core.basicInformation
.
Shopware 5 is a completely different system and doesn't feature a registration-based app system geared to cloud-hosting like Shopware 6 has.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论