title: Opencart :: is it possible to create event like change header without VQMOD or OCMOD?
body: <p>I want to add one script inside the head, however using event I could not find way how it works.</p>
  
  <p>I had install one event which added one script but it displays before HTML tag. But i want to display inside head tag.</p>
  
  <p><strong>extention/module/shop.php</strong></p>
  
  <pre><code>class ControllerExtensionModuleShop extends Controller {
      public function index() {
        //$this-&gt;document-&gt;addStyle('catalog/view/javascript/css/test.css');
        //$this-&gt;document-&gt;addScript('catalog/view/javascript/js/test.js');
        echo "&lt;script src="catalog/view/javascript/js/test.js" type="text/javascript"&gt;&lt;/script&gt;";
      }
  }
  </code></pre>
  
  <p><strong>Admin</strong></p>
  
  <pre><code>class ControllerExtensionModuleShop extends Controller {
  public function install() {
          $this-&gt;model_setting_event-&gt;addEvent('shop', 'catalog/view/common/header/before', 'extension/module/shop/index');
      }
  
      public function uninstall() {
          $this-&gt;model_setting_event-&gt;deleteEventByCode('shop');
      }
  </code></pre>