gray Posted September 13, 2017 Share Posted September 13, 2017 I like the look of codecanyon - Popup and Modal JS plugin. But it is a standalone set of js Any ideas how I can integrate this into my home page as a popup. Like what triggers the script. I look forward. Link to comment Share on other sites More sharing options...
Scully Posted September 14, 2017 Share Posted September 14, 2017 You write a new module for that. And there you can define what kind of js or css you want to add. Simple example from blockcart.php. public function hookHeader() { if (Configuration::get('PS_CATALOG_MODE')) return; $this->context->controller->addCSS(($this->_path).'blockcart.css', 'all'); if ((int)(Configuration::get('PS_BLOCK_CART_AJAX'))) { $this->context->controller->addJS(($this->_path).'ajax-cart.js'); $this->context->controller->addJqueryPlugin(array('scrollTo', 'serialScroll', 'bxslider')); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now