Exemple #1
0
 protected function _beforeToHtml()
 {
     /* {#AITOC_COMMENT_END#}  
        $performer = Aitoc_Aitsys_Abstract_Service::get()->platform()->getModule('Aitoc_Aitcg')->getLicense()->getPerformer();
        $ruler = $performer->getRuler();
        if($ruler->checkRuleAdd( $this->getProduct() )) {
        {#AITOC_COMMENT_START#} */
     $this->setTemplate('aitcg/catalog/product/edit/options/type/cgfile.phtml');
     /* {#AITOC_COMMENT_END#}  
        } else {
            $this->setTemplate('aitcg/catalog/product/edit/options/type/cgfile_closed.phtml');
        }
        {#AITOC_COMMENT_START#} */
     parent::_beforeToHtml();
 }