Fix acronym zip to be all capitals fixes #9641

This commit is contained in:
roykho 2015-11-18 15:32:23 -08:00
parent 4595befb76
commit 9078e30ea4
4 changed files with 9 additions and 9 deletions

View File

@ -534,8 +534,8 @@ class WC_Countries {
'validate' => array( 'state' ) 'validate' => array( 'state' )
), ),
'postcode' => array( 'postcode' => array(
'label' => __( 'Postcode / Zip', 'woocommerce' ), 'label' => __( 'Postcode / ZIP', 'woocommerce' ),
'placeholder' => __( 'Postcode / Zip', 'woocommerce' ), 'placeholder' => __( 'Postcode / ZIP', 'woocommerce' ),
'required' => true, 'required' => true,
'class' => array( 'form-row-last', 'address-field' ), 'class' => array( 'form-row-last', 'address-field' ),
'clear' => true, 'clear' => true,
@ -865,8 +865,8 @@ class WC_Countries {
), ),
'US' => array( 'US' => array(
'postcode' => array( 'postcode' => array(
'label' => __( 'Zip', 'woocommerce' ), 'label' => __( 'ZIP', 'woocommerce' ),
'placeholder' => __( 'Zip', 'woocommerce' ), 'placeholder' => __( 'ZIP', 'woocommerce' ),
), ),
'state' => array( 'state' => array(
'label' => __( 'State', 'woocommerce' ), 'label' => __( 'State', 'woocommerce' ),

View File

@ -120,9 +120,9 @@ class WC_Shipping_Local_Delivery extends WC_Shipping_Local_Pickup {
'placeholder' => wc_format_localized_price( 0 ) 'placeholder' => wc_format_localized_price( 0 )
), ),
'codes' => array( 'codes' => array(
'title' => __( 'Allowed Zip/Post Codes', 'woocommerce' ), 'title' => __( 'Allowed ZIP/Post Codes', 'woocommerce' ),
'type' => 'text', 'type' => 'text',
'desc_tip' => __( 'What zip/post codes are available for local delivery?', 'woocommerce' ), 'desc_tip' => __( 'What ZIP/post codes are available for local delivery?', 'woocommerce' ),
'default' => '', 'default' => '',
'description' => __( 'Separate codes with a comma. Accepts wildcards, e.g. <code>P*</code> will match a postcode of PE30. Also accepts a pattern, e.g. <code>NG1___</code> would match NG1 1AA but not NG10 1AA', 'woocommerce' ), 'description' => __( 'Separate codes with a comma. Accepts wildcards, e.g. <code>P*</code> will match a postcode of PE30. Also accepts a pattern, e.g. <code>NG1___</code> would match NG1 1AA but not NG10 1AA', 'woocommerce' ),
'placeholder' => 'e.g. 12345, 56789' 'placeholder' => 'e.g. 12345, 56789'

View File

@ -76,9 +76,9 @@ class WC_Shipping_Local_Pickup extends WC_Shipping_Method {
'desc_tip' => true, 'desc_tip' => true,
), ),
'codes' => array( 'codes' => array(
'title' => __( 'Allowed Zip/Post Codes', 'woocommerce' ), 'title' => __( 'Allowed ZIP/Post Codes', 'woocommerce' ),
'type' => 'text', 'type' => 'text',
'desc_tip' => __( 'What zip/post codes are available for local pickup?', 'woocommerce' ), 'desc_tip' => __( 'What ZIP/post codes are available for local pickup?', 'woocommerce' ),
'default' => '', 'default' => '',
'description' => __( 'Separate codes with a comma. Accepts wildcards, e.g. <code>P*</code> will match a postcode of PE30. Also accepts a pattern, e.g. <code>NG1___</code> would match NG1 1AA but not NG10 1AA', 'woocommerce' ), 'description' => __( 'Separate codes with a comma. Accepts wildcards, e.g. <code>P*</code> will match a postcode of PE30. Also accepts a pattern, e.g. <code>NG1___</code> would match NG1 1AA but not NG10 1AA', 'woocommerce' ),
'placeholder' => 'e.g. 12345, 56789' 'placeholder' => 'e.g. 12345, 56789'

View File

@ -87,7 +87,7 @@ if ( 'no' === get_option( 'woocommerce_enable_shipping_calc' ) || ! WC()->cart->
<?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_postcode', true ) ) : ?> <?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_postcode', true ) ) : ?>
<p class="form-row form-row-wide" id="calc_shipping_postcode_field"> <p class="form-row form-row-wide" id="calc_shipping_postcode_field">
<input type="text" class="input-text" value="<?php echo esc_attr( WC()->customer->get_shipping_postcode() ); ?>" placeholder="<?php esc_attr_e( 'Postcode / Zip', 'woocommerce' ); ?>" name="calc_shipping_postcode" id="calc_shipping_postcode" /> <input type="text" class="input-text" value="<?php echo esc_attr( WC()->customer->get_shipping_postcode() ); ?>" placeholder="<?php esc_attr_e( 'Postcode / ZIP', 'woocommerce' ); ?>" name="calc_shipping_postcode" id="calc_shipping_postcode" />
</p> </p>
<?php endif; ?> <?php endif; ?>