php - enabling jquery2 in an admin module for prestashop 1.7 -
i'm using prestashop 1.7.2.0 write admin module adds nested categories , products csv file. understood addjquery()
deprecated , i'm trying jquery code work. i uncaught referenceerror: $ not defined
.
i have created displaybackofficeheader
hook following:
public function hookdisplaybackofficeheader(){ $this->context->controller->addjs($this->_path.'/js/jqshim.min.js'); $this->context->controller->addcss($this->_path.'/css/getcontent.css'); $this->context->controller->addjs($this->_path.'/js/getcontent.js'); }
as can see have tried including jqshim.min.js
, still got same error. missing?
thanks
you can include $this->context->controller->addjquery();
in first line of hookdisplaybackofficeheader()
function.
Comments
Post a Comment