Block not showing after layout update
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
mhquoteas a unique handler - the module is correctly set as for controllers in it work fine
methodsblock is acore/text_listblock, 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_Linkblock class exists and extends fromMage_Core_Block_Template,Disc_Quotebeing 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.
=== EDIT 1 ===
This is the config.xml for the module:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Disc_Quote>
<version>0.0.1</version>
</Disc_Quote>
</modules>
<global>
<blocks>
<mhquote>
<class>Disc_Quote_Block</class>
</mhquote>
</blocks>
<helpers>
<mhquote>
<class>Disc_Quote_Helper</class>
</mhquote>
</helpers>
<models>
<mhquote>
<class>Disc_Quote_Model</class>
</mhquote>
</models>
</global>
<frontend>
<routers>
<mhquote>
<use>standard</use>
<args>
<module>Disc_Quote</module>
<frontName>mhquote</frontName>
</args>
</mhquote>
</routers>
<layout>
<updates>
<mhquote>
<file>mhquote.xml</file>
</mhquote>
</updates>
</layout>
</frontend>
</config>
magento-1.9 module layout blocks magento-community
bumped to the homepage by Community♦ 19 secs ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
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
mhquoteas a unique handler - the module is correctly set as for controllers in it work fine
methodsblock is acore/text_listblock, 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_Linkblock class exists and extends fromMage_Core_Block_Template,Disc_Quotebeing 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.
=== EDIT 1 ===
This is the config.xml for the module:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Disc_Quote>
<version>0.0.1</version>
</Disc_Quote>
</modules>
<global>
<blocks>
<mhquote>
<class>Disc_Quote_Block</class>
</mhquote>
</blocks>
<helpers>
<mhquote>
<class>Disc_Quote_Helper</class>
</mhquote>
</helpers>
<models>
<mhquote>
<class>Disc_Quote_Model</class>
</mhquote>
</models>
</global>
<frontend>
<routers>
<mhquote>
<use>standard</use>
<args>
<module>Disc_Quote</module>
<frontName>mhquote</frontName>
</args>
</mhquote>
</routers>
<layout>
<updates>
<mhquote>
<file>mhquote.xml</file>
</mhquote>
</updates>
</layout>
</frontend>
</config>
magento-1.9 module layout blocks magento-community
bumped to the homepage by Community♦ 19 secs ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
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
mhquoteas a unique handler - the module is correctly set as for controllers in it work fine
methodsblock is acore/text_listblock, 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_Linkblock class exists and extends fromMage_Core_Block_Template,Disc_Quotebeing 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.
=== EDIT 1 ===
This is the config.xml for the module:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Disc_Quote>
<version>0.0.1</version>
</Disc_Quote>
</modules>
<global>
<blocks>
<mhquote>
<class>Disc_Quote_Block</class>
</mhquote>
</blocks>
<helpers>
<mhquote>
<class>Disc_Quote_Helper</class>
</mhquote>
</helpers>
<models>
<mhquote>
<class>Disc_Quote_Model</class>
</mhquote>
</models>
</global>
<frontend>
<routers>
<mhquote>
<use>standard</use>
<args>
<module>Disc_Quote</module>
<frontName>mhquote</frontName>
</args>
</mhquote>
</routers>
<layout>
<updates>
<mhquote>
<file>mhquote.xml</file>
</mhquote>
</updates>
</layout>
</frontend>
</config>
magento-1.9 module layout blocks magento-community
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
mhquoteas a unique handler - the module is correctly set as for controllers in it work fine
methodsblock is acore/text_listblock, 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_Linkblock class exists and extends fromMage_Core_Block_Template,Disc_Quotebeing 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.
=== EDIT 1 ===
This is the config.xml for the module:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Disc_Quote>
<version>0.0.1</version>
</Disc_Quote>
</modules>
<global>
<blocks>
<mhquote>
<class>Disc_Quote_Block</class>
</mhquote>
</blocks>
<helpers>
<mhquote>
<class>Disc_Quote_Helper</class>
</mhquote>
</helpers>
<models>
<mhquote>
<class>Disc_Quote_Model</class>
</mhquote>
</models>
</global>
<frontend>
<routers>
<mhquote>
<use>standard</use>
<args>
<module>Disc_Quote</module>
<frontName>mhquote</frontName>
</args>
</mhquote>
</routers>
<layout>
<updates>
<mhquote>
<file>mhquote.xml</file>
</mhquote>
</updates>
</layout>
</frontend>
</config>
magento-1.9 module layout blocks magento-community
magento-1.9 module layout blocks magento-community
edited Nov 2 '16 at 10:48
GigiSan
asked Nov 2 '16 at 10:15
GigiSanGigiSan
1138
1138
bumped to the homepage by Community♦ 19 secs ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 19 secs ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Assign block permission from system > Permission > Block > Add New Block

click on Save Block.
Once clear the cache and refresh the page
Hope this will help you
Thanks for the answer. Unfortunately, after applying your solution, the block still does not show.
– GigiSan
Nov 2 '16 at 10:31
My pleasure, Make sure about correct block type and phtml path and Make sure that block name doesn't conflict with another.
– Sameer Bhayani
Nov 2 '16 at 10:35
I don't see anything wrong, I posted the module's config.xml for reference.
– GigiSan
Nov 2 '16 at 10:48
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f143687%2fblock-not-showing-after-layout-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Assign block permission from system > Permission > Block > Add New Block

click on Save Block.
Once clear the cache and refresh the page
Hope this will help you
Thanks for the answer. Unfortunately, after applying your solution, the block still does not show.
– GigiSan
Nov 2 '16 at 10:31
My pleasure, Make sure about correct block type and phtml path and Make sure that block name doesn't conflict with another.
– Sameer Bhayani
Nov 2 '16 at 10:35
I don't see anything wrong, I posted the module's config.xml for reference.
– GigiSan
Nov 2 '16 at 10:48
add a comment |
Assign block permission from system > Permission > Block > Add New Block

click on Save Block.
Once clear the cache and refresh the page
Hope this will help you
Thanks for the answer. Unfortunately, after applying your solution, the block still does not show.
– GigiSan
Nov 2 '16 at 10:31
My pleasure, Make sure about correct block type and phtml path and Make sure that block name doesn't conflict with another.
– Sameer Bhayani
Nov 2 '16 at 10:35
I don't see anything wrong, I posted the module's config.xml for reference.
– GigiSan
Nov 2 '16 at 10:48
add a comment |
Assign block permission from system > Permission > Block > Add New Block

click on Save Block.
Once clear the cache and refresh the page
Hope this will help you
Assign block permission from system > Permission > Block > Add New Block

click on Save Block.
Once clear the cache and refresh the page
Hope this will help you
answered Nov 2 '16 at 10:26
Sameer BhayaniSameer Bhayani
723418
723418
Thanks for the answer. Unfortunately, after applying your solution, the block still does not show.
– GigiSan
Nov 2 '16 at 10:31
My pleasure, Make sure about correct block type and phtml path and Make sure that block name doesn't conflict with another.
– Sameer Bhayani
Nov 2 '16 at 10:35
I don't see anything wrong, I posted the module's config.xml for reference.
– GigiSan
Nov 2 '16 at 10:48
add a comment |
Thanks for the answer. Unfortunately, after applying your solution, the block still does not show.
– GigiSan
Nov 2 '16 at 10:31
My pleasure, Make sure about correct block type and phtml path and Make sure that block name doesn't conflict with another.
– Sameer Bhayani
Nov 2 '16 at 10:35
I don't see anything wrong, I posted the module's config.xml for reference.
– GigiSan
Nov 2 '16 at 10:48
Thanks for the answer. Unfortunately, after applying your solution, the block still does not show.
– GigiSan
Nov 2 '16 at 10:31
Thanks for the answer. Unfortunately, after applying your solution, the block still does not show.
– GigiSan
Nov 2 '16 at 10:31
My pleasure, Make sure about correct block type and phtml path and Make sure that block name doesn't conflict with another.
– Sameer Bhayani
Nov 2 '16 at 10:35
My pleasure, Make sure about correct block type and phtml path and Make sure that block name doesn't conflict with another.
– Sameer Bhayani
Nov 2 '16 at 10:35
I don't see anything wrong, I posted the module's config.xml for reference.
– GigiSan
Nov 2 '16 at 10:48
I don't see anything wrong, I posted the module's config.xml for reference.
– GigiSan
Nov 2 '16 at 10:48
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f143687%2fblock-not-showing-after-layout-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown