Video Lesson: Conditionally render a block with system configuration in Magento

Conditionally render a block with system configuration in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Conditionally render a block with system configuration in Magento

Learn how to conditionally display layout blocks based on system configuration values.


Lesson Content

At the moment, the phone number is shown in the footer no matter what. But perhaps we only want to show it if the phone number is not empty.

We could go into the phone-number.phtml template and wra...

Premium content

Enroll to unlock the full content and all course materials.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Notes

Keep track of what you learn!