title: Need Help to code from tpl to twig file opencart 3.0.2.0
body: <p>Code which was ok in tpl file of lod version opencart 1.5</p>
  
  <pre><code>&lt;?php $counter=0;$fb_var=0; foreach ($totals as $total) { ?&gt;
  &lt;?php if($counter==0){ $fb_var=$total['value'];?&gt;
  &lt;?php echo "&lt;/pre&gt;";}$counter++;} ?&gt;
  </code></pre>
  
  <p>Now i have used following code for twig file in view of opencart 3.0.2.0
  but says fatal error for $ sign </p>
  
  <pre><code>counter0fb_var0 {% for total in totals %}
  {% ifcounter is 0%} fb_vartotal.value
  {{ "&lt;/pre&gt;" }}{% endif %}{% $counter = $counter + 1 %}{% endfor %}
  </code></pre>