Block not showing after layout update












1















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:



Before



To this:



After



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 a core/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 from Mage_Core_Block_Template, Disc_Quote being the class group handled by mhquote

  • 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>









share|improve this question
















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.




















    1















    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:



    Before



    To this:



    After



    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 a core/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 from Mage_Core_Block_Template, Disc_Quote being the class group handled by mhquote

    • 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>









    share|improve this question
















    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.


















      1












      1








      1








      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:



      Before



      To this:



      After



      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 a core/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 from Mage_Core_Block_Template, Disc_Quote being the class group handled by mhquote

      • 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>









      share|improve this question
















      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:



      Before



      To this:



      After



      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 a core/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 from Mage_Core_Block_Template, Disc_Quote being the class group handled by mhquote

      • 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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Assign block permission from system > Permission > Block > Add New Block



          enter image description here



          click on Save Block.
          Once clear the cache and refresh the page
          Hope this will help you






          share|improve this answer
























          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          Assign block permission from system > Permission > Block > Add New Block



          enter image description here



          click on Save Block.
          Once clear the cache and refresh the page
          Hope this will help you






          share|improve this answer
























          • 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
















          0














          Assign block permission from system > Permission > Block > Add New Block



          enter image description here



          click on Save Block.
          Once clear the cache and refresh the page
          Hope this will help you






          share|improve this answer
























          • 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














          0












          0








          0







          Assign block permission from system > Permission > Block > Add New Block



          enter image description here



          click on Save Block.
          Once clear the cache and refresh the page
          Hope this will help you






          share|improve this answer













          Assign block permission from system > Permission > Block > Add New Block



          enter image description here



          click on Save Block.
          Once clear the cache and refresh the page
          Hope this will help you







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Alcázar de San Juan

          Griza ansero

          Heinkel He 51