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

2 Answers 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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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