Ejemplo n.º 1
0
 /**
  * Render tag manager script
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_cookieHelper->isUserNotAllowSaveCookie() || !$this->_gtmHelper->isEnabled()) {
         return '';
     }
     return parent::_toHtml();
 }
Ejemplo n.º 2
0
 public function testIsUserNotAllowSaveCookie()
 {
     $this->assertFalse($this->_object->isUserNotAllowSaveCookie());
     $this->_object = new Mage_Core_Helper_Cookie(array('current_store' => $this->_getStoreStub(), 'cookie_model' => $this->_getCookieStub(array()), 'website' => $this->_getWebsiteStub()));
     $this->assertTrue($this->_object->isUserNotAllowSaveCookie());
 }