cart-errors.php
5 years ago
form-billing.php
5 years ago
form-checkout.php
5 years ago
form-coupon.php
3 years ago
form-login.php
5 years ago
form-pay.php
2 years ago
form-shipping.php
5 years ago
form-verify-email.php
2 years ago
order-receipt.php
5 years ago
order-received.php
2 years ago
payment-method.php
5 years ago
payment.php
2 years ago
review-order.php
5 years ago
terms.php
4 years ago
thankyou.php
2 years ago
form-verify-email.php
54 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email verification page. |
| 4 | * |
| 5 | * This displays instead of the thankyou page any time that the customer cannot be identified. |
| 6 | * |
| 7 | * This template can be overridden by copying it to yourtheme/woocommerce/checkout/thankyou-verify-email.php. |
| 8 | * |
| 9 | * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer) will need to copy |
| 10 | * the new files to your theme to maintain compatibility. We try to do this as little as possible, but it does happen. |
| 11 | * When this occurs the version of the template file will be bumped and the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 7.9.0 |
| 16 | * |
| 17 | * @var bool $failed_submission Indicates if the last attempt to verify failed. |
| 18 | * @var string $verify_url The URL for the email verification form. |
| 19 | */ |
| 20 | |
| 21 | defined( 'ABSPATH' ) || exit; |
| 22 | ?> |
| 23 | <form name="checkout" method="post" class="woocommerce-form woocommerce-verify-email" action="<?php echo esc_url( $verify_url ); ?>" enctype="multipart/form-data"> |
| 24 | |
| 25 | <?php |
| 26 | wp_nonce_field( 'wc_verify_email', 'check_submission' ); |
| 27 | |
| 28 | if ( $failed_submission ) { |
| 29 | wc_print_notice( esc_html__( 'We were unable to verify the email address you provided. Please try again.', 'woocommerce' ), 'error' ); |
| 30 | } |
| 31 | ?> |
| 32 | <p> |
| 33 | <?php |
| 34 | printf( |
| 35 | /* translators: 1: opening login link 2: closing login link */ |
| 36 | esc_html__( 'To view this page, you must either %1$slogin%2$s or verify the email address associated with the order.', 'woocommerce' ), |
| 37 | '<a href="' . esc_url( wc_get_page_permalink( 'myaccount' ) ) . '">', |
| 38 | '</a>' |
| 39 | ); |
| 40 | ?> |
| 41 | </p> |
| 42 | |
| 43 | <p class="form-row"> |
| 44 | <label for="email"><?php esc_html_e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label> |
| 45 | <input type="email" class="input-text" name="email" id="email" autocomplete="email" /> |
| 46 | </p> |
| 47 | |
| 48 | <p class="form-row"> |
| 49 | <button type="submit" class="woocommerce-button button <?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ); ?>" name="verify" value="1"> |
| 50 | <?php esc_html_e( 'Verify', 'woocommerce' ); ?> |
| 51 | </button> |
| 52 | </p> |
| 53 | </form> |
| 54 |