public sendOrderConfirmationEmail ( Elcodi\Component\Cart\Event\OrderOnCreatedEvent $event ) | ||
$event | Elcodi\Component\Cart\Event\OrderOnCreatedEvent | Event |
public function sendOrderConfirmationEmail(OrderOnCreatedEvent $event)
{
$order = $event->getOrder();
$customer = $order->getCustomer();
$this->sendEmail('order_confirmation', ['order' => $order, 'customer' => $customer], $customer->getEmail());
}