The module has quality assurance scripts in place. To activate them, run:
Copy
Ask AI
composer install
Use composer 2 and PHP 7.4.You’ll be asked for Magento credentials. It’s best to use those for Magento Enterprise. Don’t store them as they are needed just once.You’ll also need a GitLab token. Create an “auth.json” file with it as follows:
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:
When adding custom functionality to this extension, make sure to create your own plugin. Otherwise, you may interfere with the existing code and risk breaking it.
Add consents for contacts by creating two plugins:
afterGetConsents for class “Voyado\Magento2\Helper\ContactAttributesHelper”
afterGetConsents for class “Voyado\Magento2\Helper\OrderBodyHelper”
For 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):