0

I'm trying to change the welcome message from full name to first name here is my code.

        <span data-bind="text: customer().fullname"></span>

The code uses angular but I don't know how to find the custom().firstName or whatever? any idea's here?

2
1

Copy this file

vendor/magento/module-theme/view/frontend/templates/html/header.phtml

in your template

app/design/frontend/[Vendor]/[themename]/Magento_Theme/templates/html/header.phtml

change

customer().fullname

to

customer().firstname
0

Change In template /Magento_Theme/templates/html/header.phtml

replace

customer().fullname

by

customer().firstname

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.