I searched a lot what the problem is and realized that this is due to my custom code. Can you please tell me if this code can somehow be combined with your plugin?
//add info in e-ml
add_action( ‘woocommerce_email_before_order_table’, ‘add_content_specific_email’, 20, 4 );
function add_content_specific_email( $order, $sent_to_admin, $plain_text, $email ) {
if ( $email->id == ‘customer_processing_order’ ) {
echo ‘<h2 class=”email-upsell-title”>Get 20% off</h2><p class=”email-upsell-p”> <svg width=”1em” height=”1em” viewBox=”0 0 16 16″ class=”bi bi-box-seam” fill=”currentColor” xmlns=”http://www.w3.org/2000/svg”>
<path fill-rule=”evenodd” d=”M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5l2.404.961L10.404 2l-2.218-.887zm3.564 1.426L5.596 5 8 5.961 14.154 3.5l-2.404-.961zm3.25 1.7l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z”/>
</svg> Thank you for making this purchase! Come back and use the code “Back4More” to receive a 20% discount on your next purchase! Click here to continue shopping.</p>’;
}
}