skip to Main Content

what’s up!

I need a little help.
I am trying to create some blocks usign the code below:

    <referenceContainer name="content">
    <block class="GysaQuotesBlockAdminhtmlQuotesEdit" name="quotes_quotes_edit" template="Gysa_Quotes::quote/create/form.phtml">
        <block class="GysaQuotesBlockAdminhtmlQuotesEditProducts" template="Gysa_Quotes::quote/create/products.phtml" name="quotes_quotes_edit_products" />
    </block>
</referenceContainer>

But the block “quotes_quotes_edit_products” doens’t showing up. I have looked some examples on “Magento Sales” and there I can see that is possible. So What Am I doing wrong.

Anyone Can help please.

Cheers.

2

Answers


  1. It might sound silly but have you cleared cache?
    Also it would help to see if the block is loaded if you enable the template hints

    Login or Signup to reply.
  2. Just Change It :-

      <referenceContainer name="content">
        <block class="GysaQuotesBlockAdminhtmlQuotesEdit" name="quotes_quotes_edit" template="Gysa_Quotes::quote/create/form.phtml">
        name="quotes_quotes_edit_products" />
        </block>
    <refernceBlock name="quotes_quotes_edit">
        <block class="GysaQuotesBlockAdminhtmlQuotesEditProducts" template="Gysa_Quotes::quote/create/products.phtml" 
    </refernceBlock>
    </referenceContainer>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search