title: OpenCart 2.1 - Get customer First name in header.tpl
body: <p>Adds: <code>$data['customer_firstname'] = $this-&gt;customer-&gt;getFirstName();</code> in <code>header.php</code></p>
  
  <p>You may be something:</p>
  
  <pre><code>&lt;?php
  class ControllerCommonHeader extends Controller {
      public function index() {
  
          $data['customer_firstname'] = $this-&gt;customer-&gt;getFirstName();
  </code></pre>
  
  <p>Displays the name eg in header.tpl: <code>&lt;?php echo $customer_firstname ?&gt;</code></p>
  
  <p>Login to your store manager: go to extensions, modifications and upgrade (button top right).</p>
  
  <p>Ready!</p>