title: Variable override in smarty fails (jtl plugin). Is there smarty caching?
body: <p>this is kind of a specific question but I am wondering if someone of you came across the same problem before.</p>
  
  <p>What I am trying to do:
  I am working on a jtl plugin. 
  To start off, the plugin should just run over the payments (the specific hook is active an works) and rename the description. Since I need to add more functionality later, all the stuff has to happen in the plugin (even though jquery would be easier for the former case).
  In the shop system, the payments are set like this:</p>
  
  <pre><code>$smarty-&gt;assign('Zahlarten', $zahlarten);
  </code></pre>
  
  <p>In the plugin, I get all the payments like this:</p>
  
  <pre><code>$tmpPayments = $smarty-&gt;get_template_vars('Zahlarten');
  </code></pre>
  
  <p>I then loop over the array, doing specific changes. In the end, I want to add the payments back like:</p>
  
  <pre><code>$smarty-&gt;assign('Zahlarten', $tmpPayments');
  </code></pre>
  
  <p>And this is, what does not work. When I change the description and watch the variables in the phpstorm debugger, they are updated accordingly.
  But after the page is loaded completely, the changes are not visible.</p>
  
  <p>I know professional plugins that do it the exact way, and it works.
  Changing the original array also does not help.</p>
  
  <p>Also, deactivation caching does not work. Like this:</p>
  
  <pre><code>$smarty-&gt;assign('Zahlarten', $tmpPayments', true);
  </code></pre>
  
  <p>What works is:</p>
  
  <pre><code>$smarty-&gt;assign('Zahlarten_tmp', $tmpPayments');
  </code></pre>
  
  <p>But thats obviously not what I want, since I would have to change the template for that.</p>
  
  <p>To wrap it up, it seams to me that there is some kind of caching going on which I can not figure out.
  Does anyone has an idea or can point me to sources that might help?</p>
  
  <p>Thanks in advance!</p>