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-shipping.php
71 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Checkout shipping information form |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-shipping.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.6.0 |
| 16 | * @global WC_Checkout $checkout |
| 17 | */ |
| 18 | |
| 19 | defined( 'ABSPATH' ) || exit; |
| 20 | ?> |
| 21 | <div class="woocommerce-shipping-fields"> |
| 22 | <?php if ( true === WC()->cart->needs_shipping_address() ) : ?> |
| 23 | |
| 24 | <h3 id="ship-to-different-address"> |
| 25 | <label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox"> |
| 26 | <input id="ship-to-different-address-checkbox" class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" <?php checked( apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ), 1 ); ?> type="checkbox" name="ship_to_different_address" value="1" /> <span><?php esc_html_e( 'Ship to a different address?', 'woocommerce' ); ?></span> |
| 27 | </label> |
| 28 | </h3> |
| 29 | |
| 30 | <div class="shipping_address"> |
| 31 | |
| 32 | <?php do_action( 'woocommerce_before_checkout_shipping_form', $checkout ); ?> |
| 33 | |
| 34 | <div class="woocommerce-shipping-fields__field-wrapper"> |
| 35 | <?php |
| 36 | $fields = $checkout->get_checkout_fields( 'shipping' ); |
| 37 | |
| 38 | foreach ( $fields as $key => $field ) { |
| 39 | woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); |
| 40 | } |
| 41 | ?> |
| 42 | </div> |
| 43 | |
| 44 | <?php do_action( 'woocommerce_after_checkout_shipping_form', $checkout ); ?> |
| 45 | |
| 46 | </div> |
| 47 | |
| 48 | <?php endif; ?> |
| 49 | </div> |
| 50 | <div class="woocommerce-additional-fields"> |
| 51 | <?php do_action( 'woocommerce_before_order_notes', $checkout ); ?> |
| 52 | |
| 53 | <?php if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) ) ) : ?> |
| 54 | |
| 55 | <?php if ( ! WC()->cart->needs_shipping() || wc_ship_to_billing_address_only() ) : ?> |
| 56 | |
| 57 | <h3><?php esc_html_e( 'Additional information', 'woocommerce' ); ?></h3> |
| 58 | |
| 59 | <?php endif; ?> |
| 60 | |
| 61 | <div class="woocommerce-additional-fields__field-wrapper"> |
| 62 | <?php foreach ( $checkout->get_checkout_fields( 'order' ) as $key => $field ) : ?> |
| 63 | <?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?> |
| 64 | <?php endforeach; ?> |
| 65 | </div> |
| 66 | |
| 67 | <?php endif; ?> |
| 68 | |
| 69 | <?php do_action( 'woocommerce_after_order_notes', $checkout ); ?> |
| 70 | </div> |
| 71 |