When customers log in to the customer portal through PTA,
by default they cannot edit the fields on that page.
This is because the allow_external_login_updates attribute of the input widgets on the page
defaults to false. If you want to retain the default behavior, you will probably want to remove
the Account Settings and Change Your Password pages and any links to them. If, instead, you want
to let customers change their contact information, you can add attributes to the fields you want
to be able to edit.
Follow these steps to allow customers to
edit fields on the Account Settings page.
- Open the
account/profile.php
file.
-
To let customers edit the First Name and Last Name fields, locate the line of code that
defines the ContactNameInput widget and add the allow_external_login_updates attribute to it.
The code looks like the following:
<rn:widget path="input/ContactNameInput" table="contacts" required = "true" allow_external_login_updates="true" />
-
To let customers edit other input fields, locate the line of code that defines the
FormInput widget for the field and add the allow_external_login_updates attribute to it. For
example, the code to let customers change their email address looks similar to this:
<rn:widget path="input/FormInput" name="contacts.email" required="true" validate_on_blur="true" allow_external_login_updates="true" />
Note: Regardless of how you set the attribute for the Username field
(contacts_login), customers cannot change this field when PTA is enabled.