function sws_woocommerce_email_order_details ($order, $sent_to_admin, $plain_text, $email) {
if ($email->id == ‘customer_processing_order’) {
?><p><?php _e( “If you would like to receive exclusive emails with discounts and product information, please click the button below.”, ‘woocommerce’ ); ?></p>
<p class=”ubtn-ctn-center”><a class=”ubtn-link ult-adjust-bottom-margin ubtn-center ubtn-normal” href=”https://dryadgin.co.uk/subscribe” title=”SUBSCRIBE”><button type=”button” id=”ubtn-9701″ class=”ubtn ult-adjust-bottom-margin ult-responsive ubtn-normal ubtn-no-hover-bg none ubtn-center tooltip-5ae991cfce96f” data-hover=”” data-border-color=”#000000″ data-bg=”#2ec0cf” data-hover-bg=”” data-border-hover=”#ffffff” data-shadow-hover=”” data-shadow-click=”none” data-shadow=”” data-shd-shadow=”” data-ultimate-target=”#ubtn-9701″ data-responsive-json-new=”{"font-size":"","line-height":""}” style=”font-weight: normal; border-radius: 10px; border-width: 1px; border-color: rgb(0, 0, 0); border-style: solid; background: rgb(46, 192, 207); color: rgb(0, 0, 0);”><span class=”ubtn-hover” style=”background-color:”></span><span class=”ubtn-data ubtn-text”>SUBSCRIBE</span></button></a></p>
<p><?php _e( “You can unsubscribe any time.”, ‘woocommerce’ ); ?></p><?php
}
if ($email->id == ‘Xcustomer_completed_orderX’){
?><p><?php _e( “Your record order has been posted and it is now in the Royal Mail system. If you ordered a gift voucher, this has been processed immediately via email.”, ‘woocommerce’ ); ?></p>
<p><?php _e( “If you have any questions about your order please contact us at max@maxvinyl.com or call us at 01823 444007 Monday – Friday, 9am – 5pm.”, ‘woocommerce’ ); ?></p>
<p><?php _e( “We really hope that you enjoy your recent purchase. If you have been pleased with the service you have received, please leave us a review on our facebook page.”, ‘woocommerce’ ); ?></p>
<p class=”ubtn-ctn-center”><a class=”ubtn-link ult-adjust-bottom-margin ubtn-center ubtn-normal” href=”https://www.facebook.com/pg/maxvinylrecords/reviews/” title=”PLEASE LEAVE A REVIEW”><button type=”button” id=”ubtn-9701″ class=”ubtn ult-adjust-bottom-margin ult-responsive ubtn-normal ubtn-no-hover-bg none ubtn-center tooltip-5ae991cfce96f” data-hover=”” data-border-color=”#000000″ data-bg=”#2ec0cf” data-hover-bg=”” data-border-hover=”#ffffff” data-shadow-hover=”” data-shadow-click=”none” data-shadow=”” data-shd-shadow=”” data-ultimate-target=”#ubtn-9701″ data-responsive-json-new=”{"font-size":"","line-height":""}” style=”font-weight: normal; border-radius: 10px; border-width: 1px; border-color: rgb(0, 0, 0); border-style: solid; background: rgb(46, 192, 207); color: rgb(0, 0, 0);”><span class=”ubtn-hover” style=”background-color:”></span><span class=”ubtn-data ubtn-text”>PLEASE LEAVE A REVIEW</span></button></a></p>
<p><?php _e( “Many thanks and happy listening.”, ‘woocommerce’ ); ?></p><?php
}
}
add_action( ‘woocommerce_email_before_order_table’, ‘sws_woocommerce_email_order_details’,10, 4 );