Limit characters in Woo Checkout Editor order_comments

Hi guys,

I’m using your Woo Checkout Editor extension and want to limit the number of characters allowed in the order_comments section of the checkout.

I’ve tried the following but it’s not working:

 /**
 * Character limit on order notes in checkout */
add_filter( 'woocommerce_checkout_fields', 'filter_checkout_fields' );

function filter_checkout_fields( $fields ) {
	$fields['order']['order_comments']['maxlength'] = 250;
	return $fields;
}

Hoping you can point me in the right direction.

Cheers

Claire :smile:

Hi Claire,

Thanks for reaching out.

Regretfully, providing custom code is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.