45 lines
2.1 KiB
PHP
45 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* فرم پیگیری سفارش — Hesabix2
|
|
*
|
|
* @see https://woocommerce.com/document/template-structure/
|
|
* @package Hesabix2
|
|
* @version 7.0.1
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
global $post;
|
|
?>
|
|
|
|
<form action="<?php echo esc_url( get_permalink( $post->ID ) ); ?>" method="post" class="woocommerce-form woocommerce-form-track-order track_order hesabix-wc-track-order">
|
|
|
|
<?php do_action( 'woocommerce_order_tracking_form_start' ); ?>
|
|
|
|
<p class="hesabix-wc-track-order__intro">
|
|
<?php esc_html_e( 'برای پیگیری، شمارهٔ سفارش و ایمیل صورتحساب را وارد کنید.', 'hesabix2' ); ?>
|
|
</p>
|
|
|
|
<div class="hesabix-wc-track-order__fields">
|
|
<p class="form-row form-row-wide">
|
|
<label for="orderid"><?php esc_html_e( 'شمارهٔ سفارش', 'hesabix2' ); ?></label>
|
|
<input class="input-text" type="text" name="orderid" id="orderid" value="<?php echo isset( $_REQUEST['orderid'] ) ? esc_attr( wp_unslash( $_REQUEST['orderid'] ) ) : ''; ?>" placeholder="<?php esc_attr_e( 'در ایمیل تأیید سفارش', 'hesabix2' ); ?>" required />
|
|
</p>
|
|
<p class="form-row form-row-wide">
|
|
<label for="order_email"><?php esc_html_e( 'ایمیل صورتحساب', 'hesabix2' ); ?></label>
|
|
<input class="input-text" type="email" name="order_email" id="order_email" value="<?php echo isset( $_REQUEST['order_email'] ) ? esc_attr( wp_unslash( $_REQUEST['order_email'] ) ) : ''; ?>" placeholder="<?php esc_attr_e( 'ایمیلی که هنگام خرید وارد کردید', 'hesabix2' ); ?>" required />
|
|
</p>
|
|
</div>
|
|
|
|
<?php do_action( 'woocommerce_order_tracking_form' ); ?>
|
|
|
|
<p class="form-row hesabix-wc-track-order__submit">
|
|
<button type="submit" class="button alt<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>" name="track" value="<?php esc_attr_e( 'پیگیری', 'hesabix2' ); ?>">
|
|
<?php esc_html_e( 'پیگیری سفارش', 'hesabix2' ); ?>
|
|
</button>
|
|
</p>
|
|
<?php wp_nonce_field( 'woocommerce-order_tracking', 'woocommerce-order-tracking-nonce' ); ?>
|
|
|
|
<?php do_action( 'woocommerce_order_tracking_form_end' ); ?>
|
|
|
|
</form>
|