0

I am using Commerce Kirckstart installation.

I would like to change a field in commerce_customer_address. I only want a new field, like telephone and I would like to remove State. Some one knows how to do without code. thanks

0

Commerce customer profile uses an address field, whose columns are defined by the addressfield module.

It's not possible to alter those columns without writing code, so you're out of luck.

Also, I'd imagine that removing the state field would incur quite a bit of extra work, as existing validation/submission functionality would need to be overridden.

The easiest thing you can do is add the telephone number field to the profile type entity itself, and use a form alter or CSS to remove/hide the state field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.