Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <reference name="before_body_end">
  2. <action method="unsetChild"><name>global_cookie_notice</name></action>
  3. </reference>
  4.  
  5. <reference name="after_body_start">
  6. <block type="page/html_cookieNotice" name="global_cookie_notice" as ="global_cookie_notice" template="page/html/cookienotice.phtml" before="-" />
  7. </reference>`
  8.  
  9. $block = Mage::getModel('cms/block')->load($blockIdentifier, 'identifier');
  10.  
  11. $block = Mage::getModel('cms/block')->setStoreId(Mage::app()->getStore()->getId())->load($blockIdentifier, 'identifier');
  12.  
  13. $content = "<p>This website requires cookies to provide all of its features. For more " .
  14. "information on what data is contained in the cookies, please see our " .
  15. "<a href="{{store direct_url="privacy-policy-cookie-restriction-mode"}}">Privacy Policy page</a>. " .
  16. "To accept cookies from this site, please click the Allow button below.</p>";
  17.  
  18. $cmsBlock = array(
  19. 'title' => 'Cookie restriction notice',
  20. 'identifier' => 'cookie_restriction_notice_block',
  21. 'content' => $content,
  22. 'is_active' => 1,
  23. 'stores' => 0
  24. );
  25.  
  26. Mage::getModel('cms/block')->setData($cmsBlock)->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement