You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
Description
Currently Shopware\Core\Checkout\Document\DocumentGenerator\DocumentGeneratorInterface::generate() expects to be passed an OrderEntity.
It should be possible though to create documents unrelated to orders without having to copy Shopware's own classes into a plugin and remove all order references.
Possible Solution
For order documents the order could be integrated into a special kind of DocumentConfiguration (e.g. OrderDocumentConfiguration), while DocumentConfiguration would be turned into an abstract class (or interface) to allow different kind of configurations.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Currently
Shopware\Core\Checkout\Document\DocumentGenerator\DocumentGeneratorInterface::generate()
expects to be passed anOrderEntity
.It should be possible though to create documents unrelated to orders without having to copy Shopware's own classes into a plugin and remove all order references.
Possible Solution
For order documents the order could be integrated into a special kind of
DocumentConfiguration
(e.g.OrderDocumentConfiguration
), whileDocumentConfiguration
would be turned into an abstract class (or interface) to allow different kind of configurations.The text was updated successfully, but these errors were encountered: