public function order_details($order, $sent_to_admin = false, $plain_text = false, $email = '')
{
if ($plain_text) {
wc_get_template('emails/plain/email-order-details.php', array('order' => $order, 'sent_to_admin' => $sent_to_admin, 'plain_text' => $plain_text, 'email' => $email));
} else {
wc_get_template('emails/email-order-details.php', array('order' => $order, 'sent_to_admin' => $sent_to_admin, 'plain_text' => $plain_text, 'email' => $email));
}
}