``cavalier/module-customorderattribute``
Custom order attributes The custom attribute is added to the order table in the file CustomOrderAttribute/etc/db_schema.xml
We listen for the event checkout_submit_all_after We then save the PO Number to the customer_reference we created in our db_schema.xml
* = in production please use the --keep-generated
option
- Unzip the zip file in
app/code/Cavalier
- Enable the module by running
php bin/magento module:enable Cavalier_CustomOrderAttribute
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
You need to enable Purchase Order Payment Method for this to work
- Observer
- checkout_submit_all_after > Cavalier\CustomOrderAttribute\Observer\Checkout\SubmitAllAfter
- Sales - Customer Reference (customer_reference)