0

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.

Thanks in Advance.enter image description here

2
  • Have you checked in console? Facing any issue? May 17, 2019 at 10:04
  • update your url which is use in local machine May 17, 2019 at 10:07

1 Answer 1

1

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/

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.