Kindly add this snippet to your site –
add_action( 'wp_ajax_wcfm_resend_order_email', function() {
$order_id = $_POST['order_id'];
if($order_id) {
$wcfmmp_email = WC()->mailer()->emails['WCFMmp_Email_Store_new_order'];
if( $wcfmmp_email ) {
$wcfmmp_email->trigger( $order_id );
}
}
die;
});
add_action( 'wcfm_order_details_after_order_table', function( $order ) {
if( !wcfm_is_vendor() ) {
echo '<a id="wcfm-order-' . $order->get_id() . '" data-order="' . $order->get_id() . '" href="#" class="wcfm_resend_order_email add_new_wcfm_ele_dashboard text_tip" style="float:left!important;color:#ffffff!important;margin-right:10px;" data-tip="' . __('Click to resend vendor order email', 'wcfm-gosend') . '"><span class="">' . __( 'Resend Vendor Order Email', 'wc-frontend-manager-ultimate') . '</span></a>';
echo '<div class="wcfm_clearfix"></div><br />';
?>
<script>
jQuery(document).ready(function($) {
$('.wcfm_resend_order_email').click(function( event ) {
event.preventDefault();
var rconfirm = confirm( "Do you really want to do this?" );
if( rconfirm ) {
var data = {
action : 'wcfm_resend_order_email',
order_id : $('.wcfm_resend_order_email').data('order')
}
$.ajax({
type: 'POST',
url: wcfm_params.ajax_url,
data: data,
success: function(response) {
//window.location = window.location.href;
}
});
}
return false;
});
});
</script>
<?php
}
}, 500 );
Add custom code(s) to your child theme’s functions.php
In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/
Now you will have a button “Resend Vendor Order Email” under Admin’s order details page – https://ibb.co/VTc5rv8