Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • If my assumption is wrong, why wouldn't the phtml load its child elements? And manually adding the blocks solved my problem? Look, I extended the type class, it was not just the phtml. Many of my rendering logic is embedded in the class found by type="vendor/frontend_vendor" Commented Jul 12, 2016 at 9:56
  • @shampoo well you should start by checking whether or not the module output is disabled in the backend. Also ensure the module itself is enabled. You can also add echo get_class($this); in your template file to ensure that your rewrite works. Commented Jul 12, 2016 at 9:58
  • My rewrite worked. The problem was that, I was worried if another module rewrote the Block, and my module re rewrote that, it's gonna be a mess. Sorry, I'll edit my question to make that clear. Commented Jul 12, 2016 at 10:00
  • @shampoo well that's the problem with rewrites. Any module can rewrite the same block. If you know there's already a rewrite for this block you can either extend the rewritten block or merge the changes from the other rewrite into your rewrite Commented Jul 12, 2016 at 10:02
  • 1
    @shampoo well there's no other way unfortunately. Whatever you write, there's always a risk that someone else rewrites it ;) Commented Jul 12, 2016 at 10:06