You can find the plugin configuration under Settings → Basic Settings → Additional Settings → Bill of Materials Products.
Show sub-items on documents – You can decide how the sub-items of a bill of materials product should be displayed on generated documents and sent emails. The plugin extends the standard Shopware invoice template for this purpose.
Always hide sub-items – Choose this option if you never want to display sub-items on your documents and emails.
Always show sub-items (without their own price) – Choose this option if you always want to display sub-items on your documents and emails.
Only show sub-items on partial delivery notes – Choose this option if you also want to allow partial deliveries of the bill of materials product, e.g. when using Pickware WMS. This ensures that when editing an order with Pickware WMS, the sub-items are also displayed when creating the partial delivery note if only part of the bill of materials is picked. If, on the other hand, all sub-items of a bill of materials product are picked without the bill of materials product itself – which technically is also a partial delivery – the sub-items are replaced by the bill of materials product on the document.
If you use customized document templates and want to hide sub-items, you can use the call {if ($position.isSubArticle == '1')} to check whether the item is part of a bill of materials product and should be hidden. You can find a code example in the plugin directory under the path Views/documents/index.tpl
If you also want to hide sub-items in emails, for example when an order's status changes, you also need to edit the corresponding email templates in addition to the configuration. You can find an example for this here.
