You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.0 KiB
56 lines
2.0 KiB
<?php
|
|
/**
|
|
* Checkout billing information form
|
|
*
|
|
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-billing.php.
|
|
*
|
|
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
|
* (the theme developer) will need to copy the new files to your theme to
|
|
* maintain compatibility. We try to do this as little as possible, but it does
|
|
* happen. When this occurs the version of the template file will be bumped and
|
|
* the readme will list any important changes.
|
|
*
|
|
* @see https://woocommerce.com/document/template-structure/
|
|
* @package WooCommerce\Templates
|
|
* @version 3.6.0
|
|
* @global WC_Checkout $checkout
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
?>
|
|
<div class="woocommerce-billing-fields">
|
|
<?php if ( wc_ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?>
|
|
|
|
<h3><?php esc_html_e( 'Billing & Shipping', 'woocommerce' ); ?></h3>
|
|
|
|
<?php else : ?>
|
|
|
|
<h3><?php esc_html_e( 'Billing details', 'woocommerce' ); ?></h3>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php do_action( 'woocommerce_before_checkout_billing_form', $checkout ); ?>
|
|
|
|
<div class="woocommerce-billing-fields__field-wrapper">
|
|
<?php
|
|
$fields = $checkout->get_checkout_fields( 'billing' );
|
|
|
|
foreach ( $fields as $key => $field ) {
|
|
woocommerce_form_field( $key, $field, $checkout->get_value( $key ) );
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<?php do_action( 'woocommerce_after_checkout_billing_form', $checkout ); ?>
|
|
</div>
|
|
|
|
<?php if ( ! is_user_logged_in() && $checkout->is_registration_enabled() ) : ?>
|
|
<div class="modal-form-content__line">
|
|
<div class="form-agreement__check">
|
|
<input id="reg" type="checkbox" name="reg" value="1" class="form-agreement__input">
|
|
<div class="form-agreement__square">
|
|
</div>
|
|
<label for="reg" class="form-agreement__label">Запомнить меня</label>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|