Hi @industrialtex,
1. As mentioned by Alex, the easiest way to change the checkout fields attributes would be to use a plugin such as “Checkout Fields Editor for WooCommerce – by ThemeHigh” as this is currently the plugin with better compatibility with Fluid Checkout.
Otherwise, if you prefer to do it via PHP code, you can use the code snippet below, making the necessary changes:
/**
* Change shipping phone field label.
*/
function fluidcheckout_change_shipping_phone_label( $fields ) {
// Bail if shipping phone not available
if ( ! array_key_exists( 'shipping_phone', $fields ) ) { return $fields; }
$fields[ 'shipping_phone' ]['label'] = __( 'Phone', 'your-text-domain' );
// Uncomment the line below to change the field description
// $fields[ 'shipping_phone' ]['description'] = __( 'Your best phone number', 'your-text-domain' );
// Uncomment the line below to remove the field description
// $fields[ 'shipping_phone' ]['description'] = null;
return $fields;
}
add_filter( 'woocommerce_shipping_fields', 'fluidcheckout_change_shipping_phone_label', 10 );
If you are unsure about how to add the code snippet, check our article:
How to safely add code snippets to your WooCommerce website
2. It is possible to add custom validation, however, it requires a good knowledge of JavaScript and some digging into the code as we currently do not have the documentation for this.
We have a feature planned for our PRO version to use an international phone number component that will minimize this problem. Although, we currently do not have plans to force a certain number of digits on it.
3. We have contacted the Digits plugin team, however, they are not willing to collaborate on adding compatibility with it. We currently do not own a copy of the Digits plugin and we do not have the budget to purchase plugins in order to add compatibility.
I hope you understand.
I’m closing this topic for now. If you need further assistance, please reply to this topic.
Best,
Diego