Considering this layout update XML:
<?xml version="1.0"?>
<layout version="0.0.1">
<checkout_cart_index>
<reference name="methods">
<block type="mhquote/request_link" name="mhquote.request.link" as="mhquoteRequestLink" before="-" template="mhquote/request/link.phtml" />
<remove name="checkout.cart.methods.onepage" />
<remove name="checkout.cart.methods.multishipping" />
</reference>
</checkout_cart_index>
</layout>
When the update is applied the cart page goes from this:
To this:
I can't understand why the new block is not shown, given that:
- a module exists which has
mhquote
as a unique handler - the module is correctly set as for controllers in it work fine
methods
block is acore/text_list
block, so it should automatically render all child blocks- the template exists at
app/design/frontend/<current_theme>/default/template/mhquote/request/link.phtml
- the
Disc_Quote_Block_Request_Link
block class exists and extends fromMage_Core_Block_Template
,Disc_Quote
being the class group handled bymhquote
- the layout update file is loaded correctly as it successfully removes the two checkout links
The block template is really simple, just a <div>
with a string I'd like to show:
<div class="hellotest">
<h1>Hello</h1>
</div>
I can't see where I'm wrong. I keep checking and rewriting it from scratch paying more attention to the namings but I can't seem to show that block.
Any idea why? Thanks in advance for your help.