Пример #1
0
 protected function _toHtml()
 {
     if (Mage::helper('fieldsmanager')->getStoredDatafor('enable')) {
         $this->setTemplate("fieldsmanager/customer/edit.phtml");
     }
     return parent::_toHtml();
 }
Пример #2
0
 /**
  * Render customer info as hidden meta data if the customer is logged in,
  * the module is enabled for the current store.
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->helper('customer')->isLoggedIn() || !$this->helper('nosto_tagging')->isModuleEnabled() || !Mage::helper('nosto_tagging/account')->existsAndIsConnected()) {
         return '';
     }
     return parent::_toHtml();
 }
Пример #3
0
 /**
  * Render customer info as hidden meta data if the customer is logged in,
  * the module is enabled for the current store.
  *
  * @return string
  */
 protected function _toHtml()
 {
     /** @var Nosto_Tagging_Helper_Account $helper */
     $helper = Mage::helper('nosto_tagging/account');
     /** @noinspection PhpUndefinedMethodInspection */
     if (!Mage::helper('nosto_tagging')->isModuleEnabled() || !$helper->existsAndIsConnected() || !$this->helper('customer')->isLoggedIn()) {
         return '';
     }
     return parent::_toHtml();
 }