5

I am using magento 1.9 and want to insert cookie restriction notice block on my page enter image description here

then try to render it in my homepage.phtml enter image description here

but got nothing enter image description here

and this static block(cookie restriction notice block) is enabled

2 Answers 2

8

Instead of using getChildChildHtml('cookies.notice')

Use getChildHtml('cookies.notice')

We are usinggetChildChildHtml when we want to get 2nd level of child block

For getting first level of child block we are using getChildHtml method

0
6

Try getChildHtml rather than getChildChildHtml.

Also use block_id rather than id:

<action method="setBlockId">
    <block_id>my_block</block_id>
</action>
3
  • I am 20sec Faster Aug 2, 2018 at 10:59
  • Damn it! If only I didn't have an extra sip of coffee!
    – Ben Crook
    Aug 2, 2018 at 12:07
  • 1
    Ha Ha , That's why I didn't take coffee on my desk Aug 2, 2018 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.