Installation
Add this repository to your composer:Development
The module has quality assurance scripts in place. To activate them, run:Flows
See PlantUML flows in src/doc.Extending
The module can be extended to, for example, allow more data to be sent to Engage in the order receipt. To do this, replace “[Vendor]” in the four examples below with your own vendor name and add these files to the paths shown:app/code/[Vendor]/ExtendedVoyado/registration.php
app/code/[Vendor]/ExtendedVoyado/registration.php
app/code/[Vendor]/ExtendedVoyado/etc/module.xml
app/code/[Vendor]/ExtendedVoyado/etc/module.xml
app/code/[Vendor]/ExtendedVoyado/etc/di.xml
app/code/[Vendor]/ExtendedVoyado/etc/di.xml
app/code/[Vendor]/ExtendedVoyado/Plugin/AddOwnAttributeToOrderItem.php
app/code/[Vendor]/ExtendedVoyado/Plugin/AddOwnAttributeToOrderItem.php
Consents
Add consents for contacts by creating two plugins:afterGetConsentsfor class “Voyado\Magento2\Helper\ContactAttributesHelper”afterGetConsentsfor class “Voyado\Magento2\Helper\OrderBodyHelper”
addOrder and creditMemo, the function will receive “true” for the argument fromOrder.
The method getConsents can be found in the class “Voyado\Magento2\Helper\VoyadoHelper” and only returns an empty array.
Per index, an array should be added with these keys (the values are examples):