I have made a custom fieldtype.
{% import "_includes/forms" as forms %}
{{ forms.textField({
label: "business"|t,
required: true,
}) }}
And added it to the user fields. Where do I need to save data entered in at a user profile.
I would like to hook into the onSaveUser
event with my plugin to save my values into the address model of Craft Commerce, but how would I do that?
An example would be appreciated.