title: WooCommerce: How To Get Order ID & Total
body: <p>Maybe someone can help me in this forum? So, i have to put on thank-you.php page pixel for tracking leads.</p>
  
  <p>Pixel is like in this format:</p>
  
  <pre><code>&lt;img src="https://example.com/path/slug=*ORDERID*&amp;slug=*TOTAL*" alt="" width="1" height="1" border="0" /&gt;
  </code></pre>
  
  <p>There in <strong>ORDERID</strong> i need to get order id without “#” and in <strong>TOTAL</strong> i have to get order total without currency symbol.</p>
  
  <p>So it have to look like:</p>
  
  <pre><code>&lt;img src="https://example.com/path/slug=123456&amp;slug=125.00" alt="" width="1" height="1" border="0" /&gt;
  </code></pre>
  
  <p>Order ID #123456 and order total amount 125.00€.</p>
  
  <p>Before updating WooCommerce to 3.0 it was working fine with this snippet:</p>
  
  <p><a href="https://i.stack.imgur.com/UqHzt.jpg" rel="nofollow noreferrer">Snippet</a></p>
  
  <p>Now it’s not working.
  I would be very grateful for any help. Thanks! </p>