0

When we use Login as Customer for any customer from the admin panel it will redirect to frontend able to view all the pages for the particular customer and it is working.

But the banner is not showing when navigating to any custom module as shown in the below picture.

enter image description here

When I debug the js file the customer is not loading. For this, I also added cacheable="false" for my layout block, but still the customer name not updating. We can see it's showing Magento, but the actual customer's name is CED-Smith.

Any help?

asked May 6, 2024 at 9:46

1 Answer 1

0

Found myself.

For a customized full-width layout, I'm using the below code to remove content. Now, I just removed the main.content in the layout by using the below code.

<referenceContainer name="main.content" remove="true"/>

This line causes to load the required information for the Magento website.

After removing this line, working fine.

answered May 6, 2024 at 11:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.