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-login.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Checkout login form |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-login.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 3.8.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | if ( is_user_logged_in() || 'no' === get_option( 'woocommerce_enable_checkout_login_reminder' ) ) { |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | ?> |
| 25 | <div class="woocommerce-form-login-toggle"> |
| 26 | <?php wc_print_notice( apply_filters( 'woocommerce_checkout_login_message', esc_html__( 'Returning customer?', 'woocommerce' ) ) . ' <a href="#" class="showlogin">' . esc_html__( 'Click here to login', 'woocommerce' ) . '</a>', 'notice' ); ?> |
| 27 | </div> |
| 28 | <?php |
| 29 | |
| 30 | woocommerce_login_form( |
| 31 | array( |
| 32 | 'message' => esc_html__( 'If you have shopped with us before, please enter your details below. If you are a new customer, please proceed to the Billing section.', 'woocommerce' ), |
| 33 | 'redirect' => wc_get_checkout_url(), |
| 34 | 'hidden' => true, |
| 35 | ) |
| 36 | ); |
| 37 |