Google Autofill

We primarily sell to consumers but occasionally business buy from us so we have a 'Company' field in our checkout. We have recently started seeing things like the customers 'Title' (e.g. Mr or Mrs) in the company field, sometimes a URL or other customer information duplicated in this field.

I suspect its something to do with Google Autofill as I have myself had issues on our own and other websites.

Is there any way to add the autocomplete= attribute to our checkout fields?

You can use the profiles:profile_fields hook in the following file


to override profiles fields and add new attribute to input fields