woocommerce 3.6.1 template changes
This commit is contained in:
parent
cb67c41f1e
commit
7d8e00f36e
|
@ -12,7 +12,7 @@
|
||||||
*
|
*
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
* @version 3.4.0
|
* @version 3.6.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
@ -35,9 +35,6 @@ do_action( 'woocommerce_before_edit_account_address_form' ); ?>
|
||||||
<div class="woocommerce-address-fields__field-wrapper">
|
<div class="woocommerce-address-fields__field-wrapper">
|
||||||
<?php
|
<?php
|
||||||
foreach ( $address as $key => $field ) {
|
foreach ( $address as $key => $field ) {
|
||||||
if ( isset( $field['country_field'], $address[ $field['country_field'] ] ) ) {
|
|
||||||
$field['country'] = wc_get_post_data_by_key( $field['country_field'], $address[ $field['country_field'] ]['value'] );
|
|
||||||
}
|
|
||||||
woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) );
|
woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Reference in New Issue