cart-errors.php
2 years ago
form-billing.php
2 years ago
form-checkout.php
1 year ago
form-coupon.php
1 year ago
form-login.php
11 months ago
form-pay.php
2 years ago
form-shipping.php
2 years ago
form-verify-email.php
1 year ago
order-receipt.php
2 years ago
order-received.php
2 years ago
payment-method.php
2 years ago
payment.php
1 year ago
review-order.php
2 years ago
terms.php
4 years ago
thankyou.php
2 years ago
form-checkout.php
67 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Checkout Form |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-checkout.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://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 9.4.0 |
| 16 | */ |
| 17 | |
| 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | exit; |
| 20 | } |
| 21 | |
| 22 | do_action( 'woocommerce_before_checkout_form', $checkout ); |
| 23 | |
| 24 | // If checkout registration is disabled and not logged in, the user cannot checkout. |
| 25 | if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_required() && ! is_user_logged_in() ) { |
| 26 | echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ) ) ); |
| 27 | return; |
| 28 | } |
| 29 | |
| 30 | ?> |
| 31 | |
| 32 | <form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url( wc_get_checkout_url() ); ?>" enctype="multipart/form-data" aria-label="<?php echo esc_attr__( 'Checkout', 'woocommerce' ); ?>"> |
| 33 | |
| 34 | <?php if ( $checkout->get_checkout_fields() ) : ?> |
| 35 | |
| 36 | <?php do_action( 'woocommerce_checkout_before_customer_details' ); ?> |
| 37 | |
| 38 | <div class="col2-set" id="customer_details"> |
| 39 | <div class="col-1"> |
| 40 | <?php do_action( 'woocommerce_checkout_billing' ); ?> |
| 41 | </div> |
| 42 | |
| 43 | <div class="col-2"> |
| 44 | <?php do_action( 'woocommerce_checkout_shipping' ); ?> |
| 45 | </div> |
| 46 | </div> |
| 47 | |
| 48 | <?php do_action( 'woocommerce_checkout_after_customer_details' ); ?> |
| 49 | |
| 50 | <?php endif; ?> |
| 51 | |
| 52 | <?php do_action( 'woocommerce_checkout_before_order_review_heading' ); ?> |
| 53 | |
| 54 | <h3 id="order_review_heading"><?php esc_html_e( 'Your order', 'woocommerce' ); ?></h3> |
| 55 | |
| 56 | <?php do_action( 'woocommerce_checkout_before_order_review' ); ?> |
| 57 | |
| 58 | <div id="order_review" class="woocommerce-checkout-review-order"> |
| 59 | <?php do_action( 'woocommerce_checkout_order_review' ); ?> |
| 60 | </div> |
| 61 | |
| 62 | <?php do_action( 'woocommerce_checkout_after_order_review' ); ?> |
| 63 | |
| 64 | </form> |
| 65 | |
| 66 | <?php do_action( 'woocommerce_after_checkout_form', $checkout ); ?> |
| 67 |