title: open cart 2.2 Change style.css based on language or direction
body: <p>I am trying change style.css based on language or direction in open cart 2.2</p>
  
  <p>I have this input:</p>
  
  <pre><code>&lt;link type="text/css" href="view/stylesheet/stylesheet.css" rel="stylesheet" media="screen" /&gt;
  </code></pre>
  
  <p>i want change stylesheet.css to stylesheet-rtl.css</p>
  
  <p>This is my try:</p>
  
  <pre><code>&lt;?php $session = new Session();?&gt;
  &lt;?php $lang = $session-&gt;data['language']; ?&gt;
          &lt;?php    if ($lang == 'ar') { ?&gt;
        &lt;link type="text/css" href="view/stylesheet/stylesheet-rtl.css" rel="stylesheet" media="screen" /&gt;
              &lt;?php } else {  ?&gt;
           &lt;link type="text/css" href="view/stylesheet/stylesheet.css" rel="stylesheet" media="screen" /&gt;
              &lt;?php } ?&gt;
  </code></pre>
  
  <p>This worked for opencart 2.0.X but not in opencart 2.2.</p>
  
  <p>What changed?</p>