Description
Order Confirmation email notification and order complete notification is not sent When an order is created from backend i.e ordermgr app.
Steps to reproduce :
1.Enable email notification in general.properties.
2. set mail redirect property to your preferred email id
1. Create a sales order from ordermgr component with demo customer as party
Expected result :
Should get a order confirmation mail
On checking log got this error
Service Failure [sendOrderConfirmation]: No website attached to order; cannot generate notification WSCO10100
On checking the code I noticed that shopping cart website id is set from webapp's website id of web.xml. But when we create order from backend there is no websiteId parameter in web.xml for ordermgr app. In case of order from backend It should pick websiteId from the selected product store.
P.S : Email notification works when an order is placed from ecommerce component