英文:
Adding tax provider to manifest.xml makes the app invisible to Shopware 6.5 shop
问题
我们想开发一个适用于Shopware 6的税务提供程序应用。根据文档,应该在清单文件中添加税务定义。不幸的是,在添加以下内容到清单文件后,无论版本为6.5.0.0-6.5.1.1,该应用都不会被Shopware 6.5商店识别。
将其添加到没有税务提供程序的应用文件夹中可以正常工作。
具有税务提供程序的情况如下图所示:
英文:
We want to develop a tax provider app for Shopware 6. According to the documentation one is supposed to add a tax definition into the manifest file. Unfortunately, after adding
<tax>
<tax-provider>
<identifier>myCustomTaxProvider</identifier> <!-- Unique identifier of the tax provider -->
<name>My custom tax provider</name> <!-- Display name of the tax provider -->
<priority>1</priority> <!-- Priority of the tax provider - can be changed in the administration as well -->
<processUrl>https://tax-provider.app/provide-taxes</processUrl> <!-- Url of your implementation - is called during checkout to provide taxes -->
</tax-provider>
</tax>
to the manifest file, the app stops to be recognized by the Shopware 6.5 shop, independent from the version (6.5.0.0-6.5.1.1).
Adding it to an app folder without tax provider works perfectly:
enter image description here
With tax provider:
enter image description here
If you had experience with tax providers in the shopware app, please share your thoughts!
答案1
得分: 0
看起来文档中有几个地方是错误的。清单模式的当前版本是 2.0
,因此应该使用以下模式位置:
https://raw.githubusercontent.com/shopware/platform/trunk/src/Core/Framework/App/Manifest/Schema/manifest-2.0.xsd
此外,文档提到了一个非法元素 processUrl
。根据模式,它应该是 process-url
。
英文:
Looks like the documentation is wrong on a couple of things. The current version of the manifest schema is 2.0
so this should be used for the schema location:
https://raw.githubusercontent.com/shopware/platform/trunk/src/Core/Framework/App/Manifest/Schema/manifest-2.0.xsd
Furthermore the documentation refers to an illegal element processUrl
. According to the schema it should be process-url
instead.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论