Checkout form validation: alter the value of a commerce customer profile

In my checkout form, I have 2 customer profiles: billing (default) and shipping (from commerce shipping module).

Basically, I need to emulate the commerce_shipping 7.x-1 option "copy shipping information from billing", but i need to do that manually in a validation function (the values depends from few factors).

so: how to change the values of a customer_profile address field in the validation function?

My code:

Posted: Nov 6, 2012
Subscribe to RSS - address field