title: How to check if user is logged in at category page in Opencart
body: <p>My website category page has product with dropdown filter range 16, 32, 64 and show all. Now I want rest filters including '16 product per page' will works only if user is logged-in otherwise only "16 product per page" is available for not logged in user and they will be redirect to login page for rest filters.</p>
  
  <p>I have checked logged-in and filled the dropdown options like this:</p>
  
  <pre><code>&lt;?php if (!$logged) { ?&gt;
   &lt;!-- My code to fill dropdown option--&gt;            
  &lt;?php } else { &gt;
   &lt;!-- By default dropdown option--&gt;
   &lt;?php } ?&gt;
  </code></pre>
  
  <p>But this is causing an error: "Notice: Undefined variable: logged in"</p>