title: How to get the value of variables used in transactional emails?
body: <p>I have a Magento related problem again.</p>
  
  <p>I need to change the template of a transactional email. For that I would need to know the values of a variable. Problem is, the variable is an object and I cannot use print_r in a template.</p>
  
  <p>The email was designed via the backend, so editing the template file wouldn't work.
  I tried to output the variable on my main page with this piece of code:</p>
  
  <pre><code>$deallist = Mage::getModel('core/variable')-&gt;loadByCode('deallist');
  echo '&lt;pre&gt;';
  print_r($deallist);
  echo '&lt;/pre&gt;';
  </code></pre>
  
  <p>It was empty for the most part, which is no suprise considering the member variables get filled when the mail is created.</p>
  
  <p>I searched everywhere, but can't find the answer to my question.</p>
  
  <p>The variable is deallist and I have to change the coupon transactional email.</p>