Anyone has any idea how to get the profile_id after I created a new profile using commerce_customer_profile_save() ?

Apparently this function does not return the new profile object and I don't think it's very safe just to select last inserted profile from the database :(

1 Answer 1


Stupid me, it's in the $profile object itself.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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