This profile template page
is for the customer's profile, which is utilised to show customer-related information including, name, email and phone number. The customer can also modify and update their information on this page.Example#
Variables#
Components#
This page extends the default layout master.twig
, and accordingly, it takes the unified look-and-feel. For example, all of the header's
and footer's
components will be added automatically to this page.JS Web Components#
Customer's Profile page may include the following JS Web Components, which are ready-made designs and style-sets of web components for Salla stores.Hooks#
The profile template page
calls for the following hooks in order to inject extra information. These hooks are mainly used for processing the user profile <form>
. Similarly, to add a submit button to the form, the developer may simply use salla-button
component.Usage#
The customer's profile page receives all of the User
model information, which is accessible automatically on this page because it's included in the master.twig
layout file. This information can be displayed as per the developer's needs. Finally, to verify the form's input, the salla-verify-modal
component can be used.
The following is a full example for all of the above.For example, here we display customer's first name:This page includes a form, by which the customer's profile can be updated. Below is an example for that. Note that the developer may utilize the salla-tel-input
component to display the user's mobile field. Modified at 2025-03-04 12:54:02