Video Lesson: Override an existing block template in Magento

Override an existing block template in Magento

This is premium content

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

Override an existing block template in Magento

Learn how to override the Magento wishlist sidebar block template and add a "Browse for items" link.

Lesson Content

Sometimes you just need to completely override a template, past what is possible with a translation string. Let’s remove our i18n translations completely to give us the default text back for this wish list sidebar.

When we refresh our page, we’ll see the standard “You have no items in your wish list” message. Let’s add a “Browse for items” link that goes to the home page, in the event no items are in the wishlist. To do this we will need to override this wishlist sidebar block template.

Our first step is to copy the file from the other module into our module. We want to be careful with h...

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!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.