shopware6 - Adding custom fields in the account area of Shopware 6 - Stack Overflow

admin2025-05-02  1

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,

Share Improve this question edited Jan 3 at 14:36 Yehor Samoilenko 4701 gold badge2 silver badges10 bronze badges asked Jan 2 at 13:01 pim krookpim krook 333 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Found the solution

Adding

{{context.customer.customFields.custom_erp_customer_Password | trans}}

Works

转载请注明原文地址:http://www.anycun.com/QandA/1746118769a91927.html