I am logged in my local machine as customer and magento header not displaying the name of logged in user.
I am also tried to add product but cart is empty.
Give me your suggestions to resolve this issue.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI am logged in my local machine as customer and magento header not displaying the name of logged in user.
I am also tried to add product but cart is empty.
Give me your suggestions to resolve this issue.
Update your host file.
/etc/hosts
127.0.0.1 localhost
And also update your database table "core_config_data" web/unsecure/base_url "http://localhost/magento226/" to "http://127.0.0.1/magento226/" web/secure/base_url "http://localhost/magento226/" to "http://127.0.0.1/magento226/"
Then after please follow below command:
rm -rf generated/metadata/ generated/code/ var/cache/ var/view_preprocessed/ var/page_cache/ var/composer_home/ pub/static/frontend/