Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Allow creating documents without order reference #411

Open
shyim opened this issue Dec 15, 2021 · 0 comments
Open

Allow creating documents without order reference #411

shyim opened this issue Dec 15, 2021 · 0 comments

Comments

@shyim
Copy link

shyim commented Dec 15, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant