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

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

6

Try getChildHtml rather than getChildChildHtml.

Also use block_id rather than id:

<action method="setBlockId">
    <block_id>my_block</block_id>
</action>
  • I am 20sec Faster – Murtuza Zabuawala Aug 2 '18 at 10:59
  • Damn it! If only I didn't have an extra sip of coffee! – Ben Crook Aug 2 '18 at 12:07
  • 1
    Ha Ha , That's why I didn't take coffee on my desk – Murtuza Zabuawala Aug 2 '18 at 12:09
  • 1
    +1 from my site bcuz you also deserve mark as accepted – Murtuza Zabuawala Aug 2 '18 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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