This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Customer templates¶
The global ses.profile
Twig variable contains the main information about the current user,
their addresses and data from the ERP.
If the user has a customer number, customer information is automatically fetched from the ERP.
The data is stored in the session and is provided by the variable ses.profile
.
SilversolutionsEshopBundle/Resources/views/details.html.twig
is the standard template for displaying customer data.
Getting customer profile data¶
As ses.profile
in the template returns the currently logged-in profile,
you can use all read-only members from CustomerProfileData
.
For example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|