1,
) );
if ( is_array( $order ) && count( $order ) > 0 ) {
$this->order = $order[0];
}
}
add_action( 'bwfan_output_email_style', function () { ?>
.bwfan-email-order-table table {
width: 100%;
border-collapse: collapse;
max-width:700px;
font-size:14px;
}
.bwfan-email-order-table #template_header {
width: 100% !important;
}
.bwfan-email-order-table table img {
max-width: 75px;
}
order ) || ! $this->order instanceof WC_Order ) {
return;
}
$order_lang = BWFAN_Common::get_order_language( $this->order );
do_action( 'bwfan_email_setup_locale', $order_lang );
$show_downloads = $this->order->has_downloadable_item() && $this->order->is_download_permitted();
echo "
";
?>
order->get_downloadable_items();
$columns = apply_filters( 'woocommerce_email_downloads_columns', array(
'download-product' => __( 'Product', 'woocommerce' ), // phpcs:ignore WordPress.WP.I18n.TextDomainMismatch
'download-expires' => __( 'Expires', 'woocommerce' ), // phpcs:ignore WordPress.WP.I18n.TextDomainMismatch
'download-file' => __( 'Download', 'woocommerce' ), // phpcs:ignore WordPress.WP.I18n.TextDomainMismatch
) );
wc_get_template( 'emails/email-downloads.php', array(
'order' => $this->order,
'sent_to_admin' => false,
'plain_text' => false,
'email' => '',
'downloads' => $downloads,
'columns' => $columns,
) );
}
wc_get_template( 'emails/email-order-details.php', array(
'order' => $this->order,
'sent_to_admin' => false,
'plain_text' => false,
'email' => '',
) );
?>
';