you can do that by editing file
in computer-repair-shop >> lib >> includes >> large_invoice.php
Please edit that file and replace code in that file with code below and it will put name on top
<?php
if ( ! function_exists( 'wc_print_order_invoice' ) ) :
/***
* Repair Order Functionality
* Function Returns repair Order
*
* Takes Order ID as an Argument.
* @package computer repair shop
*/
function wc_print_order_invoice( $order_id, $post_type ) {
global $PAYMENT_STATUS_OBJ;
if ( empty( $order_id ) ) {
return;
}
$system_currency = return_wc_rb_currency_symbol();
$wc_use_taxes = get_option( 'wc_use_taxes' );
//Let's do magic.
$customer_id = get_post_meta( $order_id, '_customer', true );
$user = get_user_by( 'id', $customer_id );
$user_email = !empty( $user ) ? $user->user_email : '';
$wc_device_label = ( empty( get_option( 'wc_device_label' ) ) ) ? esc_html__( 'Device', 'computer-repair-shop' ) : get_option( 'wc_device_label' );
$wc_device_id_imei_label = ( empty( get_option( 'wc_device_id_imei_label' ) ) ) ? esc_html__( 'ID/IMEI', 'computer-repair-shop' ) : get_option( 'wc_device_id_imei_label' );
$customerLabel = get_post_meta( $order_id, "_customer_label", true );
$content = '<div id="invoice-box" class="invoice-box">';
$content .= '<h2 class="specialTitle">' . $customerLabel . '</h2>';
$content .= '<table cellpadding="0" cellspacing="0">
<tr class="top">
<td colspan="2">
<table>
<tr>
<td class="title">';
$content .= wc_rb_return_logo_url_with_img("company_logo");
$pickup_date = get_post_meta( $order_id, '_pickup_date', true );
$pickup_date = ( ! empty( $pickup_date ) ) ? $pickup_date : get_the_date( '', $order_id );
$date_format = get_option( 'date_format' );
$pickup_date = date_i18n( $date_format, strtotime( $pickup_date ) );
$content .= '</td>
<td class="invoice_headers">
<strong>'.esc_html__("Order", "computer-repair-shop").' #:</strong> '.$order_id.'<br>
<strong>'.esc_html__( 'Case Number', 'computer-repair-shop' ).' :</strong> '.get_post_meta( $order_id, "_case_number", true ).'<br>
<strong>'.esc_html__("Created", "computer-repair-shop").' :</strong> ' . esc_html( $pickup_date ) . '<br>
<strong>'.esc_html__("Payment Status", "computer-repair-shop").' :</strong> '.get_post_meta( $order_id, "_wc_payment_status_label", true ).'<br>
<strong>'.esc_html__("Order Status", "computer-repair-shop").' :</strong> '.get_post_meta( $order_id, "_wc_order_status_label", true ).'
</td>
</tr>
</table>
</td>
</tr>
<tr class="information">
<td colspan="2">
'. $PAYMENT_STATUS_OBJ->wc_return_online_payment_link( $order_id ) .'
<table class="invoice_headers">
<tr>
<td>';
$wc_rb_business_name = get_option( 'wc_rb_business_name' );
$wc_rb_business_phone = get_option( 'wc_rb_business_phone' );
$wc_rb_business_address = get_option( 'wc_rb_business_address' );
$wc_rb_business_name = ( empty( $wc_rb_business_name ) ) ? get_bloginfo( 'name' ) : $wc_rb_business_name;
$computer_repair_email = get_option( 'computer_repair_email' );
$_store_id = get_post_meta( $order_id, '_store_id', true );
if ( ! empty( $_store_id ) ) {
$store_address = get_post_meta( $_store_id, '_store_address', true );
$store_email = get_post_meta( $_store_id, '_store_email', true );
$wc_rb_business_address = ( ! empty( $store_address ) ) ? $store_address : $wc_rb_business_address;
$computer_repair_email = ( ! empty( $store_email ) ) ? $store_email : $computer_repair_email;
}
if(empty($computer_repair_email)) {
$computer_repair_email = get_option("admin_email");
}
$content .= '<div class="company_info large_invoice">';
$content .= "<div class='address-side'>
<h2>".$wc_rb_business_name."</h2>";
$content .= ( ! empty( get_bloginfo( 'description' ) ) ) ? get_bloginfo( 'description' ) . '<br>' : '';
$content .= "<p>";
$content .= $wc_rb_business_address;
$content .= (!empty($computer_repair_email)) ? "<br><strong>".esc_html__("Email", "computer-repair-shop")."</strong>: ".$computer_repair_email : "";
$content .= (!empty($wc_rb_business_phone)) ? "<br><strong>".esc_html__("Phone", "computer-repair-shop")."</strong>: ".$wc_rb_business_phone : "";
$content .= "</p></div>";
$content .= '</div>';
$content .= '</td>
<td>';
$customerLabel = get_post_meta( $order_id, "_customer_label", true );
$customer_phone = get_user_meta( $customer_id, 'customer_phone', true);
$customer_address = get_user_meta( $customer_id, 'customer_address', true);
$customer_city = get_user_meta( $customer_id, 'customer_city', true);
$customer_zip = get_user_meta( $customer_id, 'zip_code', true);
$state = get_user_meta( $customer_id, 'state_province', true);
$country = get_user_meta( $customer_id, 'country', true);
$customer_company = get_user_meta( $customer_id, 'company', true);
$content .= ( ! empty( $customer_company ) ) ? '<strong>' . esc_html__( 'Company', 'computer-repair-shop' ) . ' : </strong>' . $customer_company . '<br>' : '';
$content .= ( ! empty( $customerLabel ) ) ? $customerLabel : '';
if(!empty($customer_zip) || !empty($customer_city) || !empty($customer_address)) {
$content .= "<br><strong>".esc_html__("Address", "computer-repair-shop")." :</strong> ";
$content .= !empty($customer_address) ? $customer_address.", " : " ";
$content .= !empty($customer_city) ? "<br>".$customer_city.", " : " ";
$content .= !empty($customer_zip) ? $customer_zip.", " : " ";
$content .= !empty($state) ? $state.", " : " ";
$content .= !empty($country) ? $country : " ";
}
if(!empty($customer_phone)) {
$content .= "<br><strong>".esc_html__("Phone", "computer-repair-shop")." :</strong> ".$customer_phone;
}
if(!empty($user_email)) {
$content .= "<br><strong>".esc_html__("Email", "computer-repair-shop")." :</strong> ".$user_email;
}
$content .= '
</td>
</tr>
</table>
</td>
</tr>';
if ( isset( $post_type ) && $post_type == 'status_check' ) {
//Get File option
$wc_file_attachment_in_job = get_option( 'wc_file_attachment_in_job' );
$meta_key = 'wc_job_file';
$file_id = get_post_meta( $order_id, '_' . $meta_key, true );
if ( $wc_file_attachment_in_job == 'on' && !empty( $file_id ) ) {
$content .= '<tr class="heading">';
$content .= '<th>' . esc_html__( 'File Attachment', 'computer-repair-shop' ) . '</th>';
$file_url = wp_get_attachment_url( $file_id );
$content .= '<td><a href="' . esc_url( $file_url ) . '" target="_blank">' . esc_html__( 'Click to view', 'computer-repair-shop' ) . '</a></td>';
$content .= '</tr>';
}
}
/*$device_id = get_post_meta( $order_id, '_device_id', true );
$device_post_number = get_post_meta( $order_id, '_device_post_id', true );
if(!empty($device_post_number)):
$content .= "<br><strong>" . . " </strong>".return_device_label($device_post_number);
endif;
if(!empty($device_id)):
$content .= "<br><strong>" . $wc_device_id_imei_label . " </strong>".esc_html($device_id);
endif; */
$wc_case_detail = get_post_meta( $order_id, '_case_detail', true );
if ( ! empty( $wc_case_detail ) ) :
$content .= '<tr class="heading">
<td colspan="2">
' . esc_html__( 'Order Details', 'computer-repair-shop' ) . '
</td>
</tr>
<tr class="details">
<td colspan="2">
' . $wc_case_detail . '
</td>
</tr>';
endif;
$content .= '</table>';
$current_devices = get_post_meta( $order_id, '_wc_device_data', true );
if ( ! empty( $current_devices ) && is_array( $current_devices ) ) {
$content .= '<table class="mb-twenty">';
$content .= '<tr class="heading special_head">';
$content .= '<td>' . $wc_device_label . '</td>';
$content .= '<td>' . $wc_device_id_imei_label . '</td>';
$content .= '<td>' . esc_html__( 'Note', 'computer-repair-shop' ) . '</td>';
$content .= '</tr>';
foreach( $current_devices as $device_data ) {
$deive_note = ( isset( $device_data['device_note'] ) ) ? $device_data['device_note'] : '';
$device_post_id = ( isset( $device_data['device_post_id'] ) ) ? $device_data['device_post_id'] : '';
$device_id = ( isset( $device_data['device_id'] ) ) ? $device_data['device_id'] : '';
$content .= '<tr class="item-row">';
$content .= '<td>' . return_device_label( $device_post_id ) . '</td>';
$content .= '<td>' . $device_id . '</td>';
$content .= '<td class="text-left">' . $deive_note . '</td>';
$content .= '</tr>';
}
$content .= '</table>';
}
if ( ! empty( $arguments_d ) ) {
$arguments_d = array(
'order_id' => $order_id,
'display_type' => $post_type
);
} else {
$arguments_d = $order_id;
}
if ( wc_rs_license_state() ) :
if ( !empty( wc_print_existing_parts( $order_id ) ) ) :
$content .= '<table class="invoice-items">
<tr class="heading special_head">
<td>' . esc_html__( 'Part Name', 'computer-repair-shop' ) . '</td>
<td>' . esc_html__( 'Code', 'computer-repair-shop' ).'</td>
<td>' . esc_html__( 'Capacity', 'computer-repair-shop' ).'</td>
<td width="50">' . esc_html__( 'Qty', 'computer-repair-shop' ).'</td>
<td width="100">' . esc_html__( 'Price', 'computer-repair-shop' ).'</td>';
if($wc_use_taxes == 'on'):
$content .= '<td>'.esc_html__("Tax (%)", "computer-repair-shop").'</td>';
$content .= '<td>'.esc_html__("Tax", "computer-repair-shop") . ' (' . $system_currency . ')' . '</td>';
endif;
$content .= '<td>'.esc_html__("Total", "computer-repair-shop").'</td>
</tr>
' . wc_print_existing_parts( $arguments_d ) . '
</table>';
$content .= '<div class="invoice_totals"><table><tr>';
if($wc_use_taxes == 'on'):
$partsTax = wc_order_grand_total( $order_id, 'parts_tax' );
$content .= '<th>'.esc_html__("Parts Tax", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $partsTax, FALSE ) . '</td>';
endif;
$partsTotal = wc_order_grand_total( $order_id, 'parts_total' );
$content .= '<th>'.esc_html__("Parts Total", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $partsTotal, FALSE ) . '</td>';
$content .= '</tr></table></div>';
endif;
if(!empty(wc_print_existing_products($order_id))):
$content .= '<table class="invoice-items">
<tr class="heading special_head">
<td>'.esc_html__("Product Name", "computer-repair-shop").'</td>
<td>'.esc_html__("SKU", "computer-repair-shop").'</td>
<td width="50">'.esc_html__("Qty", "computer-repair-shop").'</td>
<td width="100">'.esc_html__("Price", "computer-repair-shop").'</td>';
if($wc_use_taxes == 'on'):
$content .= '<td>'.esc_html__("Tax (%)", "computer-repair-shop").'</td>';
$content .= '<td>'.esc_html__("Tax", "computer-repair-shop") . ' (' . $system_currency . ')' . '</td>';
endif;
$content .= '<td>'.esc_html__("Total", "computer-repair-shop").'</td>
</tr>
'.wc_print_existing_products($arguments_d).'
</table>';
$content .= '<div class="invoice_totals"><table><tr>';
if($wc_use_taxes == 'on'):
$productsTax = wc_order_grand_total( $order_id, 'products_tax' );
$content .= '<th>'.esc_html__("Products Tax", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $productsTax, FALSE ) . '</td>';
endif;
$productsTotal = wc_order_grand_total( $order_id, 'products_total' );
$content .= '<th>'.esc_html__("Products Total", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $productsTotal, FALSE) . '</td>';
$content .= '</tr></table></div>';
endif;
if(!empty(wc_print_existing_services($order_id))):
$content .= '<table class="invoice-items">
<tr class="heading special_head">
<td>'.esc_html__("Service Name", "computer-repair-shop").'</td>
<td>'.esc_html__("Code", "computer-repair-shop").'</td>
<td width="50">'.esc_html__("Qty", "computer-repair-shop").'</td>
<td width="100">'.esc_html__("Price", "computer-repair-shop").'</td>';
if($wc_use_taxes == 'on'):
$content .= '<td>'.esc_html__("Tax (%)", "computer-repair-shop").'</td>';
$content .= '<td>'.esc_html__("Tax", "computer-repair-shop") . ' (' . $system_currency . ')' . '</td>';
endif;
$content .= '<td>'.esc_html__("Total", "computer-repair-shop").'</td>
</tr>
' . wc_print_existing_services( $arguments_d ) . '
</table>';
$content .= '<div class="invoice_totals"><table><tr>';
if($wc_use_taxes == 'on'):
$servicesTax = wc_order_grand_total( $order_id, 'services_tax' );
$content .= '<th>'.esc_html__("Services Tax", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $servicesTax, FALSE ) . '</td>';
endif;
$servicesTotal = wc_order_grand_total( $order_id, 'services_total' );
$content .= '<th>'.esc_html__("Services Total", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $servicesTotal, FALSE ) . '</td>';
$content .= '</tr></table></div>';
endif;
if(!empty(wc_print_existing_extras($order_id))):
$content .= '<table class="invoice-items">
<tr class="heading special_head">
<td>'.esc_html__("Extra Name", "computer-repair-shop").'</td>
<td>'.esc_html__("Code", "computer-repair-shop").'</td>
<td width="50">'.esc_html__("Qty", "computer-repair-shop").'</td>
<td width="100">'.esc_html__("Price", "computer-repair-shop").'</td>';
if($wc_use_taxes == 'on'):
$content .= '<td>'.esc_html__("Tax (%)", "computer-repair-shop").'</td>';
$content .= '<td>'.esc_html__("Tax", "computer-repair-shop") . ' (' . $system_currency . ')' . '</td>';
endif;
$content .= '<td>'.esc_html__("Total", "computer-repair-shop").'</td>
</tr>
'.wc_print_existing_extras( $arguments_d ).'
</table>';
$content .= '<div class="invoice_totals"><table><tr>';
if($wc_use_taxes == 'on'):
$extrasTax = wc_order_grand_total( $order_id, 'extras_tax' );
$content .= '<th>'.esc_html__("Extras Tax", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $extrasTax, FALSE ) . '</td>';
endif;
$extrasTotal = wc_order_grand_total( $order_id, 'extras_total' );
$content .= '<th>'.esc_html__("Extras Total", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $extrasTotal, FALSE ) . '</td>';
$content .= '</tr></table></div>';
endif;
else:
$content .= wc_cr_new_purchase_link("");
endif;
$content .= '<div class="invoice_totals"><table>';
$receiving = $PAYMENT_STATUS_OBJ->wc_return_receivings_total( $order_id );
$theGrandTotal = wc_order_grand_total( $order_id, 'grand_total' );
$theBalance = $theGrandTotal-$receiving;
$content .= '<tr><th>'.esc_html__("Grand Total", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $theGrandTotal ) . '</td></tr>';
$content .= '<tr><th>'.esc_html__("Received", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $receiving ) . '</td></tr>';
$content .= '<tr><th>'.esc_html__("Balance", "computer-repair-shop").'</th><td>' . wc_cr_currency_format( $theBalance ) . '</td></tr>';
$content .= '</table></div>';
$content .= "<p class='text-center'>";
$content .= ( ! empty( get_option( 'wc_rb_io_thanks_msg' ) ) ) ? get_option( 'wc_rb_io_thanks_msg' ) : esc_html__( 'Thanks for your business!', 'computer-repair-shop' );
$content .= "</p>";
if(isset($post_type) && ( $post_type == "print" || $post_type == 'status_check' ) ){
$content .= '<button id="btnPrint" class="hidden-print button button-primary">'.esc_html__("Print", "computer-repair-shop").'</button>';
}
$content .= '</div>';
return $content;
}
endif;