āĻāĻĒāύāĻžāϰ āĻ āϰā§āĻĄāĻžāϰ āĻā§āϰā§āϝāĻžāĻ āĻāϰā§āύ (Track Your Order)
āĻāĻĒāύāĻžāϰ āĻ āϰā§āĻĄāĻžāϰā§āϰ āĻŦāϰā§āϤāĻŽāĻžāύ āĻ āĻŦāϏā§āĻĨāĻž āĻāĻŦāĻ āĻĄā§āϞāĻŋāĻāĻžāϰāĻŋ āĻāĻĒāĻĄā§āĻ āĻāĻžāύāϤ⧠āύāĻŋāĻā§āϰ āĻŦāĻā§āϏ⧠āĻāĻĒāύāĻžāϰ āĻ āϰā§āĻĄāĻžāϰ āĻāĻāĻĄāĻŋ (Order ID) āĻāĻŦāĻ āĻ āϰā§āĻĄāĻžāϰ āĻāϰāĻžāϰ āϏāĻŽāϝāĻŧ āĻŦā§āϝāĻŦāĻšā§āϤ āĻāĻŽā§āĻāϞ āĻŦāĻž āĻŽā§āĻŦāĻžāĻāϞ āύāĻŽā§āĻŦāϰ āĻĻāĻŋāϝāĻŧā§ “Track” āĻŦāĻžāĻāύ⧠āĻā§āϞāĻŋāĻ āĻāϰā§āύāĨ¤ āĻ āϰā§āĻĄāĻžāϰ āĻāύāĻĢāĻžāϰā§āĻŽā§āĻļāύ āĻŽā§āϏā§āĻ āĻŦāĻž āϰāĻŋāϏāĻŋāĻĒā§āĻā§ āĻāĻĒāύāĻžāϰ āĻ āϰā§āĻĄāĻžāϰ āĻāĻāĻĄāĻŋāĻāĻŋ āĻĒāĻžāĻŦā§āύāĨ¤
āϝā§āĻā§āύ⧠āĻĒā§āϰāϝāĻŧā§āĻāύ⧠āĻāĻŽāĻžāĻĻā§āϰ āĻāϞ āĻŦāĻž āĻšā§āϝāĻŧāĻžāĻāϏāĻ
ā§āϝāĻžāĻĒ āĻāϰā§āύ: +880 1614-473848
// Add
āĻāĻŽāĻžāĻĻā§āϰ āĻŽā§āϏā§āĻ āĻĒāĻžāĻ āĻžāύ (Send Us a Message)
āϝā§āĻā§āύ⧠āĻĒā§āϰāĻļā§āύ āĻŦāĻž āĻ āϰā§āĻĄāĻžāϰā§āϰ āϤāĻĨā§āϝā§āϰ āĻāύā§āϝ āύāĻŋāĻā§āϰ āĻĢāϰā§āĻŽāĻāĻŋ āĻĒā§āϰāĻŖ āĻāϰā§āύāĨ¤
function homevate_contact_form_shortcode() {
ob_start();
$status_msg = ”;
if ( isset($_POST[‘hv_submit_contact’]) && isset($_POST[‘hv_contact_nonce’]) && wp_verify_nonce($_POST[‘hv_contact_nonce’], ‘hv_contact_action’) ) {
$name = sanitize_text_field($_POST[‘hv_name’]);
$phone = sanitize_text_field($_POST[‘hv_phone’]);
$email = sanitize_email($_POST[‘hv_email’]);
$subject = sanitize_text_field($_POST[‘hv_subject’]);
$message = sanitize_textarea_field($_POST[‘hv_message’]);
if ( !empty($name) && !empty($phone) && !empty($message) ) {
$to = get_option(‘admin_email’); // Or replace with ‘[email protected]’
$mail_subject = ‘New Contact Message from Home Vate: ‘ . ($subject ? $subject : ‘Customer Inquiry’);
$body = “Name: $name\nPhone: $phone\nEmail: $email\nSubject: $subject\n\nMessage:\n$message”;
$headers = array(‘Content-Type: text/plain; charset=UTF-8’);
if ( !empty($email) ) {
$headers[] = “Reply-To: $name <$email>”;
}
if ( wp_mail($to, $mail_subject, $body, $headers) ) {
$status_msg = ‘
‘;
} else {
$status_msg = ‘
‘;
}
} else {
$status_msg = ‘
‘;
}
}
?>
