public function __construct()
{
$this->id = 'customer_completed_order';
$this->customer_email = true;
$this->title = __('Completed order', 'woocommerce');
$this->description = __('Order complete emails are sent to customers when their orders are marked completed and usually indicate that their orders have been shipped.', 'woocommerce');
$this->heading = __('Your order is complete', 'woocommerce');
$this->subject = __('Your {site_title} order from {order_date} is complete', 'woocommerce');
$this->template_html = 'emails/customer-completed-order.php';
$this->template_plain = 'emails/plain/customer-completed-order.php';
// Triggers for this email
add_action('woocommerce_order_status_completed_notification', array($this, 'trigger'));
// Other settings
$this->heading_downloadable = $this->get_option('heading_downloadable', __('Your order is complete - download your files', 'woocommerce'));
$this->subject_downloadable = $this->get_option('subject_downloadable', __('Your {site_title} order from {order_date} is complete - download your files', 'woocommerce'));
// Call parent constuctor
parent::__construct();
}