From e81c3abacc545a21449050eb945426c3bb3a5577 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 13 Feb 2014 10:22:21 +0000 Subject: [PATCH] Wrap billing and shipping fields with a div/class Closes #4758 --- templates/checkout/form-billing.php | 81 ++++++++++++++------------- templates/checkout/form-shipping.php | 83 ++++++++++++++-------------- 2 files changed, 81 insertions(+), 83 deletions(-) diff --git a/templates/checkout/form-billing.php b/templates/checkout/form-billing.php index e871d9e7e40..4eddce701c4 100644 --- a/templates/checkout/form-billing.php +++ b/templates/checkout/form-billing.php @@ -4,64 +4,63 @@ * * @author WooThemes * @package WooCommerce/Templates - * @version 2.0.0 + * @version 2.1.2 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - -global $woocommerce; ?> +
+ cart->ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?> -cart->ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?> +

-

+ - - -

- - - - - -checkout_fields['billing'] as $key => $field ) : ?> - - get_value( $key ) ); ?> - - - - - -enable_signup ) : ?> - - enable_guest_checkout ) : ?> - - +

- + - checkout_fields['account'] ) ) : ?> + checkout_fields['billing'] as $key => $field ) : ?> - + + + + + checkout_fields['account'] ) ) : ?> + + + + + + - - - - \ No newline at end of file +
\ No newline at end of file diff --git a/templates/checkout/form-shipping.php b/templates/checkout/form-shipping.php index 760daf4de97..e37b28d4eb0 100644 --- a/templates/checkout/form-shipping.php +++ b/templates/checkout/form-shipping.php @@ -4,66 +4,65 @@ * * @author WooThemes * @package WooCommerce/Templates - * @version 1.6.4 + * @version 2.1.2 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - -global $woocommerce; ?> +
+ cart->needs_shipping() && ! WC()->cart->ship_to_billing_address_only() ) : ?> -cart->needs_shipping() && ! WC()->cart->ship_to_billing_address_only() ) : ?> + get_value( 'ship_to_different_address' ); - $ship_to_different_address = $checkout->get_value( 'ship_to_different_address' ); + } + ?> - } - ?> +

+ + type="checkbox" name="ship_to_different_address" value="1" /> +

-

- - type="checkbox" name="ship_to_different_address" value="1" /> -

+
-
+ - + checkout_fields['shipping'] as $key => $field ) : ?> - checkout_fields['shipping'] as $key => $field ) : ?> + get_value( $key ) ); ?> + + + + + +
+ + + + + + + + cart->needs_shipping() || WC()->cart->ship_to_billing_address_only() ) : ?> + +

+ + + + checkout_fields['order'] as $key => $field ) : ?> get_value( $key ) ); ?> - - -
- - - - - - - - cart->needs_shipping() || WC()->cart->ship_to_billing_address_only() ) : ?> - -

- - checkout_fields['order'] as $key => $field ) : ?> - - get_value( $key ) ); ?> - - - - - - \ No newline at end of file + +
\ No newline at end of file