I want to add some additional information in the account area of Shopware 6, but when adding custom fields in the
/page/account/profile/index.twig
, it's not showing up.
The Snipaccount
is working as it's a snippet, but the below 3 are not showing.
{{'Snipaccount'|trans|sw_sanitize}}<br>
{{ page.customer.customFields.custom_erp_customer_LINK|trans|sw_sanitize }}
{{ page.customer.customFields.custom_erp_customer_user|trans|sw_sanitize }}
{{ page.customer.customFields.custom_erp_customer_Password|trans|sw_sanitize }}
Please help with this.
regards,
I want to add some additional information in the account area of Shopware 6, but when adding custom fields in the
/page/account/profile/index.twig
, it's not showing up.
The Snipaccount
is working as it's a snippet, but the below 3 are not showing.
{{'Snipaccount'|trans|sw_sanitize}}<br>
{{ page.customer.customFields.custom_erp_customer_LINK|trans|sw_sanitize }}
{{ page.customer.customFields.custom_erp_customer_user|trans|sw_sanitize }}
{{ page.customer.customFields.custom_erp_customer_Password|trans|sw_sanitize }}
Please help with this.
regards,
Found the solution
Adding
{{context.customer.customFields.custom_erp_customer_Password | trans}}
Works