Wizard: Add placeholder to flat rate cost input

This commit is contained in:
Valerie 2017-09-23 02:56:31 +03:00 committed by Jeff Stieler
parent aee55f4b68
commit 5a7db686c5
2 changed files with 8 additions and 2 deletions

View File

@ -665,6 +665,10 @@ body {
.shipping-method-setting .description {
color: #7e7e7e;
}
.shipping-method-setting input::placeholder {
color: #e1e1e1;
}
}
.wc-setup-shipping-units {
p {

View File

@ -638,8 +638,9 @@ class WC_Admin_Setup_Wizard {
'description' => __( 'Set a fixed price to cover shipping costs.', 'woocommerce' ),
'settings' => array(
'cost' => array(
'type' => 'text',
'description' => __( 'What would you like to charge for flat rate shipping?', 'woocommerce' ),
'type' => 'text',
'default_value' => __( 'Cost', 'Short label for entering the cost of an item', 'woocommerce' ),
'description' => __( 'What would you like to charge for flat rate shipping?', 'woocommerce' ),
),
),
),
@ -696,6 +697,7 @@ class WC_Admin_Setup_Wizard {
<?php $method_setting_id = "{$input_prefix}[{$method_id}][{$setting_id}]"; ?>
<input
type="<?php echo esc_attr( $setting['type'] ); ?>"
placeholder="<?php echo esc_attr( $setting['default_value'] ); ?>"
id="<?php echo esc_attr( $method_setting_id ); ?>"
name="<?php echo esc_attr( $method_setting_id ); ?>"
/>