Place an order for a customer (using a different mailadress) when logged in as shop merchant.
Description
When you are logged in as an administrator (say shop merchant), you sometimes want to place an order for a customer. This may come in handy when the customer is in the physical shop and an order needs to be placed because the product items have to be send to the customers home address. Now when you log in as administrator and you fill in the address form in OPC, the email address filled in is not used as the mail address to send the order confirmation to. Also the email address on the billing address details on the invoice / email are always the mail address of the logged in user, not the customer. The value of the billing address email address should be used instead.
Steps to reproduce
- Log into the backend of Virtuemart as administrator
- Go to the frontend
- Add an item to the cart
- Go to the checkout and fill out the address form. Use a different email address than the one from the logged in administrator.
- Place the order and notice that the email for the order confirmation was sent to the administrator email