Skip to content

Commit

Permalink
Add placeholder for street field
Browse files Browse the repository at this point in the history
  • Loading branch information
mklasen committed Mar 19, 2019
1 parent 611fc31 commit aa1c0c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion classes/class-checkout-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public function alter_checkout_fields( $fields, $form ) {
'required' => true,
'priority' => 60,
'class' => [ 'form-row-quart-first' ],
'autocomplete' => 'street_address',
'autocomplete' => 'street_name',
'placeholder' => __( 'Street name', 'radish-checkout-fields' ),
'default' => ( ! empty( WC()->session->get( $form . '_street_name' ) ) ? WC()->session->get( $form . '_street_name' ) : '' ),
];
}
Expand Down
2 changes: 1 addition & 1 deletion classes/class-languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public function load_plugin_textdomain() {
basename( dirname( dirname( __FILE__ ) ) ) . '/languages'
);
}
}
}
6 changes: 3 additions & 3 deletions languages/radish-checkout-fields.pot
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: classes/class-checkout-fields.php:115, classes/class-checkout-fields.php:223, classes/class-checkout-fields.php:335
#: classes/class-checkout-fields.php:115, classes/class-checkout-fields.php:120, classes/class-checkout-fields.php:224, classes/class-checkout-fields.php:336
msgid "Street name"
msgstr ""

#: classes/class-checkout-fields.php:126, classes/class-checkout-fields.php:228, classes/class-checkout-fields.php:344
#: classes/class-checkout-fields.php:127, classes/class-checkout-fields.php:229, classes/class-checkout-fields.php:345
msgid "Nr."
msgstr ""

#: classes/class-checkout-fields.php:136, classes/class-checkout-fields.php:233, classes/class-checkout-fields.php:353
#: classes/class-checkout-fields.php:137, classes/class-checkout-fields.php:234, classes/class-checkout-fields.php:354
msgid "Suffix"
msgstr ""

0 comments on commit aa1c0c4

Please sign in to comment.