Wizard: Add placeholder to flat rate cost input
This commit is contained in:
parent
aee55f4b68
commit
5a7db686c5
|
@ -665,6 +665,10 @@ body {
|
|||
.shipping-method-setting .description {
|
||||
color: #7e7e7e;
|
||||
}
|
||||
|
||||
.shipping-method-setting input::placeholder {
|
||||
color: #e1e1e1;
|
||||
}
|
||||
}
|
||||
.wc-setup-shipping-units {
|
||||
p {
|
||||
|
|
|
@ -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 ); ?>"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue