Added support for sending customer emails #69
Reference in New Issue
Block a user
Delete Branch "support-email"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Smoke test
Add WIAAS_SUPPORT_EMAIL variable to your local
development.envfile and put recipient email as value for that variable (this variable defaults tosupport@co-ideation.comif it is not set so be careful :PLog in as customer to frontend and go to
http://localhost:3001/orders, and open orders history (you have to have at least one completed order)From actions menu of the order choose support and write some text in modal and click send.
Receive email to recipient address with the same text (it should arrive in normal folder not spam)
Check details of that order from same actions menue, and confirm that under comments tab, you see the same text (that confirms that order note has been saved)
added 17 commits
developmenta07c0e45- Added support for sending customer emailsCompare with previous version
unmarked as a Work In Progress
changed the description
assigned to @akrdzic
Smoke test failed:
Text not added as order note. Instead number is added.

sendSupportMailcamel case should not be used here, it is not consistent with other endpoints.'send-support-email' should be used instead
Camel case should not be used. Should be consistent with other endpoints from woocommerce and wiaas.
added 1 commit
752df56d- Fixed bug where order note text is saved as order IDCompare with previous version
This email subject is not right. It should be something like 'Support needed for order: {order number} for {customer}. Also order number and not order id should be used.
changed this line in version 4 of the diff
changed this line in version 4 of the diff
changed this line in version 4 of the diff
added 1 commit
f56377f6- Handled proper endpoint namingCompare with previous version
Remove WP_DEBUG declaration from main application configuration.
changed this line in version 5 of the diff
added 1 commit
35e670fa- removved debug logCompare with previous version
mentioned in commit
d0533b3d6emerged