title: Opencart 2 : Add currently logged admin id to oc_product table on product insert
body: <p>I would like to monitor which dashboard user ("admin") added new product to the database.</p>
  
  <p>The solution i was thinking about is simply adding another <code>insert</code> under <code>admin &gt; model &gt; catalog &gt; product.tpl</code> under function <code>addProduct()</code>, which adds the user id to the custom column added before under <code>oc_product</code>.</p>
  
  <pre><code>$userID = // currently logged in
  
  public function addProduct($data) {
  
  $this-&gt;event-&gt;trigger('pre.admin.product.add', $data);
  
  $this-&gt;db-&gt;query("INSERT INTO " . DB_PREFIX . "product SET addedby = $userID, .......");
  
  .......
  
  }
  </code></pre>
  
  <p>The only problem I have now is how to call / get the currently logged admin id inside this file (model/catalog/product.tpl).</p>
  
  <p>This is just how i think about it, if this idea is completely wrong, please do write some better solutions.</p>