title: magento success page variables
body: <p>I am trying to capture some magento success page variables to pass to our advertising company.</p>
  
  <p>So far I have got this but the variables are not outputting anything:</p>
  
  <pre><code>&lt;?php 
  $items = $order-&gt;getItemsCollection();
  foreach ($items as $item)
  {
      $price="'".$item-&gt;getPrice()."', ";
      $qty="'".$item-&gt;getQty()."', ";
      $sku="'".$item-&gt;getSku()."', ";
  }
  ?&gt;
  </code></pre>
  
  <p>The data needs to be in the format:</p>
  
  <pre><code>'price1', 'price2', 'price3'
  'qty1', 'qty2', 'qty3'
  'sku1', 'sku2', 'sku3'
  </code></pre>